package product import ( "github.com/gogf/gf/v2/frame/g" "hotgo/internal/model/input/form" "hotgo/internal/model/input/sysin" ) type ListReq struct { g.Meta `path:"/product/list" method:"get" tags:"商品管理" summary:"获取商品列表"` sysin.ProductListInp } type ListRes struct { form.PageRes List []*sysin.ProductListModel `json:"list"` } type ViewReq struct { g.Meta `path:"/product/view" method:"get" tags:"商品管理" summary:"获取商品详情"` sysin.ProductViewInp } type ViewRes struct{ *sysin.ProductListModel } type EditReq struct { g.Meta `path:"/product/edit" method:"post" tags:"商品管理" summary:"新增编辑商品"` sysin.ProductEditInp } type EditRes struct { Id uint64 `json:"id"` } type StatusReq struct { g.Meta `path:"/product/status" method:"post" tags:"商品管理" summary:"商品上下架"` sysin.ProductStatusInp } type StatusRes struct{} type RecommendReq struct { g.Meta `path:"/product/recommend" method:"post" tags:"商品管理" summary:"商品推荐切换"` sysin.ProductRecommendInp } type RecommendRes struct{} type DeleteReq struct { g.Meta `path:"/product/delete" method:"post" tags:"商品管理" summary:"删除商品"` sysin.ProductDeleteInp } type DeleteRes struct{}