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
62 lines
1.5 KiB
package v1
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"xgit.pub/st52/xcore/dto"
|
|
)
|
|
|
|
// GetTreeReq 获取分类树请求参数
|
|
type GetTreeReq struct {
|
|
g.Meta `path:"/category/tree" method:"post" summary:"获取树" tags:"分类"`
|
|
}
|
|
|
|
// GetTreeRes 获取分类树返回参数
|
|
type GetTreeRes struct {
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
// GetListReq 获取分类列表
|
|
type GetListReq struct {
|
|
g.Meta `path:"/category/list" method:"post" summary:"获取列表" tags:"分类"`
|
|
Key string `json:"key"`
|
|
dto.PageReq
|
|
}
|
|
|
|
// GetListRes 获取分类列表返回参数
|
|
type GetListRes struct {
|
|
dto.PageRes
|
|
}
|
|
|
|
// CreateReq 创建分类请求参数
|
|
type CreateReq struct {
|
|
g.Meta `path:"/category/create" method:"post" summary:"创建" tags:"分类"`
|
|
}
|
|
|
|
// CreateRes 创建分类返回参数
|
|
type CreateRes struct{}
|
|
|
|
// UpdateReq 更新分类请求参数
|
|
type UpdateReq struct {
|
|
g.Meta `path:"/category/update" method:"post" summary:"更新" tags:"分类"`
|
|
}
|
|
|
|
// UpdateRes 更新分类返回参数
|
|
type UpdateRes struct{}
|
|
|
|
// DeleteReq 删除分类请求参数
|
|
type DeleteReq struct {
|
|
g.Meta `path:"/category/delete" method:"post" summary:"删除" tags:"分类"`
|
|
Id uint `json:"id"`
|
|
}
|
|
|
|
// DeleteRes 删除分类返回参数
|
|
type DeleteRes struct{}
|
|
|
|
// BatchDeleteReq 批量删除分类请求参数
|
|
type BatchDeleteReq struct {
|
|
g.Meta `path:"/category/batch/delete" method:"post" summary:"批量删除" tags:"分类"`
|
|
Ids []uint `json:"ids"`
|
|
}
|
|
|
|
// BatchDeleteRes 批量删除分类返回参数
|
|
type BatchDeleteRes struct{}
|