Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClaims ¶
BaseClaims 声明用于在 JWT 中携带用户相关的信息
type CustomClaims ¶
type CustomClaims struct { BaseClaims BufferTime int64 jwt.RegisteredClaims }
type JwtBlacklist ¶
type Model ¶
type Model struct { CreateTime time.Time `db:"create_time" json:"-"` UpdateTime time.Time `db:"update_time" json:"-"` IsDelete int8 `db:"is_delete" json:"-"` }
Model 全局的实体属性
type User ¶
type User struct { Id int64 `db:"id" json:"id"` Account string `db:"account" json:"account"` Username string `db:"username" json:"username"` Password string `db:"password" json:"-"` Avatar string `db:"avatar" json:"avatar"` Email string `db:"email" json:"email"` Phone string `db:"phone" json:"phone"` Profile string `db:"profile" json:"profile"` Gender int8 `db:"gender" json:"gender"` Role string `db:"role" json:"role"` Model }
Click to show internal directories.
Click to hide internal directories.