legend.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package msg
  2. const (
  3. WearLegend = 1 // 穿戴
  4. TakeOffLegend = 2 // 卸下
  5. ReplaceLegend = 3 // 替换
  6. OneKeyLegend = 4 // 一键装配
  7. )
  8. // LegendWear 铭文穿戴
  9. type LegendWear struct {
  10. PlayerId int64 `json:"userId"`
  11. Mid int64 `json:"mid"`
  12. SlotId int64 `json:"slotId"`
  13. Type int64 `json:"type"` // 铭文类型 只在一键装配时有用
  14. ActionType int64 `json:"actionType"` // 镶嵌 卸下 替换 一键装配: 1,2,3,4
  15. }
  16. type LegendWearData struct {
  17. SlotWear map[int64]int64 `json:"slotWear"` // {slotId:modelId}
  18. Legends map[int64]int64 `json:"legends"`
  19. }
  20. type ResponseLegendWear struct {
  21. ErrCode int `json:"errCode"`
  22. Msg string `json:"msg,omitempty"`
  23. Data *LegendWearData `json:"data"`
  24. }
  25. // LegendReset 铭文重铸
  26. type LegendReset struct {
  27. PlayerId int64 `json:"userId"`
  28. MId int64 `json:"mid"`
  29. SlotId int64 `json:"slotId"` // 铭文槽位,背包中重铸传0
  30. }
  31. type LegendResetData struct {
  32. Costs map[int64]int64 `json:"costs"` // 消耗道具
  33. Legends map[int64]int64 `json:"legends"` // 发生变化的铭文
  34. SlotWear map[int64]int64 `json:"slotWear,omitempty"`
  35. }
  36. type ResponseLegendReset struct {
  37. ErrCode int `json:"errCode"`
  38. Msg string `json:"msg,omitempty"`
  39. Data *LegendResetData `json:"data"`
  40. }
  41. // LegendCompound 铭文合成
  42. type LegendCompound struct {
  43. PlayerId int64 `json:"userId"`
  44. Filter *LegendFilter `json:"filter"` // 筛选条件
  45. }
  46. type LegendFilter struct {
  47. Types []int64 `json:"types"`
  48. Qualitys []int64 `json:"qualitys"`
  49. }
  50. type LegendCompoundData struct {
  51. Gets map[int64]int64 `json:"gets"`
  52. Costs map[int64]int64 `json:"costs"`
  53. }
  54. type ResponseLegendCompound struct {
  55. ErrCode int `json:"errCode"`
  56. Msg string `json:"msg,omitempty"`
  57. Data *LegendCompoundData `json:"data"`
  58. }
  59. // LegendUpgrade 铭文精通升级
  60. type LegendUpgrade struct {
  61. PlayerId int64 `json:"userId"`
  62. }
  63. type LegendUpgradeData struct {
  64. Level int64 `json:"level"`
  65. Costs map[int64]int64 `json:"costs"`
  66. }
  67. type ResponseLegendUpgrade struct {
  68. ErrCode int `json:"errCode"`
  69. Msg string `json:"msg,omitempty"`
  70. Data *LegendUpgradeData `json:"data"`
  71. }