Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserRoleLUT = map[UserRole]proto.UserRole{ RoleAdmin: proto.UserRole_ROLE_ADMIN, RoleUser: proto.UserRole_ROLE_USER, }
UserRoleLUT ...
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { gorm.Model Token string `gorm:"column:token; not null" json:"token"` ExpiredAt time.Time `gorm:"column:expired_at; not null" json:"expired_at"` Username string `gorm:"column:username; not null" json:"username"` }
Session ...
Click to show internal directories.
Click to hide internal directories.