system

package
v0.0.0-...-10680b3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAlreadyExistError = errors.New("user all ready exist")

Functions

func AuthUser

func AuthUser(ctx context.Context, flag bool) (*entity.User, error)

AuthUser 通过解析 jwtToken 获取用户信息 flag 控制是否去数据库读取详情

func GetUserByAccount

func GetUserByAccount(ctx context.Context, account string) (*entity.User, error)

func GetUserById

func GetUserById(ctx context.Context, id int64) (*entity.User, error)

func SaveUser

func SaveUser(ctx context.Context, account, name, password string) (int64, error)

func UpdateUser

func UpdateUser(ctx context.Context, user *entity.User) error

func Users

func Users(ctx context.Context, pager tabler.Pager, condition ...interface{}) ([]*entity.User, bool, error)

Users 获取 system user 列表 condition[0] query string condition[1:] the args for query string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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