param.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package model
  2. import xtime "go-common/library/time"
  3. // Pager .
  4. type Pager struct {
  5. Total int64 `json:"total"`
  6. PN int `json:"page"`
  7. PS int `json:"pagesize"`
  8. Order string `json:"order"`
  9. Sort string `json:"sort"`
  10. }
  11. // ArgPendantGroupList .
  12. type ArgPendantGroupList struct {
  13. GID int64 `form:"gid"`
  14. PN int `form:"pn"`
  15. PS int `form:"ps" validate:"max=100"`
  16. }
  17. // ArgPendantInfo .
  18. type ArgPendantInfo struct {
  19. PID int64 `form:"pid"`
  20. GID int64 `form:"gid" validate:"required"`
  21. Name string `form:"name" validate:"required"`
  22. Image string `form:"image"`
  23. ImageModel string `form:"image_model"`
  24. Rank int16 `form:"rank"`
  25. Status int8 `form:"status"`
  26. IntegralPrice int `form:"integral_price"` // 积分
  27. BcoinPrice int `form:"bcoin_price"` // B币
  28. CoinPrice int `form:"coin_price"` // 硬币
  29. }
  30. // ArgPendantGroup .
  31. type ArgPendantGroup struct {
  32. GID int64 `form:"gid"`
  33. Name string `form:"name" validate:"required"`
  34. Rank int16 `form:"rank"`
  35. Status int8 `form:"status"`
  36. }
  37. // ArgPendantOrder .
  38. type ArgPendantOrder struct {
  39. Start xtime.Time `form:"start_time"`
  40. End xtime.Time `form:"end_time"`
  41. Status int8 `form:"status"`
  42. PID int64 `form:"pid"`
  43. PayID string `form:"pay_id"`
  44. UID int64 `form:"uid"`
  45. PN int `form:"pn"`
  46. PS int `form:"ps" validate:"max=100"`
  47. }
  48. // ArgPendantPKG .
  49. type ArgPendantPKG struct {
  50. UID int64 `form:"uid" validate:"required"`
  51. PID int64 `form:"pid" validate:"required"`
  52. Day int64 `form:"day" validate:"required"`
  53. Type int8 `form:"type"`
  54. IsMsg bool `form:"is_msg"`
  55. Title string `form:"title"`
  56. Content string `form:"content"`
  57. OID int64 `form:"oper_id" validate:"required"`
  58. }
  59. // ArgMedal medal struct .
  60. type ArgMedal struct {
  61. GID int64 `json:"gid"`
  62. Name string `json:"name"`
  63. Description string `json:"description"`
  64. Image string `json:"image"`
  65. ImageSmall string `json:"image_small"`
  66. Condition string `json:"condition"`
  67. Level string `json:"level"`
  68. LevelRank string `json:"level_rank"`
  69. Sort int `json:"sort"`
  70. IsOnline int `json:"is_online"`
  71. }