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.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- func GenerateResetPayPasswordCode(uid string) string
- func GetAvatarRouter(c *gin.Context)
- func GetProfile(c helper.Context) (res schema.Response)
- func GetProfileByAdmin(c helper.Context, userId string) (res schema.Response)
- func GetProfileByAdminRouter(c *gin.Context)
- func GetProfileRouter(c *gin.Context)
- func ResetPayPassword(c helper.Context, input ResetPayPasswordParams) (res schema.Response)
- func ResetPayPasswordRouter(c *gin.Context)
- func SendAuthEmail(c helper.Context) (res schema.Response)
- func SendAuthEmailRouter(c *gin.Context)
- func SendAuthPhone(c helper.Context) (res schema.Response)
- func SendAuthPhoneRouter(c *gin.Context)
- func SendResetPayPassword(c helper.Context) (res schema.Response)
- func SendResetPayPasswordRouter(c *gin.Context)
- func SetPayPassword(c helper.Context, input SetPayPasswordParams) (res schema.Response)
- func SetPayPasswordRouter(c *gin.Context)
- func SignOut(c *gin.Context)
- func UpdatePassword(c helper.Context, input UpdatePasswordParams) (res schema.Response)
- func UpdatePasswordByAdmin(c helper.Context, userId string, input UpdatePasswordByAdminParams) (res schema.Response)
- func UpdatePasswordByAdminRouter(c *gin.Context)
- func UpdatePasswordRouter(c *gin.Context)
- func UpdatePayPassword(c helper.Context, input UpdatePayPasswordParams) (res schema.Response)
- func UpdatePayPasswordRouter(c *gin.Context)
- func UpdateProfile(c helper.Context, input UpdateProfileParams) (res schema.Response)
- func UpdateProfileByAdmin(c helper.Context, userId string, input UpdateProfileParams) (res schema.Response)
- func UpdateProfileByAdminRouter(c *gin.Context)
- func UpdateProfileRouter(c *gin.Context)
- func UploadAvatar(uid string, input UploadAvatarParams, file *multipart.FileHeader) (res schema.Response)
- func UploadAvatarRouter(c *gin.Context)
- type ResetPayPasswordParams
- type SetPayPasswordParams
- type UpdatePasswordByAdminParams
- type UpdatePasswordParams
- type UpdatePayPasswordParams
- type UpdateProfileParams
- type UpdateWechatProfileParams
- type UploadAvatarParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvatarRouter ¶
func GetProfileByAdmin ¶
func GetProfileByAdminRouter ¶
func GetProfileRouter ¶
func ResetPayPassword ¶
func ResetPayPassword(c helper.Context, input ResetPayPasswordParams) (res schema.Response)
func ResetPayPasswordRouter ¶
func SendAuthEmailRouter ¶
func SendAuthPhoneRouter ¶
func SetPayPassword ¶
func SetPayPassword(c helper.Context, input SetPayPasswordParams) (res schema.Response)
func SetPayPasswordRouter ¶
func UpdatePassword ¶
func UpdatePassword(c helper.Context, input UpdatePasswordParams) (res schema.Response)
func UpdatePasswordByAdmin ¶
func UpdatePasswordRouter ¶
func UpdatePayPassword ¶
func UpdatePayPassword(c helper.Context, input UpdatePayPasswordParams) (res schema.Response)
func UpdatePayPasswordRouter ¶
func UpdateProfile ¶
func UpdateProfile(c helper.Context, input UpdateProfileParams) (res schema.Response)
func UpdateProfileByAdmin ¶
func UpdateProfileRouter ¶
func UploadAvatar ¶
func UploadAvatar(uid string, input UploadAvatarParams, file *multipart.FileHeader) (res schema.Response)
func UploadAvatarRouter ¶
Types ¶
type ResetPayPasswordParams ¶
type SetPayPasswordParams ¶
type UpdatePasswordByAdminParams ¶
type UpdatePasswordByAdminParams struct {
NewPassword string `json:"new_password" valid:"required~请输入新密码"`
}
type UpdatePasswordParams ¶
type UpdatePayPasswordParams ¶
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"` // 语言 }
绑定的微信信息帐号相关
type UploadAvatarParams ¶
type UploadAvatarParams struct {
Immediately string `form:"immediately"` // 是否立即生效
}
Click to show internal directories.
Click to hide internal directories.