sys

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB()

func InitDemoData

func InitDemoData() error

Types

type UserSrv

type UserSrv struct {
}

func GetUserSrv

func GetUserSrv() *UserSrv

func (*UserSrv) Create

func (srv *UserSrv) Create(username, pass string, domain *string) (*sys.SysUserModel, error)

func (*UserSrv) GetByDomain

func (srv *UserSrv) GetByDomain(domain string) (*sys.SysUserModel, error)

func (*UserSrv) GetById

func (srv *UserSrv) GetById(id int64) (*sys.SysUserModel, error)

func (*UserSrv) GetByPass

func (srv *UserSrv) GetByPass(username, pass string) (*sys.SysUserModel, error)

func (*UserSrv) GetContext

func (srv *UserSrv) GetContext(ctx context.Context, id int64) (context.Context, error)

func (*UserSrv) InitBeeData

func (srv *UserSrv) InitBeeData(userId int64) error

func (*UserSrv) UpdatePass

func (srv *UserSrv) UpdatePass(user *sys.SysUserModel, pass string) error

Jump to

Keyboard shortcuts

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