Documentation ¶
Index ¶
- func AddProfile(updPro UsersProfile) error
- func AddUserProfile(updUser Users, updPro UsersProfile) (int64, error)
- func ChangeUserAvatar(id int64, avatar string) error
- func ChangeUserStatus(id int64, status int) error
- func CountUser(condArr map[string]string) int64
- func DeleteUsers(ids string) error
- func GetAvatarUserid(id int64) string
- func GetRealname(id int64) string
- func GetUserEmail(id int64) string
- func ResetUserPassword(id string) (error, string)
- func UpdatePassword(id int64, oldPawd string, newPwd string) error
- func UpdateProfile(id int64, updPro UsersProfile) error
- func UpdateUser(id int64, updUser Users) error
- type Users
- type UsersFind
- type UsersPermissionsAll
- type UsersProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvatarUserid ¶
func GetRealname ¶
func GetUserEmail ¶
Types ¶
type Users ¶
type Users struct { Id int64 `orm:"pk;column(userid);"` Profile *UsersProfile `orm:"rel(one);"` Username string Password string Avatar string Status int }
type UsersPermissionsAll ¶
func GetPermissionsAll ¶
func GetPermissionsAll(id int64) (UsersPermissionsAll, error)
Click to show internal directories.
Click to hide internal directories.