完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View File

@ -4,10 +4,10 @@ import (
"github.com/gogf/gf/v2/frame/g"
)
type UserInfoReq struct {
g.Meta `path:"/user/info" tags:"APP/User" method:"get" summary:"获取用户信息"`
type InfoReq struct {
g.Meta `path:"/user/info" tags:"APP" method:"get" summary:"获取用户信息"`
}
type UserInfoRes struct {
type InfoRes struct {
g.Meta `mime:"application/json"`
UserId int64 `json:"userId"`
Username string `json:"username"` // 用户名
@ -17,7 +17,7 @@ type UserInfoRes struct {
}
type DeleteReq struct {
g.Meta `path:"/user/delete" tags:"APP/User" method:"post" summary:"删除用户"`
g.Meta `path:"/user/delete" tags:"APP" method:"post" summary:"删除用户"`
Password string `json:"password" v:"required" dc:"密码"`
}
@ -26,7 +26,7 @@ type DeleteRes struct {
}
type LogoutReq struct {
g.Meta `path:"/user/logout" tags:"APP/User" method:"post" summary:"登出"`
g.Meta `path:"/user/logout" tags:"APP" method:"post" summary:"登出"`
}
type LogoutRes struct {
Success bool `json:"success" dc:"是否成功"`