Documentation ¶
Index ¶
- func GetUserInfo(uID uint) (userdao.User, error)
- func ModifyAvatar(req ModifyUserAvatarRequest, uID uint) (bool, error)
- func ModifyUserInfo(req ModifyUserInfoRequest, uID uint) (userdao.User, error)
- func UserRegister(req RegisterRequest) (bool, error)
- type LoginRequest
- type LoginResponse
- type ModifyUserAvatarRequest
- type ModifyUserInfoRequest
- type RegisterRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyAvatar ¶
func ModifyAvatar(req ModifyUserAvatarRequest, uID uint) (bool, error)
func ModifyUserInfo ¶
func ModifyUserInfo(req ModifyUserInfoRequest, uID uint) (userdao.User, error)
Types ¶
type LoginRequest ¶
type LoginResponse ¶
func Login ¶
func Login(req LoginRequest) (LoginResponse, error)
type ModifyUserAvatarRequest ¶
type ModifyUserAvatarRequest struct {
FileURL string `json:"file_url"`
}
type ModifyUserInfoRequest ¶
type RegisterRequest ¶
Click to show internal directories.
Click to hide internal directories.