event.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type EventAddBody struct {
  7. Title string `form:"title" json:"title"`
  8. // 内容
  9. Content string `form:"content" json:"content"`
  10. // 活动开始时间
  11. Start int64 `form:"start" json:"start"`
  12. // 活动结束时间
  13. End int64 `form:"end" json:"end"`
  14. // 报名截止时间
  15. SignUpEnd int64 `form:"sign_up_end" json:"sign_up_end"`
  16. // 人数限制
  17. PeopleLimit int64 `form:"people_limit" json:"people_limit"`
  18. // 报名费用
  19. Fee int64 `form:"fee" json:"fee"`
  20. // 活动地址
  21. Addr string `form:"addr" json:"addr"`
  22. // 图片
  23. Pic []string `form:"pic" json:"pic"`
  24. }
  25. type EventAddRequest struct {
  26. base.Header
  27. EventAddBody
  28. }
  29. type EventAddResponse struct {
  30. base.Result
  31. Data v1.EventAddReply `json:"data"`
  32. }
  33. type EventUpdateBody struct {
  34. Title string `form:"title" json:"title"`
  35. // 内容
  36. Content string `form:"content" json:"content"`
  37. // 活动开始时间
  38. Start int64 `form:"start" json:"start"`
  39. // 活动结束时间
  40. End int64 `form:"end" json:"end"`
  41. // 报名截止时间
  42. SignUpEnd int64 `form:"sign_up_end" json:"sign_up_end"`
  43. // 人数限制
  44. PeopleLimit int64 `form:"people_limit" json:"people_limit"`
  45. // 报名费用
  46. Fee int64 `form:"fee" json:"fee"`
  47. // 活动地址
  48. Addr string `form:"addr" json:"addr"`
  49. // 图片
  50. Pic []string `form:"pic" json:"pic"`
  51. Id int64 `form:"id"`
  52. }
  53. type EventUpdateRequest struct {
  54. base.Header
  55. EventUpdateBody
  56. }
  57. type EventUpdateResponse struct {
  58. base.Result
  59. }
  60. type EventDelQuery struct {
  61. Id int64 `form:"id"`
  62. }
  63. type EventDelRequest struct {
  64. base.Header
  65. EventDelQuery
  66. }
  67. type EventDelResponse struct {
  68. base.Result
  69. }
  70. type EventListQuery struct {
  71. Page int64 `form:"page" json:"page"`
  72. PageSize int64 `form:"page_size" json:"page_size"`
  73. }
  74. type EventListRequest struct {
  75. base.Header
  76. EventListQuery
  77. }
  78. type EventListResponse struct {
  79. base.Result
  80. Data v1.EventListReply `json:"data"`
  81. }
  82. type EventSignDelQuery struct {
  83. Id int64 `form:"id"`
  84. }
  85. type EventSignDelRequest struct {
  86. base.Header
  87. EventSignDelQuery
  88. }
  89. type EventSignDelResponse struct {
  90. base.Result
  91. }
  92. type EventSignListQuery struct {
  93. Page int64 `form:"page" json:"page"`
  94. PageSize int64 `form:"page_size" json:"page_size"`
  95. EventId int64 `form:"event_id" json:"event_id"`
  96. }
  97. type EventSignListRequest struct {
  98. base.Header
  99. EventSignListQuery
  100. }
  101. type EventSignListResponse struct {
  102. base.Result
  103. Data v1.EventSignListReply `json:"data"`
  104. }