调整接口分组

This commit is contained in:
chy
2025-06-27 15:35:56 +08:00
parent ba28d0621a
commit 854d6c2120
18 changed files with 83 additions and 83 deletions

View File

@ -3,7 +3,7 @@ package v1
import "github.com/gogf/gf/v2/frame/g"
type GetReq struct {
g.Meta `path:"/desktop" method:"get" tags:"Desktop" summary:"(PC)获取桌面信息"`
g.Meta `path:"/desktop" method:"get" tags:"PC/Desktop" summary:"(PC)获取桌面信息"`
StoreId int64 `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
}
type GetRes struct {
@ -12,7 +12,7 @@ type GetRes struct {
}
type SaveReq struct {
g.Meta `path:"/desktop" method:"post" tags:"Desktop" summary:"(PC)保存桌面信息"`
g.Meta `path:"/desktop" method:"post" tags:"PC/Desktop" summary:"(PC)保存桌面信息"`
StoreId int64 `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
TopComponentVisible int `json:"topComponentVisible" v:"in:1,2#显示隐藏只能选择1或2"`
RightComponentVisible int `json:"rightComponentVisible" v:"in:1,2#显示隐藏只能选择1或2"`