announcement.go 723 B

123456789101112131415161718192021222324252627282930313233343536
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. type AnnouncementListQuery 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 AnnouncementListRequest struct {
  12. base.Header
  13. AnnouncementListQuery
  14. }
  15. type AnnouncementListResponse struct {
  16. base.Result
  17. Data v1.AnnouncementListReply `json:"data"`
  18. }
  19. type AnnouncementReadAddBody struct {
  20. Id int64 `form:"id"`
  21. GardenId int64 `form:"garden_id" json:"garden_id"`
  22. }
  23. type AnnouncementReadAddRequest struct {
  24. base.Header
  25. AnnouncementReadAddBody
  26. }
  27. type AnnouncementReadAddResponse struct {
  28. base.Result
  29. }