Documentation
¶
Index ¶
Constants ¶
View Source
const ( USER_ROLE_ADMINISTRATOR uint64 = 4 USER_ROLE_WEBMASTER uint64 = 3 USER_ROLE_GUEST uint64 = 2 USER_ROLE_BANNED uint64 = 1 )
User Role constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint64 `json:"userID"` Group uint64 `json:"userGroup"` SocialID string `json:"userSocialID"` NameFirst string `json:"userNameFirst"` NameLast string `json:"userNameLast"` AvatarPath string `json:"userAvatarPath"` Email string `json:"userEmail"` AccessToken string `json:"-"` LastAccessTime string `json:"userLastAccessTime"` Role uint64 `json:"userRole"` RoleDesc string `json:"userRoleDesc"` Type uint64 `json:"userType"` TypeDesc string `json:"userTypeDesc"` }
User struct
func (*User) DecodeMsgpack ¶
User struct: msgpack decoder
func (*User) EncodeMsgpack ¶
User struct: msgpack encoder
type UserAuth ¶
User auth struct
func NewUserAuthFromString ¶
User auth string parser (format: userID:userGroup:hash)
type UserCreateDTO ¶
type UserCreateDTO struct { Group uint64 SocialID string NameFirst string NameLast string AvatarPath string Email string AccessToken string Role uint64 Type uint64 }
UserUpdateDTO struct
type UserFindAllDTO ¶
UserFindAllDTO struct
type UserFindOneBySocialIDDTO ¶
UserFindOneBySocialIDDTO struct
type UserRole ¶
type UserRole struct { ID uint64 `json:"roleID"` Role string `json:"roleDesc"` Sort uint64 `json:"roleSort"` }
UserRole struct
func (*UserRole) DecodeMsgpack ¶
UserRole struct: msgpack decoder
func (*UserRole) EncodeMsgpack ¶
UserRole struct: msgpack encoder
type UserSignInDTO ¶
type UserSignInDTO struct { NameFirst string NameLast string AvatarPath string Email string AccessToken string }
UserSignInDTO struct
type UserType ¶
UserType struct
func (*UserType) DecodeMsgpack ¶
UserType struct: msgpack decoder
func (*UserType) EncodeMsgpack ¶
UserType struct: msgpack encoder
Click to show internal directories.
Click to hide internal directories.