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.

80 lines
2.5 KiB

9 months ago
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "xgit.pub/st52/xcore/dto"
  5. )
  6. // GetListReq 获取列表请求参数
  7. type GetListReq struct {
  8. g.Meta `path:"/collect/list" method:"post" summary:"获取列表" tags:"采集"`
  9. Key string `json:"key"`
  10. dto.PageReq
  11. }
  12. // GetListRes 获取列表返回参数
  13. type GetListRes struct {
  14. dto.PageRes
  15. }
  16. // CreateReq 创建请求参数
  17. type CreateReq struct {
  18. g.Meta `path:"/collect/create" method:"post" summary:"创建" tags:"采集"`
  19. Name string `json:"name" ` // 资源名
  20. Url string `json:"url" ` //
  21. Param string `json:"param" ` // 参数
  22. Model uint `json:"model" ` // 类型
  23. Opt uint `json:"opt" ` // 操作方式
  24. Filter int `json:"filter" ` // 过滤模式
  25. FilterForm string `json:"filter_form" ` //
  26. SyncPic uint `json:"sync_pic" ` // 同步图片 全局 2 开启 1 关闭0
  27. Class string `json:"class" ` // 扩展分类 逗号,分隔
  28. }
  29. // CreateRes 创建返回参数
  30. type CreateRes struct{}
  31. // UpdateReq 更新请求参数
  32. type UpdateReq struct {
  33. g.Meta `path:"/collect/update" method:"post" summary:"更新" tags:"采集"`
  34. Id uint `json:"id" ` //
  35. Name string `json:"name" ` // 资源名
  36. Url string `json:"url" ` //
  37. Param string `json:"param" ` // 参数
  38. Model uint `json:"model" ` // 类型
  39. Opt uint `json:"opt" ` // 操作方式
  40. Filter int `json:"filter" ` // 过滤模式
  41. FilterForm string `json:"filter_form" ` //
  42. SyncPic uint `json:"sync_pic" ` // 同步图片 全局 2 开启 1 关闭0
  43. Class string `json:"class" ` // 扩展分类 逗号,分隔
  44. }
  45. // UpdateRes 更新请求返回参数
  46. type UpdateRes struct{}
  47. // DeleteReq 删除请求参数
  48. type DeleteReq struct {
  49. g.Meta `path:"/collect/delete" method:"post" summary:"删除" tags:"采集"`
  50. Id uint `json:"id"`
  51. }
  52. // DeleteRes 删除返回参数
  53. type DeleteRes struct{}
  54. // BatchDeleteReq 批量删除请求参数
  55. type BatchDeleteReq struct {
  56. g.Meta `path:"/collect/delete/batch" method:"post" summary:"批量删除" tags:"采集"`
  57. Ids []uint `json:"ids"`
  58. }
  59. // BatchDeleteRes 批量删除返回参数
  60. type BatchDeleteRes struct{}
  61. // GetReq 获取请求参数
  62. type GetReq struct {
  63. g.Meta `path:"/collect/get" method:"post" summary:"获取" tags:"采集"`
  64. Id uint `json:"id"`
  65. }
  66. // GetRes 获取返回参数
  67. type GetRes struct{}