调整接口分组

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

@ -16,7 +16,7 @@ type ListRes struct {
}
type CreateReq struct {
g.Meta `path:"/game" method:"post" tags:"Game" summary:"(系统)创建游戏"`
g.Meta `path:"/game" method:"post" tags:"Backend/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:"游戏代号"`
@ -29,7 +29,7 @@ type CreateRes struct {
}
type UpdateReq struct {
g.Meta `path:"/game" method:"put" tags:"Game" summary:"(系统)更新游戏"`
g.Meta `path:"/game" method:"put" tags:"Backend/Game" summary:"(系统)更新游戏"`
GameID int64 `json:"gameId" dc:"游戏ID"`
GameName string `json:"gameName" dc:"游戏名称"`
GameCode string `json:"gameCode" dc:"游戏代号"`
@ -43,7 +43,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:"Backend/Game" summary:"(系统)删除游戏"`
ID int64 `json:"Id" v:"required#ID不能为空" dc:"ID"`
}