treasure.go 936 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package msg
  2. import "leafstalk/covenant/model"
  3. // TreasureLevelUp 升级
  4. type TreasureLevelUp struct {
  5. PlayerId int64 `json:"userId"`
  6. Id int64 `json:"id"`
  7. }
  8. type TreasureLevelUpData struct {
  9. Materials map[int64]int64 `json:"materials"`
  10. Treasure *model.GrowableTreasure `json:"treasure"`
  11. }
  12. type ResponseTreasureLevelUp struct {
  13. ErrCode int `json:"errCode"`
  14. Msg string `json:"msg,omitempty"`
  15. Data *TreasureLevelUpData `json:"data"`
  16. }
  17. // TreasureStarUp 升星
  18. type TreasureStarUp struct {
  19. PlayerId int64 `json:"userId"`
  20. Id int64 `json:"id"`
  21. }
  22. type TreasureStarUpData struct {
  23. Materials map[int64]int64 `json:"materials"`
  24. Treasure *model.GrowableTreasure `json:"treasure"`
  25. }
  26. type ResponseTreasureStarUp struct {
  27. ErrCode int `json:"errCode"`
  28. Msg string `json:"msg,omitempty"`
  29. Data *TreasureStarUpData `json:"data"`
  30. }