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 SysAppidLogColumns

type SysAppidLogColumns struct {
	Id         string //
	Name       string //
	Method     string //
	Api        string //
	Ip         string //
	Userid     string //
	Available  string //
	IsDefault  string //
	Remark     string //
	CreateTime string //
	DelFlag    string //
}

SysAppidLogColumns defines and stores column names for table sys_appid_log.

type SysAppidLogDao

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

SysAppidLogDao is the data access object for table sys_appid_log.

func NewSysAppidLogDao

func NewSysAppidLogDao() *SysAppidLogDao

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

func (*SysAppidLogDao) Columns

func (dao *SysAppidLogDao) Columns() SysAppidLogColumns

Columns returns all column names of current dao.

func (*SysAppidLogDao) Ctx

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

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

func (*SysAppidLogDao) DB

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

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

func (*SysAppidLogDao) Group

func (dao *SysAppidLogDao) Group() string

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

func (*SysAppidLogDao) Table

func (dao *SysAppidLogDao) Table() string

Table returns the table name of current dao.

func (*SysAppidLogDao) Transaction

func (dao *SysAppidLogDao) 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 SysJobLogColumns

type SysJobLogColumns struct {
	Id         string //
	JobId      string //
	Type       string //
	Result     string //
	DelFlag    string //
	CreateTime string //
	Remark     string //
	IsDefault  string //
	Available  string //
}

SysJobLogColumns defines and stores column names for table sys_job_log.

type SysJobLogDao

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

SysJobLogDao is the data access object for table sys_job_log.

func NewSysJobLogDao

func NewSysJobLogDao() *SysJobLogDao

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

func (*SysJobLogDao) Columns

func (dao *SysJobLogDao) Columns() SysJobLogColumns

Columns returns all column names of current dao.

func (*SysJobLogDao) Ctx

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

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

func (*SysJobLogDao) DB

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

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

func (*SysJobLogDao) Group

func (dao *SysJobLogDao) Group() string

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

func (*SysJobLogDao) Table

func (dao *SysJobLogDao) Table() string

Table returns the table name of current dao.

func (*SysJobLogDao) Transaction

func (dao *SysJobLogDao) 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 SysLogColumns

type SysLogColumns struct {
	Id         string //
	Name       string //
	Method     string //
	Api        string //
	Ip         string //
	Userid     string //
	Available  string //
	IsDefault  string //
	Remark     string //
	CreateTime string //
	DelFlag    string //
}

SysLogColumns defines and stores column names for table sys_log.

type SysLogDao

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

SysLogDao is the data access object for table sys_log.

func NewSysLogDao

func NewSysLogDao() *SysLogDao

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

func (*SysLogDao) Columns

func (dao *SysLogDao) Columns() SysLogColumns

Columns returns all column names of current dao.

func (*SysLogDao) Ctx

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

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

func (*SysLogDao) DB

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

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

func (*SysLogDao) Group

func (dao *SysLogDao) Group() string

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

func (*SysLogDao) Table

func (dao *SysLogDao) Table() string

Table returns the table name of current dao.

func (*SysLogDao) Transaction

func (dao *SysLogDao) 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