Documentation
¶
Index ¶
- Constants
- func Add(username, password string, status int, description string) error
- func CheckAuth(id int, requestId int) error
- func Remove(id int) error
- func SelfUpdata(id int, username, password string) error
- func Updata(id int, username, password string, status int, description string) error
- type Model
Constants ¶
View Source
const ( Enable = 1 // 启用 Disable = 2 // 禁用 )
Variables ¶
This section is empty.
Functions ¶
func SelfUpdata ¶
Types ¶
type Model ¶
type Model struct { models.Model Username string `json:"username"` Password string `json:"-"` LastLoginIp string `json:"last_login_ip"` LastLoginTime *utils.Time `json:"last_login_time"` Status int `json:"status"` Description string `json:"description"` }
func GetByUserName ¶
func (*Model) IsDisabled ¶
func (*Model) LoginUpdate ¶
func (Model) RequestIds ¶
func (Model) UserGroupIds ¶
Click to show internal directories.
Click to hide internal directories.