retrofit.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package forms
  2. type RetrofitGroupAddPlayerReq struct {
  3. ID int64 `json:"id" form:"id"`
  4. UserId int64 `json:"userId" form:"userId"`
  5. }
  6. func (req *RetrofitGroupAddPlayerReq) Check() error {
  7. return nil
  8. }
  9. type RetrofitGroupListReq struct {
  10. ListReq
  11. }
  12. func (req *RetrofitGroupListReq) Check() error {
  13. return nil
  14. }
  15. type RetrofitGroupEditReq struct {
  16. ID int64 `json:"id" form:"id"`
  17. Name string `json:"name" form:"name"` // 模板名称
  18. Remark string ` json:"remark" form:"remark"` // 备注
  19. Sort int64 `json:"sort" form:"sort"` // 排序
  20. Status int32 `json:"status" form:"status"` // 状态
  21. }
  22. type RetrofitGroupDeleteReq struct {
  23. ID int64 `json:"id" form:"id"`
  24. }
  25. type RetrofitListReq struct {
  26. ListReq
  27. GroupId int64 `json:"groupId" form:"groupId"`
  28. }
  29. func (req *RetrofitListReq) Check() error {
  30. return nil
  31. }
  32. type RetrofitEditReq struct {
  33. ID int64 `json:"id" form:"id"`
  34. Name string `json:"name" form:"name"` // 模板名称
  35. GroupID int64 `json:"groupId" form:"groupId"` // 模板ID
  36. Type int64 `json:"type" form:"type"` // 加装类型
  37. Mid int64 `json:"mid" form:"mid"` // 关联ID
  38. Nums int64 `json:"nums" form:"nums"` // 数量
  39. Sort int64 `json:"sort" form:"sort"` // 排序
  40. Status int32 `json:"status" form:"status"` // 状态
  41. }
  42. type RetrofitDeleteReq struct {
  43. ID int64 `json:"id" form:"id"`
  44. }