Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
Types ¶
type User ¶
type User struct { bun.BaseModel `bun:"table:mtop_user"` Username string `bun:"username,notnull,pk" json:"username"` Salt string `bun:"salt,notnull" json:"-"` Password string `bun:"password,notnull" json:"password"` CreatedTime time.Time `bun:"created_time,notnull,default:current_timestamp" json:"created_time"` UpdatedTime time.Time `bun:"updated_time,notnull,default:current_timestamp" json:"updated_time"` }
func CreateUser ¶
func GetUserByUsername ¶
* return nil if user not found.
Click to show internal directories.
Click to hide internal directories.