maintainace.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. package v1
  2. import (
  3. "adm-gateway/param/base"
  4. v1 "adm-gateway/pb/v1"
  5. )
  6. type GetMaintainaceManualQuery struct {
  7. StyleId string `form:"style_id" json:"style_id"`
  8. }
  9. type GetMaintainaceManualRequest struct {
  10. base.Header
  11. GetMaintainaceManualQuery
  12. }
  13. type GetMaintainaceManualResponse struct {
  14. base.Result
  15. Data *v1.MaintainManualReply `json:"data"`
  16. }
  17. type GetItemListQuery struct {
  18. ItemType int64 `form:"item_type" json:"item_type"`
  19. StyleId string `form:"style_id" json:"style_id"`
  20. }
  21. type GetItemListRequest struct {
  22. base.Header
  23. GetItemListQuery
  24. }
  25. type GetItemListResponse struct {
  26. base.Result
  27. Data *v1.ItemListReply `json:"data"`
  28. }
  29. type UpdateMaintainManualBody struct {
  30. Id int64 `form:"id" json:"id"`
  31. ItemId int64 `form:"item_id" json:"item_id"`
  32. StyleId string `form:"style_id" json:"style_id"`
  33. StartMile int64 `form:"start_mile" json:"start_mile"`
  34. MileCycle int64 `form:"mile_cycle" json:"mile_cycle"`
  35. StartDate int64 `form:"start_date" json:"start_date"`
  36. DateCycle int64 `form:"date_cycle" json:"date_cycle"`
  37. Name string `form:"name" json:"name"`
  38. Tid int64 `form:"tid" json:"tid"`
  39. }
  40. type UpdateMaintainManualRequest struct {
  41. base.Header
  42. UpdateMaintainManualBody
  43. }
  44. type UpdateMaintainManualResponse struct {
  45. base.Result
  46. }
  47. type GetMaintainaceManualInfoRequest struct {
  48. base.Header
  49. GetMaintainaceManualQuery
  50. }
  51. type GetMaintainaceManualInfoResponse struct {
  52. base.Result
  53. Data *v1.MaintainManualInfoReply `json:"data"`
  54. }
  55. type GetStyleItemResponse struct {
  56. base.Result
  57. Data *v1.StyleItemReply `json:"data"`
  58. }
  59. type GetC2ListQuery struct {
  60. StyleId string `form:"style_id" json:"style_id"`
  61. }
  62. type GetC2ListRequest struct {
  63. base.Header
  64. GetC2ListQuery
  65. }
  66. type GetC2ListResponse struct {
  67. base.Result
  68. Data *v1.C2ListReply `json:"data"`
  69. }
  70. type UpdateStyleItem struct {
  71. Id int64 `form:"id" json:"id"`
  72. C2Id int64 `form:"c2_id" json:"c2_id"`
  73. StyleId string `form:"style_id" json:"style_id"`
  74. Useage string `form:"useage" json:"useage"`
  75. Detail string `form:"detail" json:"detail"`
  76. AttributeRule string `form:"attribute_rule" json:"attribute_rule"`
  77. }
  78. type UpdateStyleItemBody struct {
  79. List []UpdateStyleItem `form:"list" json:"list"`
  80. }
  81. type UpdateStyleItemRequest struct {
  82. base.Header
  83. UpdateStyleItemBody
  84. }
  85. type DeleteMaintainacePath struct {
  86. Id int64 `uri:"id" json:"id"`
  87. }
  88. type DeleteMaintainaceRequest struct {
  89. base.Header
  90. DeleteMaintainacePath
  91. }