Documentation
¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- func CreateUser(input CreateUserParams) (res schema.Response)
- func CreateUserRouter(c *gin.Context)
- func GetList(c helper.Context, input Query) (res schema.List)
- func GetListRouter(c *gin.Context)
- func GetProfileByAdmin(c helper.Context, userId string) (res schema.Response)
- func GetProfileByAdminRouter(c *gin.Context)
- func UpdatePasswordByAdmin(c helper.Context, userId string, input UpdatePasswordByAdminParams) (res schema.Response)
- func UpdatePasswordByAdminRouter(c *gin.Context)
- func UpdateProfileByAdmin(c helper.Context, userId string, input UpdateProfileParams) (res schema.Response)
- func UpdateProfileByAdminRouter(c *gin.Context)
- type CreateUserParams
- type Query
- type UpdatePasswordByAdminParams
- type UpdatePasswordParams
- type UpdateProfileParams
- type UpdateWechatProfileParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(input CreateUserParams) (res schema.Response)
func CreateUserRouter ¶
func GetListRouter ¶
func GetProfileByAdmin ¶
func GetProfileByAdminRouter ¶
func UpdatePasswordByAdmin ¶
func UpdateProfileByAdmin ¶
Types ¶
type CreateUserParams ¶
type UpdatePasswordByAdminParams ¶
type UpdatePasswordByAdminParams struct {
NewPassword string `json:"new_password" valid:"required~请输入新密码"`
}
type UpdatePasswordParams ¶
type UpdateProfileParams ¶
type UpdateProfileParams struct {
Username *string `json:"username"` // 用户名,部分用户有机会修改自己的用户名,比如微信注册的帐号
Nickname *string `json:"nickname" valid:"length(1|36)~昵称长度为1-36位"`
Gender *model.Gender `json:"gender"`
Avatar *string `json:"avatar"`
Wechat *UpdateWechatProfileParams `json:"wechat"` // 更新微信绑定的帐号相关
}
type UpdateWechatProfileParams ¶
type UpdateWechatProfileParams struct {
Nickname *string `json:"nickname"` // 用户昵称
AvatarUrl *string `json:"avatar_url"` // 用户头像
Gender *int `json:"gender"` // 性别
Country *string `json:"country"` // 国家
Province *string `json:"province"` // 省份
City *string `json:"city"` // 城市
Language *string `json:"language"` // 语言
}
绑定的微信信息帐号相关
Click to show internal directories.
Click to hide internal directories.