event.go 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. type EventListQuery struct {
  7. Page int64 `form:"page" json:"page"`
  8. PageSize int64 `form:"page_size" json:"page_size"`
  9. GardenId int64 `form:"garden_id" json:"garden_id"`
  10. }
  11. type EventListRequest struct {
  12. base.Header
  13. EventListQuery
  14. }
  15. type EventListResponse struct {
  16. base.Result
  17. Data v1.EventListReply `json:"data"`
  18. }
  19. type EventSignAddBody struct {
  20. GardenId int64 `form:"garden_id" json:"garden_id"`
  21. EventId int64 `form:"event_id" json:"event_id"`
  22. Phone string `form:"phone" json:"phone"`
  23. Name string `form:"name" json:"name"`
  24. // 报名人数
  25. Count int64 `form:"count" json:"count"`
  26. Comment string `form:"comment" json:"comment"`
  27. }
  28. type EventSignAddRequest struct {
  29. base.Header
  30. EventSignAddBody
  31. }
  32. type EventSignAddResponse struct {
  33. base.Result
  34. }