You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5 KiB

11 months ago
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "xgit.pub/st52/xcore/dto"
  5. )
  6. // GetTreeReq 获取分类树请求参数
  7. type GetTreeReq struct {
  8. g.Meta `path:"/category/tree" method:"post" summary:"获取树" tags:"分类"`
  9. }
  10. // GetTreeRes 获取分类树返回参数
  11. type GetTreeRes struct {
  12. Data interface{} `json:"data"`
  13. }
  14. // GetListReq 获取分类列表
  15. type GetListReq struct {
  16. g.Meta `path:"/category/list" method:"post" summary:"获取列表" tags:"分类"`
  17. Key string `json:"key"`
  18. dto.PageReq
  19. }
  20. // GetListRes 获取分类列表返回参数
  21. type GetListRes struct {
  22. dto.PageRes
  23. }
  24. // CreateReq 创建分类请求参数
  25. type CreateReq struct {
  26. g.Meta `path:"/category/create" method:"post" summary:"创建" tags:"分类"`
  27. }
  28. // CreateRes 创建分类返回参数
  29. type CreateRes struct{}
  30. // UpdateReq 更新分类请求参数
  31. type UpdateReq struct {
  32. g.Meta `path:"/category/update" method:"post" summary:"更新" tags:"分类"`
  33. }
  34. // UpdateRes 更新分类返回参数
  35. type UpdateRes struct{}
  36. // DeleteReq 删除分类请求参数
  37. type DeleteReq struct {
  38. g.Meta `path:"/category/delete" method:"post" summary:"删除" tags:"分类"`
  39. Id uint `json:"id"`
  40. }
  41. // DeleteRes 删除分类返回参数
  42. type DeleteRes struct{}
  43. // BatchDeleteReq 批量删除分类请求参数
  44. type BatchDeleteReq struct {
  45. g.Meta `path:"/category/batch/delete" method:"post" summary:"批量删除" tags:"分类"`
  46. Ids []uint `json:"ids"`
  47. }
  48. // BatchDeleteRes 批量删除分类返回参数
  49. type BatchDeleteRes struct{}