models

package
v0.0.0-...-616fdc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(user *structs.User) (int, error)

新增用户信息

func CheckImgCode

func CheckImgCode(id string, code string) bool

验证码校验码

func DataBaseName

func DataBaseName() string

数据库名称

func DelUser

func DelUser(id int) (int, error)

删除用户

func GetImageCode

func GetImageCode() (captchaId string, imageCode string)

获取图形验证码:数字

func GetImgCodeUrl

func GetImgCodeUrl() *structs.LoginReturn

返回图片验证码

func GetUserInfo

func GetUserInfo(id string) (*structs.User, int, error)

获取单个用户的信息

func Login

func Login(user *structs.User) *structs.LoginReturn

用户登录

func Logout

func Logout(token string) error

用户登出

func SelectUsers

func SelectUsers(spage, snumber string) (*structs.ReturnUsers, error)

分页查询, 参数1:第几页,参数2:每页有多少条记录

func UpdateUser

func UpdateUser(user *structs.User) (int, error)

修改用户

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL