Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorResponse ¶
func InitDbContext ¶
func InitDbContext()
Types ¶
type MyError ¶
func NewMyError ¶
type User ¶
type User struct { UserId int64 `json:"userId"` UserName string `json:"userName"` Phone string `json:"phone"` State UserStatus `json:"state"` CreateAt int64 `json:"createAt"` }
type UserLoginLog ¶
type UserLoginLog struct { Id int64 `json:"id"` UserId int64 `json:"userId"` Phone string `json:"phone"` LoginTime int64 `json:"loginTime"` ClientType string `json:"clientType"` LoginTimeout int64 `json:"loginTimeout"` RequestId string `json:"requestId"` Msg string `json:"msg"` }
func (*UserLoginLog) TableName ¶
func (u *UserLoginLog) TableName() string
type UserStatus ¶
type UserStatus string
const ( UserStatusNormal UserStatus = "normal" UserStatusDeleted UserStatus = "deleted" UserStatusBanned UserStatus = "banned" )
Click to show internal directories.
Click to hide internal directories.