package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 13, 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#user.profile.valid.OldPwdRequired|user.profile.valid.OldPwdLength" 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#user.profile.valid.NicknameRequired|user.profile.valid.NicknameLength" json:"nickname"`
Sex int `v:"required#user.profile.valid.SexRequired" json:"sex"`
}
type PutProfileRes struct {
g.Meta `mime:"application/json"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.