template.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package v1
  2. import (
  3. "adm-gateway/param/base"
  4. v1 "adm-gateway/pb/v1"
  5. )
  6. type TemplateListQuery struct {
  7. Name string `form:"name" json:"name"`
  8. }
  9. type TemplateListRequest struct {
  10. base.Header
  11. TemplateListQuery
  12. }
  13. type TemplateListResponse struct {
  14. base.Result
  15. Data *v1.TemplateListReply `json:"data"`
  16. }
  17. type TemplateDetailListQuery struct {
  18. Tid int64 `form:"tid" json:"tid"`
  19. Page int32 `form:"page" json:"page"`
  20. PageSize int32 `form:"page_size" json:"page_size"`
  21. }
  22. type TemplateDetailListRequest struct {
  23. base.Header
  24. TemplateDetailListQuery
  25. }
  26. type TemplateDetailListResponse struct {
  27. base.Result
  28. Data *v1.TemplateDetailListReply `json:"data"`
  29. }
  30. type TemplateDetailQuery struct {
  31. Tid int64 `form:"tid" json:"tid"`
  32. }
  33. type TemplateDetailRequest struct {
  34. base.Header
  35. TemplateDetailQuery
  36. }
  37. type TemplateDetailResponse struct {
  38. base.Result
  39. Data *v1.TemplateDetailReply `json:"data"`
  40. }
  41. type AddTemplateDetailBody struct {
  42. Tid int64 `form:"tid" json:"tid"`
  43. ItemId int64 `form:"item_id" json:"item_id"`
  44. StartMile int64 `form:"start_mile" json:"start_mile"`
  45. MileCycle int64 `form:"mile_cycle" json:"mile_cycle"`
  46. StartDate int64 `form:"start_date" json:"start_date"`
  47. DateCycle int64 `form:"date_cycle" json:"date_cycle"`
  48. Name string `form:"name" json:"name"`
  49. }
  50. type AddTemplateDetailRequest struct {
  51. base.Header
  52. AddTemplateDetailBody
  53. }
  54. type AddTemplateDetailResponse struct {
  55. base.Result
  56. Data *v1.AddTemplateDetailReply `json:"data"`
  57. }
  58. type ChooseTemplateDetailBody struct {
  59. Tid int64 `form:"tid" json:"tid"`
  60. StyleId string `form:"style_id" json:"style_id"`
  61. }
  62. type ChooseTemplateDetailRequest struct {
  63. base.Header
  64. ChooseTemplateDetailBody
  65. }
  66. type GetTemplateItemListQuery struct {
  67. ItemType int64 `form:"item_type" json:"item_type"`
  68. Tid int64 `form:"tid" json:"tid"`
  69. }
  70. type GetTemplateItemListRequest struct {
  71. base.Header
  72. GetTemplateItemListQuery
  73. }