announcement.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type AnnouncementAddBody struct {
  7. Title string `form:"title" json:"title"`
  8. Content string `form:"content" json:"content"`
  9. }
  10. type AnnouncementAddRequest struct {
  11. base.Header
  12. AnnouncementAddBody
  13. }
  14. type AnnouncementAddResponse struct{
  15. base.Result
  16. Data v1.AnnouncementAddReply `json:"data"`
  17. }
  18. type AnnouncementUpdateBody struct {
  19. Title string `form:"title" json:"title"`
  20. Content string `form:"content" json:"content"`
  21. Id int64 `form:"id"`
  22. }
  23. type AnnouncementUpdateRequest struct{
  24. base.Header
  25. AnnouncementUpdateBody
  26. }
  27. type AnnouncementUpdateResponse struct{
  28. base.Result
  29. }
  30. type AnnouncementDelQuery struct {
  31. Id int64 `form:"id"`
  32. }
  33. type AnnouncementDelRequest struct{
  34. base.Header
  35. AnnouncementDelQuery
  36. }
  37. type AnnouncementDelResponse struct{
  38. base.Result
  39. }
  40. type AnnouncementListQuery struct {
  41. Page int64 `form:"page" json:"page"`
  42. PageSize int64 `form:"page_size" json:"page_size"`
  43. }
  44. type AnnouncementListRequest struct{
  45. base.Header
  46. AnnouncementListQuery
  47. }
  48. type AnnouncementListResponse struct{
  49. base.Result
  50. Data v1.AnnouncementListReply `json:"data"`
  51. }