fort.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. package msg
  2. // FortLevelUp 要塞升级
  3. type FortLevelUp struct {
  4. PlayerId int64 `json:"userId"`
  5. }
  6. type ResponseFortLevelUp struct {
  7. ErrCode int `json:"errCode"`
  8. Msg string `json:"msg,omitempty"`
  9. Data *FortLevelUpData `json:"data"`
  10. }
  11. type FortLevelUpData struct {
  12. Level int64 `json:"level"` //等级
  13. Cost map[int64]int64 `json:"cost"` // 消耗
  14. }
  15. // FortTalentUp 天赋升级
  16. type FortTalentUp struct {
  17. PlayerId int64 `json:"userId"`
  18. Type int64 `json:"type"`
  19. }
  20. type ResponseFortTalentUp struct {
  21. ErrCode int `json:"errCode"`
  22. Msg string `json:"msg,omitempty"`
  23. Data *FortTalentUpData `json:"data"`
  24. }
  25. type FortTalentUpData struct {
  26. Type int64 `json:"type"`
  27. Level int64 `json:"level"` //新天赋等级
  28. Cost map[int64]int64 `json:"cost"` // 消耗
  29. }
  30. // ChangeFortSkin 更换时装
  31. type ChangeFortSkin struct {
  32. PlayerId int64 `json:"userId"`
  33. SkinId int64 `json:"skinId"` //皮肤ID
  34. }
  35. type ResponseChangeFortSkin struct {
  36. ErrCode int `json:"errCode"`
  37. Msg string `json:"msg,omitempty"`
  38. Data int64 `json:"data"` //皮肤ID
  39. }
  40. // type ChangeFortSkinData struct {
  41. // Level int64 `json:"level"` //等级
  42. // Skin *FortSkin `json:"skin"` //皮肤
  43. // }
  44. // StarFortSkin 升星时装
  45. type FortSkinStarUp struct {
  46. PlayerId int64 `json:"userId"`
  47. SkinId int64 `json:"skinId"`
  48. }
  49. type ResponseFortSkinStarUp struct {
  50. ErrCode int `json:"errCode"`
  51. Msg string `json:"msg,omitempty"`
  52. Data *FortSkinStarUpData `json:"data"`
  53. }
  54. type FortSkinStarUpData struct {
  55. SkinId int64 `json:"skinId"`
  56. Star int64 `json:"star"`
  57. Cost map[int64]int64 `json:"cost"`
  58. }
  59. // FortSkinActive
  60. type FortSkinActive struct {
  61. PlayerId int64 `json:"userId"`
  62. SkinId int64 `json:"skinId"` //皮肤模型ID
  63. }
  64. type ResponseFortSkinActive struct {
  65. ErrCode int `json:"errCode"`
  66. Msg string `json:"msg,omitempty"`
  67. Data *FortSkinActiveData `json:"data"`
  68. }
  69. type FortSkinActiveData struct {
  70. SkinId int64 `json:"skinId"` //皮肤ID
  71. Level int64 `json:"level"`
  72. Cost map[int64]int64 `json:"cost"`
  73. }
  74. // 要塞技能选配
  75. type FortSkillSelect struct {
  76. PlayerId int64 `json:"userId"`
  77. SkillId int64 `json:"skillId"` //皮肤技能ID
  78. Pos int64 `json:"pos"` //技能位置 0,1,2
  79. }
  80. type ResponseFortSkillSelect struct {
  81. ErrCode int `json:"errCode"`
  82. Msg string `json:"msg,omitempty"`
  83. Data int `json:"data"`
  84. }
  85. // type FortSkillSelectData struct {
  86. // SkillId int64 `json:"skillId"`
  87. // Pos int64 `json:"pos"` //技能位置
  88. // }
  89. const (
  90. WearRune = 1
  91. TakeOffRune = 2
  92. ReplaceRune = 3
  93. )
  94. // ChangeFortRune 穿卸符文
  95. // 镶嵌 卸下 替换: 1,2,3
  96. type ChangeFortRune struct {
  97. PlayerId int64 `json:"userId"`
  98. RuneGId int64 `json:"runeGId"`
  99. Type int64 `json:"type"`
  100. }
  101. type ChangeFortRuneData struct {
  102. }
  103. type ResponseChangeFortRune struct {
  104. ErrCode int `json:"errCode"`
  105. Msg string `json:"msg,omitempty"`
  106. Data *ChangeFortRuneData `json:"data"`
  107. }
  108. // RunePartLevelUp 符文部位升级
  109. type RunePartLevelUp struct {
  110. PlayerId int64 `json:"userId"`
  111. Part int64 `json:"wearPart"`
  112. OptType int64 `json:"optType"` // 0:升级 1:一键升级
  113. }
  114. type RunePartUpLevelData struct {
  115. }
  116. type ResponseRunePartLevelUp struct {
  117. ErrCode int `json:"errCode"`
  118. Msg string `json:"msg,omitempty"`
  119. Data *RunePartUpLevelData `json:"data"`
  120. }
  121. // RuneRecastAttrs 符文重铸属性
  122. type RuneRecastAttrs struct {
  123. PlayerId int64 `json:"userId"`
  124. RuneGId int64 `json:"runeGId"`
  125. LockAttrs []*Attr `json:"lockAttrs"`
  126. }
  127. type Attr struct {
  128. Id int64 `json:"id"`
  129. Value float64 `json:"value"`
  130. }
  131. type RuneRecastData struct {
  132. Attrs []*Attr `json:"attrs"`
  133. LockAttrs []*Attr `json:"lockAttrs"`
  134. }
  135. type ResponseRuneRecastAttrs struct {
  136. ErrCode int `json:"errCode"`
  137. Msg string `json:"msg,omitempty"`
  138. Data *RuneRecastData `json:"data"`
  139. }
  140. // SaveRuneRecastAttrs 保存符文重铸属性
  141. type SaveRuneRecastAttrs struct {
  142. PlayerId int64 `json:"userId"`
  143. RuneGId int64 `json:"runeGId"`
  144. Attrs []*Attr `json:"attrs"`
  145. LockAttrs []*Attr `json:"lockAttrs"`
  146. }
  147. type SaveRuneRecastAttrsData struct{}
  148. type ResponseSaveRuneRecastAttrs struct {
  149. ErrCode int `json:"errCode"`
  150. Msg string `json:"msg,omitempty"`
  151. Data *SaveRuneRecastAttrsData `json:"data"`
  152. }
  153. // RuneDisintegration 符文分解
  154. type RuneDisintegration struct {
  155. PlayerId int64 `json:"userId"`
  156. RuneGId int64 `json:"runeGId"`
  157. }
  158. type RuneDisintegrationData struct {
  159. }
  160. type ResponseRuneDisintegration struct {
  161. ErrCode int `json:"errCode"`
  162. Msg string `json:"msg,omitempty"`
  163. Data *RuneDisintegrationData `json:"data"`
  164. }
  165. // // 英雄换皮肤
  166. // type HeroChangeSkin struct {
  167. // PlayerId int64 `json:"userId"`
  168. // HeroId int64 `json:"heroId"`
  169. // SkinId int64 `json:"skinId"`
  170. // }
  171. // type HeroChangeSkinData struct {
  172. // }
  173. // type ResponseHeroChangeSkin struct {
  174. // ErrCode int `json:"errCode"`
  175. // Msg string `json:"msg,omitempty"`
  176. // Data *HeroChangeSkinData `json:"data"`
  177. // }
  178. // // HeroActive 激活
  179. // type HeroActive struct {
  180. // PlayerId int64 `json:"userId"`
  181. // HeroId int32 `json:"heroId"`
  182. // Type int32 `json:"type"` // 1 碎片合成 2 钻石购买
  183. // }
  184. // type HeroActiveData struct {
  185. // }
  186. // type ResponseHeroActive struct {
  187. // ErrCode int `json:"errCode"`
  188. // Msg string `json:"msg,omitempty"`
  189. // Data *HeroActiveData `json:"data"`
  190. // }
  191. // TreasuresLevelUp 宝物升级
  192. // type TreasuresLevelUp struct {
  193. // PlayerId int64 `json:"userId"`
  194. // Id int32 `json:"id"`
  195. // }
  196. // type TreasuresLevelUpData struct {
  197. // }
  198. // type ResponseTreasuresLevelUp struct {
  199. // ErrCode int `json:"errCode"`
  200. // Msg string `json:"msg,omitempty"`
  201. // Data *TreasuresLevelUpData `json:"data"`
  202. // }
  203. // // TreasureStarUp 宝物升星
  204. // type TreasuresStarUp struct {
  205. // PlayerId int64 `json:"userId"`
  206. // Id int32 `json:"id"`
  207. // }
  208. // type TreasuresStarUpData struct {
  209. // }
  210. // type ResponseTreasuresStarUp struct {
  211. // ErrCode int `json:"errCode"`
  212. // Msg string `json:"msg,omitempty"`
  213. // Data *TreasuresStarUpData `json:"data"`
  214. // }