Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateProfileParams.Status #376

Open
BenDaye opened this issue Oct 26, 2020 · 0 comments
Open

UpdateProfileParams.Status #376

BenDaye opened this issue Oct 26, 2020 · 0 comments

Comments

@BenDaye
Copy link

BenDaye commented Oct 26, 2020

type UpdateProfileParams struct {
Username *string `json:"username" validate:"omitempty,min=1,max=36" comment:"用户名"` // 用户名,部分用户有机会修改自己的用户名,比如微信注册的帐号
Nickname *string `json:"nickname" validate:"omitempty,min=1,max=36" comment:"昵称"`
Gender *model.Gender `json:"gender" validate:"omitempty,oneof=0 1 2" comment:"性别"`
Avatar *string `json:"avatar" validate:"omitempty,url" comment:"头像"`
Wechat *UpdateWechatProfileParams `json:"wechat" validate:"omitempty" comment:"微信信息"` // 更新微信绑定的帐号相关
}

管理员应该能修改用户状态

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant