修改接口说明

This commit is contained in:
2025-06-12 09:18:25 +08:00
parent 3f5d0d7b2b
commit f7cffcae21
16 changed files with 57 additions and 55 deletions

View File

@ -3,7 +3,7 @@ package v1
import "github.com/gogf/gf/v2/frame/g"
type ListReq struct {
g.Meta `path:"/game" method:"get" tags:"Game" summary:"获取游戏列表"`
g.Meta `path:"/game" method:"get" tags:"Game" summary:"(系统、商户门店后台、PC)获取游戏列表"`
Page int `json:"page" dc:"页数"`
Size int `json:"size" dc:"每页数量"`
}
@ -14,7 +14,7 @@ type ListRes struct {
}
type CreateReq struct {
g.Meta `path:"/game" method:"post" tags:"Game" summary:"创建游戏"`
g.Meta `path:"/game" method:"post" tags:"Game" summary:"(系统)创建游戏"`
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
@ -26,7 +26,7 @@ type CreateRes struct {
}
type UpdateReq struct {
g.Meta `path:"/game" method:"put" tags:"Game" summary:"更新游戏"`
g.Meta `path:"/game" method:"put" tags:"Game" summary:"(系统)更新游戏"`
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
@ -39,7 +39,7 @@ type UpdateRes struct {
}
type DeleteReq struct {
g.Meta `path:"/game/{id}" method:"delete" tags:"Game" summary:"删除游戏"`
g.Meta `path:"/game/{id}" method:"delete" tags:"Game" summary:"(系统)删除游戏"`
ID int64 `json:"Id" v:"required#ID不能为空" dc:"ID"`
}