Documentation ¶
Index ¶
- func AddUser(user *structs.User) (int, error)
- func CheckImgCode(id string, code string) bool
- func DataBaseName() string
- func DelUser(id int) (int, error)
- func GetImageCode() (captchaId string, imageCode string)
- func GetImgCodeUrl() *structs.LoginReturn
- func GetUserInfo(id string) (*structs.User, int, error)
- func Login(user *structs.User) *structs.LoginReturn
- func Logout(token string) error
- func SelectUsers(spage, snumber string) (*structs.ReturnUsers, error)
- func UpdateUser(user *structs.User) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectUsers ¶
func SelectUsers(spage, snumber string) (*structs.ReturnUsers, error)
分页查询, 参数1:第几页,参数2:每页有多少条记录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.