reques.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package model
  2. import "go-common/library/time"
  3. //ResoucePoolBo pool bo
  4. type ResoucePoolBo struct {
  5. PN int `form:"pn" default:"1"`
  6. PS int `form:"ps" default:"20"`
  7. ID int `form:"pool_id"`
  8. PoolName string `form:"pool_name"`
  9. BusinessID int `form:"biz_id"`
  10. StartTime time.Time `form:"start_time"`
  11. EndTime time.Time `form:"end_time"`
  12. BatchID int `form:"batch_id"`
  13. Reason string `form:"reason"`
  14. CodeExpireTime time.Time `form:"code_expire_time"`
  15. Contacts string `form:"contacts"`
  16. ContactsNumber string `form:"contacts_number"`
  17. }
  18. //ResouceBatchBo resouce batch bo
  19. type ResouceBatchBo struct {
  20. ID int `form:"id"`
  21. PoolID int `form:"pool_id"`
  22. Unit int `form:"unit"`
  23. Count int `form:"count"`
  24. StartTime time.Time `form:"start_time"`
  25. EndTime time.Time `form:"end_time"`
  26. SurplusCount int `form:"surplus_count"`
  27. CodeUseCount int `form:"code_use_count"`
  28. DirectUseCount int `form:"direct_use_count"`
  29. }
  30. //ResouceBatchVo resouce batch vo
  31. type ResouceBatchVo struct {
  32. VipResourceBatch
  33. PoolName string `json:"pool_name"`
  34. }
  35. //ArgPrivilege .
  36. type ArgPrivilege struct {
  37. PrivilegeID int `form:"privilege_id"`
  38. Name string `form:"name"`
  39. Remark string `form:"remark"`
  40. PcLink string `form:"pc_link"`
  41. H5Link string `form:"h5_link"`
  42. BgColor string `form:"bg_color"`
  43. Type int `form:"type"`
  44. Mapping []ArgPrivilegeMapping `form:"platforms"`
  45. }
  46. //ArgPrivilegeMapping .
  47. type ArgPrivilegeMapping struct {
  48. Status int `form:"status"`
  49. Platform int `form:"platform"`
  50. Icon string `form:"icon"`
  51. }
  52. // ArgCode .
  53. type ArgCode struct {
  54. ID int64 `form:"id"`
  55. Code string `form:"code"`
  56. Mid int64 `form:"mid"`
  57. BusinessID int64 `form:"business_id"`
  58. PoolID int64 `form:"pool_id"`
  59. BatchCodeID int64 `form:"batch_code_id"`
  60. Status int8 `form:"status"`
  61. UseStartTime time.Time `form:"use_start_time"`
  62. UseEndTime time.Time `form:"use_end_time"`
  63. BatchCodeIDs []int64 `form:"batch_code_ids"`
  64. }
  65. // ArgBatchCode .
  66. type ArgBatchCode struct {
  67. ID int64 `form:"id"`
  68. BusinessID int64 `form:"business_id"`
  69. PoolID int64 `form:"pool_id"`
  70. Name string `form:"name"`
  71. Status int8 `form:"status"`
  72. StartTime time.Time `form:"start_time"`
  73. EndTime time.Time `form:"end_time"`
  74. }
  75. // ArgPushData .
  76. type ArgPushData struct {
  77. ProgressStatus int8 `form:"progress_status"`
  78. Status int8 `form:"status"`
  79. PN int `form:"pn" default:"1"`
  80. PS int `form:"ps" default:"20"`
  81. }