internal

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysAppidColumns

type SysAppidColumns struct {
	Id         string //
	Userid     string //
	Token      string //
	Remark     string //
	Available  string //
	CreateTime string //
	DelFlag    string //
}

SysAppidColumns defines and stores column names for table sys_appid.

type SysAppidDao

type SysAppidDao struct {
	// contains filtered or unexported fields
}

SysAppidDao is the data access object for table sys_appid.

func NewSysAppidDao

func NewSysAppidDao() *SysAppidDao

NewSysAppidDao creates and returns a new DAO object for table data access.

func (*SysAppidDao) Columns

func (dao *SysAppidDao) Columns() SysAppidColumns

Columns returns all column names of current dao.

func (*SysAppidDao) Ctx

func (dao *SysAppidDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysAppidDao) DB

func (dao *SysAppidDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysAppidDao) Group

func (dao *SysAppidDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysAppidDao) Table

func (dao *SysAppidDao) Table() string

Table returns the table name of current dao.

func (*SysAppidDao) Transaction

func (dao *SysAppidDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysDicColumns

type SysDicColumns struct {
	Id         string //
	ParentId   string //
	TreeId     string //
	TreeName   string //
	TreeValue  string //
	Describe   string //
	OrderBy    string //
	IsDefault  string //
	Remark     string //
	Available  string //
	CreateTime string //
	DelFlag    string //
}

SysDicColumns defines and stores column names for table sys_dic.

type SysDicDao

type SysDicDao struct {
	// contains filtered or unexported fields
}

SysDicDao is the data access object for table sys_dic.

func NewSysDicDao

func NewSysDicDao() *SysDicDao

NewSysDicDao creates and returns a new DAO object for table data access.

func (*SysDicDao) Columns

func (dao *SysDicDao) Columns() SysDicColumns

Columns returns all column names of current dao.

func (*SysDicDao) Ctx

func (dao *SysDicDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysDicDao) DB

func (dao *SysDicDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysDicDao) Group

func (dao *SysDicDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysDicDao) Table

func (dao *SysDicDao) Table() string

Table returns the table name of current dao.

func (*SysDicDao) Transaction

func (dao *SysDicDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysFileColumns

type SysFileColumns struct {
	Id         string //
	Uri        string //
	Name       string //
	Size       string //
	Suffix     string //
	OssType    string //
	ProxyType  string //
	DownSize   string //
	IsDeploy   string //
	Available  string //
	IsDefault  string //
	Remark     string //
	CreateTime string //
	DelFlag    string //
}

SysFileColumns defines and stores column names for table sys_file.

type SysFileDao

type SysFileDao struct {
	// contains filtered or unexported fields
}

SysFileDao is the data access object for table sys_file.

func NewSysFileDao

func NewSysFileDao() *SysFileDao

NewSysFileDao creates and returns a new DAO object for table data access.

func (*SysFileDao) Columns

func (dao *SysFileDao) Columns() SysFileColumns

Columns returns all column names of current dao.

func (*SysFileDao) Ctx

func (dao *SysFileDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysFileDao) DB

func (dao *SysFileDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysFileDao) Group

func (dao *SysFileDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysFileDao) Table

func (dao *SysFileDao) Table() string

Table returns the table name of current dao.

func (*SysFileDao) Transaction

func (dao *SysFileDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysJobColumns

type SysJobColumns struct {
	Id         string //
	JobName    string //
	Cron       string //
	JobTag     string //
	Available  string //
	IsDefault  string //
	Remark     string //
	CreateTime string //
	DelFlag    string //
}

SysJobColumns defines and stores column names for table sys_job.

type SysJobDao

type SysJobDao struct {
	// contains filtered or unexported fields
}

SysJobDao is the data access object for table sys_job.

func NewSysJobDao

func NewSysJobDao() *SysJobDao

NewSysJobDao creates and returns a new DAO object for table data access.

func (*SysJobDao) Columns

func (dao *SysJobDao) Columns() SysJobColumns

Columns returns all column names of current dao.

func (*SysJobDao) Ctx

func (dao *SysJobDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysJobDao) DB

func (dao *SysJobDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysJobDao) Group

func (dao *SysJobDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysJobDao) Table

func (dao *SysJobDao) Table() string

Table returns the table name of current dao.

func (*SysJobDao) Transaction

func (dao *SysJobDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysMenuColumns

type SysMenuColumns struct {
	Id           string //
	ParentId     string //
	ParentName   string //
	TreeId       string //
	MenuIcon     string //
	MenuName     string //
	MenuTitle    string //
	MenuUrl      string //
	OrderBy      string //
	ResourceType string //
	Target       string //
	Remark       string //
	Available    string //
	CreateTime   string //
	DelFlag      string //
}

SysMenuColumns defines and stores column names for table sys_menu.

type SysMenuDao

type SysMenuDao struct {
	// contains filtered or unexported fields
}

SysMenuDao is the data access object for table sys_menu.

func NewSysMenuDao

func NewSysMenuDao() *SysMenuDao

NewSysMenuDao creates and returns a new DAO object for table data access.

func (*SysMenuDao) Columns

func (dao *SysMenuDao) Columns() SysMenuColumns

Columns returns all column names of current dao.

func (*SysMenuDao) Ctx

func (dao *SysMenuDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysMenuDao) DB

func (dao *SysMenuDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysMenuDao) Group

func (dao *SysMenuDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysMenuDao) Table

func (dao *SysMenuDao) Table() string

Table returns the table name of current dao.

func (*SysMenuDao) Transaction

func (dao *SysMenuDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysParamColumns

type SysParamColumns struct {
	Id         string //
	ParentId   string //
	TreeId     string //
	TreeName   string //
	TreeValue  string //
	TreeType   string //
	Describe   string //
	OrderBy    string //
	IsDefault  string //
	Remark     string //
	Available  string //
	CreateTime string //
	DelFlag    string //
}

SysParamColumns defines and stores column names for table sys_param.

type SysParamDao

type SysParamDao struct {
	// contains filtered or unexported fields
}

SysParamDao is the data access object for table sys_param.

func NewSysParamDao

func NewSysParamDao() *SysParamDao

NewSysParamDao creates and returns a new DAO object for table data access.

func (*SysParamDao) Columns

func (dao *SysParamDao) Columns() SysParamColumns

Columns returns all column names of current dao.

func (*SysParamDao) Ctx

func (dao *SysParamDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysParamDao) DB

func (dao *SysParamDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysParamDao) Group

func (dao *SysParamDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysParamDao) Table

func (dao *SysParamDao) Table() string

Table returns the table name of current dao.

func (*SysParamDao) Transaction

func (dao *SysParamDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysRoleColumns

type SysRoleColumns struct {
	Id         string //
	ParentId   string //
	TreeId     string //
	TreeName   string //
	TreeValue  string //
	OrderBy    string //
	Describe   string //
	Available  string //
	DelFlag    string //
	CreateTime string //
}

SysRoleColumns defines and stores column names for table sys_role.

type SysRoleDao

type SysRoleDao struct {
	// contains filtered or unexported fields
}

SysRoleDao is the data access object for table sys_role.

func NewSysRoleDao

func NewSysRoleDao() *SysRoleDao

NewSysRoleDao creates and returns a new DAO object for table data access.

func (*SysRoleDao) Columns

func (dao *SysRoleDao) Columns() SysRoleColumns

Columns returns all column names of current dao.

func (*SysRoleDao) Ctx

func (dao *SysRoleDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysRoleDao) DB

func (dao *SysRoleDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysRoleDao) Group

func (dao *SysRoleDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysRoleDao) Table

func (dao *SysRoleDao) Table() string

Table returns the table name of current dao.

func (*SysRoleDao) Transaction

func (dao *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysUserColumns

type SysUserColumns struct {
	Id         string //
	Userid     string //
	UserName   string //
	NickName   string //
	Passwd     string //
	Salt       string //
	State      string //
	AvatarPic  string //
	Remark     string //
	Available  string //
	CreateTime string //
	DelFlag    string //
}

SysUserColumns defines and stores column names for table sys_user.

type SysUserDao

type SysUserDao struct {
	// contains filtered or unexported fields
}

SysUserDao is the data access object for table sys_user.

func NewSysUserDao

func NewSysUserDao() *SysUserDao

NewSysUserDao creates and returns a new DAO object for table data access.

func (*SysUserDao) Columns

func (dao *SysUserDao) Columns() SysUserColumns

Columns returns all column names of current dao.

func (*SysUserDao) Ctx

func (dao *SysUserDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysUserDao) DB

func (dao *SysUserDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysUserDao) Group

func (dao *SysUserDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysUserDao) Table

func (dao *SysUserDao) Table() string

Table returns the table name of current dao.

func (*SysUserDao) Transaction

func (dao *SysUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type SysUserRoleColumns

type SysUserRoleColumns struct {
	Id         string //
	Userid     string //
	Roleid     string //
	Remark     string //
	Available  string //
	CreateTime string //
	DelFlag    string //
}

SysUserRoleColumns defines and stores column names for table sys_user_role.

type SysUserRoleDao

type SysUserRoleDao struct {
	// contains filtered or unexported fields
}

SysUserRoleDao is the data access object for table sys_user_role.

func NewSysUserRoleDao

func NewSysUserRoleDao() *SysUserRoleDao

NewSysUserRoleDao creates and returns a new DAO object for table data access.

func (*SysUserRoleDao) Columns

func (dao *SysUserRoleDao) Columns() SysUserRoleColumns

Columns returns all column names of current dao.

func (*SysUserRoleDao) Ctx

func (dao *SysUserRoleDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysUserRoleDao) DB

func (dao *SysUserRoleDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysUserRoleDao) Group

func (dao *SysUserRoleDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysUserRoleDao) Table

func (dao *SysUserRoleDao) Table() string

Table returns the table name of current dao.

func (*SysUserRoleDao) Transaction

func (dao *SysUserRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

Jump to

Keyboard shortcuts

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