package v1 import ( "github.com/gogf/gf/v2/frame/g" ) type InfoReq struct { g.Meta `path:"/user/info" tags:"APP" method:"get" summary:"获取用户信息"` } type InfoRes struct { g.Meta `mime:"application/json"` UserId int64 `json:"userId"` Username string `json:"username"` // 用户名 Avatar string `json:"avatar"` // 头像 URL Email string `json:"email"` // 邮箱 Points uint64 `json:"points"` } type DeleteReq struct { g.Meta `path:"/user/delete" tags:"APP" method:"post" summary:"删除用户"` Password string `json:"password" v:"required" dc:"密码"` } type DeleteRes struct { Success bool `json:"success" dc:"是否成功"` } type LogoutReq struct { g.Meta `path:"/user/logout" tags:"APP" method:"post" summary:"登出"` } type LogoutRes struct { Success bool `json:"success" dc:"是否成功"` }