Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func CreateUser(input CreateUserParams) (res schema.Response)
- func CreateUserRouter(context *gin.Context)
- func GenerateResetPayPasswordCode(uid string) string
- func GetAvatarRouter(context *gin.Context)
- func GetList(context controller.Context, input Query) (res schema.List)
- func GetListRouter(context *gin.Context)
- func GetProfile(context controller.Context) (res schema.Response)
- func GetProfileByAdmin(context controller.Context, userId string) (res schema.Response)
- func GetProfileByAdminRouter(context *gin.Context)
- func GetProfileRouter(context *gin.Context)
- func ResetPayPassword(context controller.Context, input ResetPayPasswordParams) (res schema.Response)
- func ResetPayPasswordRouter(context *gin.Context)
- func SendResetPayPassword(context controller.Context) (res schema.Response)
- func SendResetPayPasswordRouter(context *gin.Context)
- func SetPayPassword(context controller.Context, input SetPayPasswordParams) (res schema.Response)
- func SetPayPasswordRouter(context *gin.Context)
- func SignOut(context *gin.Context)
- func UpdatePassword(context controller.Context, input UpdatePasswordParams) (res schema.Response)
- func UpdatePasswordByAdmin(context controller.Context, userId string, input UpdatePasswordByAdminParams) (res schema.Response)
- func UpdatePasswordByAdminRouter(context *gin.Context)
- func UpdatePasswordRouter(context *gin.Context)
- func UpdatePayPassword(context controller.Context, input UpdatePayPasswordParams) (res schema.Response)
- func UpdatePayPasswordRouter(context *gin.Context)
- func UpdateProfile(context controller.Context, input UpdateProfileParams) (res schema.Response)
- func UpdateProfileByAdmin(context controller.Context, userId string, input UpdateProfileParams) (res schema.Response)
- func UpdateProfileByAdminRouter(context *gin.Context)
- func UpdateProfileRouter(context *gin.Context)
- func UploadAvatar(uid string, input UploadAvatarParams, file *multipart.FileHeader) (res schema.Response)
- func UploadAvatarRouter(context *gin.Context)
- type CreateUserParams
- type Query
- type ResetPayPasswordParams
- type SetPayPasswordParams
- type UpdatePasswordByAdminParams
- type UpdatePasswordParams
- type UpdatePayPasswordParams
- type UpdateProfileParams
- type UploadAvatarParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(input CreateUserParams) (res schema.Response)
func CreateUserRouter ¶
func GetAvatarRouter ¶
func GetListRouter ¶
func GetProfile ¶
func GetProfile(context controller.Context) (res schema.Response)
func GetProfileByAdmin ¶
func GetProfileByAdmin(context controller.Context, userId string) (res schema.Response)
func GetProfileByAdminRouter ¶
func GetProfileRouter ¶
func ResetPayPassword ¶
func ResetPayPassword(context controller.Context, input ResetPayPasswordParams) (res schema.Response)
func ResetPayPasswordRouter ¶
func SendResetPayPassword ¶
func SendResetPayPassword(context controller.Context) (res schema.Response)
func SetPayPassword ¶
func SetPayPassword(context controller.Context, input SetPayPasswordParams) (res schema.Response)
func SetPayPasswordRouter ¶
func UpdatePassword ¶
func UpdatePassword(context controller.Context, input UpdatePasswordParams) (res schema.Response)
func UpdatePasswordByAdmin ¶
func UpdatePasswordByAdmin(context controller.Context, userId string, input UpdatePasswordByAdminParams) (res schema.Response)
func UpdatePasswordRouter ¶
func UpdatePayPassword ¶
func UpdatePayPassword(context controller.Context, input UpdatePayPasswordParams) (res schema.Response)
func UpdatePayPasswordRouter ¶
func UpdateProfile ¶
func UpdateProfile(context controller.Context, input UpdateProfileParams) (res schema.Response)
func UpdateProfileByAdmin ¶
func UpdateProfileByAdmin(context controller.Context, userId string, input UpdateProfileParams) (res schema.Response)
func UpdateProfileRouter ¶
func UploadAvatar ¶
func UploadAvatar(uid string, input UploadAvatarParams, file *multipart.FileHeader) (res schema.Response)
func UploadAvatarRouter ¶
Types ¶
type CreateUserParams ¶
type ResetPayPasswordParams ¶
type SetPayPasswordParams ¶
type UpdatePasswordByAdminParams ¶
type UpdatePasswordByAdminParams struct {
NewPassword string `json:"new_password" valid:"required~请输入新密码"`
}
type UpdatePasswordParams ¶
type UpdatePayPasswordParams ¶
type UpdateProfileParams ¶
type UploadAvatarParams ¶
type UploadAvatarParams struct {
Immediately string `form:"immediately"` // 是否立即生效
}
Click to show internal directories.
Click to hide internal directories.