package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 26, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type GetUserInfoReq struct {
g.Meta `path:"/user/getInfo" method:"get" tags:"个人信息" summary:"获取个人信息"`
}
type GetUserInfoRes struct {
g.Meta `mime:"application/json"`
*model.UserInfo `json:"userInfo"`
}
type PutPasswordReq struct {
g.Meta `path:"/user/password" method:"put" tags:"个人信息" summary:"修改密码"`
OldPwd string `v:"required|length:6,20#请输入旧密码|旧密码长度为 6-20 位" json:"oldPwd"`
NewPwd string ``
}
type PutPasswordRes struct {
g.Meta `mime:"application/json"`
}
type PutProfileReq struct {
g.Meta `path:"/user/profile" method:"put" tags:"个人信息" summary:"修改个人信息"`
Nickname string `v:"required|length:2,12#请输入昵称|昵称长度为 2-12 位" json:"nickname"`
Sex int `v:"required#请选择性别" json:"sex"`
}
type PutProfileRes struct {
g.Meta `mime:"application/json"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.