user

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	common.DBService
	Create(user *sysuser.SysUser, options common.DBOptions) error
	List(options common.DBOptions) ([]sysuser.SysUser, error)
	Get(id int, options common.DBOptions) (*sysuser.SysUser, error)
	GetByUserName(name string, options common.DBOptions) (*sysuser.SysUser, error)
	Delete(id int, options common.DBOptions) error
	DeleteStruct(user *sysuser.SysUser, options common.DBOptions) error
	Update(user *sysuser.SysUser, options common.DBOptions) error
	ClearOtp(username string, options common.DBOptions) error
	ClearPwd(username string, options common.DBOptions) error
	InitAdmin() error
}

func GetService

func GetService() Service

type Sysuser

type Sysuser struct {
	common.DefaultDBService
}

func (Sysuser) ClearOtp added in v1.1.0

func (s Sysuser) ClearOtp(username string, options common.DBOptions) error

ClearOtp 清理otp信息

func (Sysuser) ClearPwd added in v1.1.0

func (s Sysuser) ClearPwd(username string, options common.DBOptions) error

func (Sysuser) Create

func (s Sysuser) Create(user *sysuser.SysUser, options common.DBOptions) error

func (Sysuser) Delete

func (s Sysuser) Delete(id int, options common.DBOptions) error

func (Sysuser) DeleteStruct

func (s Sysuser) DeleteStruct(user *sysuser.SysUser, options common.DBOptions) error

func (Sysuser) Get

func (s Sysuser) Get(id int, options common.DBOptions) (*sysuser.SysUser, error)

func (Sysuser) GetByUserName

func (s Sysuser) GetByUserName(name string, options common.DBOptions) (*sysuser.SysUser, error)

func (Sysuser) InitAdmin

func (s Sysuser) InitAdmin() error

func (Sysuser) List

func (s Sysuser) List(options common.DBOptions) ([]sysuser.SysUser, error)

func (Sysuser) Update

func (s Sysuser) Update(user *sysuser.SysUser, options common.DBOptions) error

Jump to

Keyboard shortcuts

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