gm.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package forms
  2. // UpdatePlayerBaseReq 更新玩家金币、钻石、 经验、体力、精力、天赋点
  3. type UpdatePlayerBaseReq struct {
  4. PlayeridReq
  5. Exp int `json:"userExp"`
  6. Stamina int `json:"stamina"`
  7. Energy int `json:"energy"`
  8. TalentPoint int `json:"talentPoint"`
  9. Coin int `json:"coin"`
  10. Diamond int `json:"diamond"`
  11. }
  12. // UpdateTalentReq 更新天赋
  13. type UpdateTalentReq struct {
  14. PlayeridReq
  15. TalentInfo map[int]int `json:"talent_info" form:"talent_info"`
  16. }
  17. // UpdateChapterReq 更新关卡
  18. type UpdateChapterReq struct {
  19. PlayeridReq
  20. OneFull bool `json:"one_pass"`
  21. OneEmpty bool `json:"one_empty"`
  22. PassChapters []string `json:"pass_chapters"`
  23. }
  24. // UpdateGuidesReq 更新引导
  25. type UpdateGuidesReq struct {
  26. PlayeridReq
  27. Guides []int `json:"guides"`
  28. }
  29. // DelRankReq 删除玩家排行榜
  30. type DelRankReq struct {
  31. UserID int64 `json:"user_id" form:"user_id"`
  32. RankType int `json:"rankType" form:"rankType"`
  33. ServerId int `json:"server_id" form:"server_id"`
  34. }
  35. type GetBalanceReq struct {
  36. UserID int64 `json:"player_id" form:"player_id"`
  37. }
  38. // MsdBalanceReq 米大师查余额
  39. type MsdBalanceReq struct {
  40. UserID int64 `json:"userId" form:"userId"`
  41. }
  42. // MsdSettleReq 米大师平账
  43. type MsdSettleReq struct {
  44. UserID int64 `json:"userId" form:"userId"`
  45. Balance int `json:"balance" form:"balance"`
  46. Remark string `json:"remark" form:"remark"`
  47. OpenId string `json:"openid" form:"openid"`
  48. }
  49. // EditServerDateReq 米大师查余额
  50. type EditServerDateReq struct {
  51. Date string `json:"date" form:"date"`
  52. }
  53. // ReleaseVersionReq 提审发版
  54. type ReleaseVersionReq struct {
  55. Index int `json:"index" form:"index"`
  56. Version string `json:"version" form:"version"`
  57. }
  58. // GetVersionIndexReq 获取版本索引
  59. type GetVersionIndexReq struct {
  60. Version string `json:"version" form:"version"`
  61. }