neighbor.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. pb_v1 "property-system-gateway/pb/v1"
  5. )
  6. type NeighborClassAddBody struct {
  7. ClassName string `form:"class_name" json:"class_name"`
  8. // 分类图标
  9. ClassPic string `form:"class_pic" json:"class_pic"`
  10. // true 开启 false 禁用
  11. Enable bool `form:"enable" json:"enable"`
  12. }
  13. type NeighborClassAddRequest struct {
  14. base.Header
  15. NeighborClassAddBody
  16. }
  17. type NeighborClassAddResponse struct{
  18. base.Result
  19. }
  20. type NeighborClassDelQuery struct {
  21. Id int64 `form:"id" json:"id"`
  22. }
  23. type NeighborClassDelRequest struct {
  24. base.Header
  25. NeighborClassDelQuery
  26. }
  27. type NeighborClassDelResponse struct{
  28. base.Result
  29. }
  30. type NeighborClassUpdateBody struct {
  31. Id int64 `form:"id" json:"id"`
  32. ClassName string `form:"class_name" json:"class_name"`
  33. // 分类图标
  34. ClassPic string `form:"class_pic" json:"class_pic"`
  35. // true 开启 false 禁用
  36. Enable bool `form:"enable" json:"enable"`
  37. }
  38. type NeighborClassUpdateRequest struct {
  39. base.Header
  40. NeighborClassUpdateBody
  41. }
  42. type NeighborClassUpdateResponse struct{
  43. base.Result
  44. }
  45. type NeighborClassListQuery struct {
  46. Page int64 `form:"page" json:"page"`
  47. PageSize int64 `form:"page_size" json:"page_size"`
  48. ClassName string `form:"class_name" json:"class_name"`
  49. }
  50. type NeighborClassListRequest struct {
  51. base.Header
  52. NeighborClassListQuery
  53. }
  54. type NeighborClassListResponse struct {
  55. base.Result
  56. Data pb_v1.NeighborClassListReply `json:"data"`
  57. }
  58. type NeighborArticleDelQuery struct {
  59. Id int64 `form:"id" json:"id"`
  60. }
  61. type NeighborArticleDelRequest struct {
  62. base.Header
  63. NeighborArticleDelQuery
  64. }
  65. type NeighborArticleDelResponse struct{
  66. base.Result
  67. }
  68. type NeighborArticleListQuery struct {
  69. Page int64 `form:"page" json:"page"`
  70. PageSize int64 `form:"page_size" json:"page_size"`
  71. Title string `form:"title" json:"title"`
  72. ClassId int64 `form:"class_id" json:"class_id"`
  73. }
  74. type NeighborArticleListRequest struct {
  75. base.Header
  76. NeighborArticleListQuery
  77. }
  78. type NeighborArticleListResponse struct {
  79. base.Result
  80. Data pb_v1.NeighborArticleListReply `json:"data"`
  81. }
  82. type NeighborCommentDelQuery struct {
  83. Id int64 `form:"id" json:"id"`
  84. }
  85. type NeighborCommentDelRequest struct {
  86. base.Header
  87. NeighborCommentDelQuery
  88. }
  89. type NeighborCommentDelResponse struct{
  90. base.Result
  91. }
  92. type NeighborCommentListQuery struct {
  93. Page int64 `form:"page" json:"page"`
  94. PageSize int64 `form:"page_size" json:"page_size"`
  95. ArticleId int64 `form:"article_id" json:"article_id"`
  96. CommentId int64 `form:"comment_id" json:"comment_id"`
  97. }
  98. type NeighborCommentListRequest struct {
  99. base.Header
  100. NeighborCommentListQuery
  101. }
  102. type NeighborCommentListResponse struct {
  103. base.Result
  104. Data pb_v1.NeighborCommentListReply `json:"data"`
  105. }