Documentation ¶
Index ¶
- type Service
- type Sysuser
- func (s Sysuser) ClearOtp(username string, options common.DBOptions) error
- func (s Sysuser) ClearPwd(username string, options common.DBOptions) error
- func (s Sysuser) Create(user *sysuser.SysUser, options common.DBOptions) error
- func (s Sysuser) Delete(id int, options common.DBOptions) error
- func (s Sysuser) DeleteStruct(user *sysuser.SysUser, options common.DBOptions) error
- func (s Sysuser) Get(id int, options common.DBOptions) (*sysuser.SysUser, error)
- func (s Sysuser) GetByUserName(name string, options common.DBOptions) (*sysuser.SysUser, error)
- func (s Sysuser) InitAdmin() error
- func (s Sysuser) List(options common.DBOptions) ([]sysuser.SysUser, error)
- func (s Sysuser) Update(user *sysuser.SysUser, options common.DBOptions) error
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
Click to show internal directories.
Click to hide internal directories.