Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuestDao ¶
type GuestDao interface {
// Login login
Login(username, password string) (bool, int)
// CheckLogin check login
CheckLogin()
// Register register
Register(username, password string) error
}
GuestDao
type UserDao ¶
type UserDao interface {
// EditPassword edit password
EditPassword(oldPassword, newPassword, username string) (bool, error)
// GetUserInfo get user info
GetUserInfo(username string) (bool, any, error)
// GetUserRole get user role
GetUserRole(username string) (bool, any, error)
// CheckUserIsAdmin check user is admin
CheckUserIsAdmin(username string) (bool, error)
}
UserDao
Click to show internal directories.
Click to hide internal directories.