recruit.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package model
  2. const (
  3. RecruitTypeHero = 1
  4. RecruitTypeTreasure = 2
  5. RecruitTypeEpigraph = 3
  6. RecruitTypePoint = 4
  7. )
  8. // 招募-Recruit exported from 招募配置.xlsx
  9. type Recruit struct {
  10. Uid int64 `json:"Uid"` // 唯一ID
  11. ItemType int64 `json:"ItemType"` // 道具类型 1-英雄 2-道具 3-宝物 4-铭文
  12. Item int64 `json:"Item"` // 掉落道具
  13. Num int64 `json:"Num"` // 数量
  14. Weight int64 `json:"Weight"` // 出现权重
  15. Acquire int64 `json:"Acquire"` // 获得权重
  16. NumDrop int64 `json:"NumDrop"` // 必掉组
  17. } // package model
  18. // 招募数量权重-RecruitNum exported from 招募配置.xlsx
  19. type RecruitNum struct {
  20. Uid int64 `json:"Uid"` // 唯一ID
  21. Num int64 `json:"Num"` // 中奖数量
  22. Weight int64 `json:"Weight"` // 出现权重
  23. } // package model
  24. // 宝物招募-RecruitTreasure exported from 招募配置.xlsx
  25. type RecruitTreasure struct {
  26. Uid int64 `json:"Uid"` // 唯一ID
  27. Item int64 `json:"Item"` // 宝物ID
  28. Weight int64 `json:"Weight"` // 权重
  29. Floors int64 `json:"Floors"` // 十次保底
  30. } // package model
  31. // 铭文招募-RecruitEpigraph exported from 招募配置.xlsx
  32. type RecruitEpigraph struct {
  33. Uid int64 `json:"Uid"` // 唯一ID
  34. Item int64 `json:"Item"` // 铭文ID
  35. Num int64 `json:"Num"` // 数量
  36. Weight int64 `json:"Weight"` // 权重
  37. Floors int64 `json:"Floors"` // 十次保底
  38. } // package model
  39. // 保底招募-RecruitPoints exported from 招募配置.xlsx
  40. type RecruitPoints struct {
  41. Uid int64 `json:"Uid"` // 唯一ID
  42. Item int64 `json:"Item"` // 英雄ID
  43. Num int64 `json:"Num"` // 数量
  44. Weight int64 `json:"Weight"` // 权重
  45. } // package model
  46. // 英雄免费数-RecruitFree exported from 招募配置.xlsx
  47. type RecruitFree struct {
  48. Uid int64 `json:"Uid"` // 唯一ID
  49. NumTime int64 `json:"NumTime"` // 免费次数
  50. } // package model
  51. // 招募消耗表-RecruitConsume exported from 招募配置.xlsx
  52. type RecruitConsume struct {
  53. Uid int64 `json:"Uid"` // 唯一ID
  54. Type int64 `json:"Type"` // 招募类型 1--英雄招募 2--宝物招募 3--铭文招募 4--积分招募
  55. Num int64 `json:"Num"` // 招募次数
  56. Consume []int64 `json:"Consume"` // 招募消耗
  57. } // package model
  58. // 招募配置-RecruitBase exported from 招募配置.xlsx
  59. type RecruitBase struct {
  60. Uid int64 `json:"Uid"` // 唯一ID
  61. Type int64 `json:"Type"` // 招募类型 1--英雄招募 2--宝物招募 3--铭文招募
  62. NumDrop int64 `json:"NumDrop"` // 必掉次数
  63. }
  64. // func (r *Recruit) GetWeight() int64 {
  65. // return r.Weight
  66. // }