jt.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package v1
  2. import (
  3. "xingjia-management-gateway/apis"
  4. "xingjia-management-gateway/param/base"
  5. )
  6. type JtContentAddBody struct {
  7. Title string `form:"title" json:"title"`
  8. // 标题图片
  9. FirstPics []string `form:"first_pics" json:"first_pics"`
  10. Content string `form:"content" json:"content"`
  11. // 1 发布 2 暂不发布
  12. PublishStatus int32 `form:"publish_status" json:"publish_status"`
  13. }
  14. type JtContentAddRequest struct {
  15. base.Header
  16. JtContentAddBody
  17. }
  18. type JtContentAddResponse struct {
  19. base.Result
  20. }
  21. type JtContentUpdateBody struct {
  22. Title string `form:"title" json:"title"`
  23. FirstPics []string `form:"first_pics" json:"first_pics"`
  24. Content string `form:"content" json:"content"`
  25. Id int64 `form:"id" json:"id"`
  26. // 1 发布 2 暂不发布
  27. PublishStatus int32 `form:"publish_status" json:"publish_status"`
  28. }
  29. type JtContentUpdateRequest struct {
  30. base.Header
  31. JtContentUpdateBody
  32. }
  33. type JtContentUpdateResponse struct {
  34. base.Result
  35. }
  36. type JtContentDelQuery struct {
  37. Id int64 `form:"id" json:"id"`
  38. }
  39. type JtContentDelRequest struct {
  40. base.Header
  41. JtContentDelQuery
  42. }
  43. type JtContentDelResponse struct {
  44. base.Result
  45. }
  46. type JtContentListQuery struct {
  47. Page int64 `form:"page" json:"page"`
  48. PageSize int64 `form:"page_size" json:"page_size"`
  49. }
  50. type JtContentInfoRequest struct {
  51. base.Header
  52. }
  53. type JtContentInfoData struct {
  54. Title string `json:"title"`
  55. FirstPics []string `json:"first_pics"`
  56. Content string `json:"content"`
  57. Id int64 `json:"id"`
  58. CreatedAt int64 `json:"created_at"`
  59. // 1 发布 2 暂不发布
  60. PublishStatus int32 `json:"publish_status"`
  61. }
  62. type JtContentInfoResponse struct {
  63. base.Result
  64. Data JtContentInfoData `json:"data"`
  65. }
  66. type JtContentListRequest struct {
  67. base.Header
  68. JtContentListQuery
  69. }
  70. type JtContentListResponse struct {
  71. base.Result
  72. Data apis.JtContentListReply `json:"data"`
  73. }
  74. type JtContentPublishBody struct {
  75. Id int64 `json:"id"`
  76. // 1 发布 2 下架
  77. PublishStatus int32 `form:"publish_status" json:"publish_status"`
  78. }
  79. type JtContentPublishRequest struct {
  80. base.Header
  81. JtContentPublishBody
  82. }
  83. type JtContentPublishResponse struct {
  84. base.Result
  85. }