internal

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmLevelColumns

type AlarmLevelColumns struct {
	Level string // 告警级别
	Name  string // 名称
}

AlarmLevelColumns defines and stores column names for table alarm_level.

type AlarmLevelDao

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

AlarmLevelDao is the data access object for table alarm_level.

func NewAlarmLevelDao

func NewAlarmLevelDao() *AlarmLevelDao

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

func (*AlarmLevelDao) Columns

func (dao *AlarmLevelDao) Columns() AlarmLevelColumns

Columns returns all column names of current dao.

func (*AlarmLevelDao) Ctx

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

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

func (*AlarmLevelDao) DB

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

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

func (*AlarmLevelDao) Group

func (dao *AlarmLevelDao) Group() string

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

func (*AlarmLevelDao) Table

func (dao *AlarmLevelDao) Table() string

Table returns the table name of current dao.

func (*AlarmLevelDao) Transaction

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

type AlarmLogColumns struct {
	Id         string //
	Type       string // 告警类型:1=规则告警,2=设备自主告警
	RuleId     string // 规则id
	RuleName   string // 规则名称
	Level      string // 告警级别
	Data       string // 触发告警的数据
	ProductKey string // 产品标识
	DeviceKey  string // 设备标识
	Status     string // 告警状态:0=未处理,1=已处理
	CreatedAt  string // 告警时间
	UpdateBy   string // 告警处理人员
	UpdatedAt  string // 处理时间
	Content    string // 处理意见
}

AlarmLogColumns defines and stores column names for table alarm_log.

type AlarmLogDao

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

AlarmLogDao is the data access object for table alarm_log.

func NewAlarmLogDao

func NewAlarmLogDao() *AlarmLogDao

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

func (*AlarmLogDao) Columns

func (dao *AlarmLogDao) Columns() AlarmLogColumns

Columns returns all column names of current dao.

func (*AlarmLogDao) Ctx

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

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

func (*AlarmLogDao) DB

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

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

func (*AlarmLogDao) Group

func (dao *AlarmLogDao) Group() string

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

func (*AlarmLogDao) Table

func (dao *AlarmLogDao) Table() string

Table returns the table name of current dao.

func (*AlarmLogDao) Transaction

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

type AlarmRuleColumns struct {
	Id               string //
	Name             string // 告警规则名称
	Level            string // 告警级别,默认:4(一般)
	ProductKey       string // 产品标识
	DeviceKey        string // 设备标识
	TriggerType      string // 触发类型:1=上线,2=离线,3=属性上报
	TriggerCondition string // 触发条件
	Action           string // 执行动作
	Status           string // 状态:0=未启用,1=已启用
	CreateBy         string // 创建者
	UpdateBy         string // 更新者
	DeletedBy        string // 删除者
	CreatedAt        string // 创建时间
	UpdatedAt        string // 更新时间
	DeletedAt        string // 删除时间
}

AlarmRuleColumns defines and stores column names for table alarm_rule.

type AlarmRuleDao

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

AlarmRuleDao is the data access object for table alarm_rule.

func NewAlarmRuleDao

func NewAlarmRuleDao() *AlarmRuleDao

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

func (*AlarmRuleDao) Columns

func (dao *AlarmRuleDao) Columns() AlarmRuleColumns

Columns returns all column names of current dao.

func (*AlarmRuleDao) Ctx

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

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

func (*AlarmRuleDao) DB

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

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

func (*AlarmRuleDao) Group

func (dao *AlarmRuleDao) Group() string

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

func (*AlarmRuleDao) Table

func (dao *AlarmRuleDao) Table() string

Table returns the table name of current dao.

func (*AlarmRuleDao) Transaction

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

type BaseDbLinkColumns struct {
	Id          string //
	Name        string // 名称
	Types       string // 驱动类型 mysql或oracle
	Host        string // 主机地址
	Port        string // 端口号
	UserName    string // 用户名称
	Password    string // 密码
	Description string // 描述
	Status      string // 状态 0 停用 1启用
	IsDeleted   string // 是否删除 0未删除 1已删除
	CreatedBy   string // 创建人
	CreatedAt   string // 创建时间
	UpdatedBy   string // 修改人
	UpdatedAt   string // 更新时间
	DeletedBy   string // 删除人
	DeletedAt   string // 删除时间
}

BaseDbLinkColumns defines and stores column names for table base_db_link.

type BaseDbLinkDao

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

BaseDbLinkDao is the data access object for table base_db_link.

func NewBaseDbLinkDao

func NewBaseDbLinkDao() *BaseDbLinkDao

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

func (*BaseDbLinkDao) Columns

func (dao *BaseDbLinkDao) Columns() BaseDbLinkColumns

Columns returns all column names of current dao.

func (*BaseDbLinkDao) Ctx

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

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

func (*BaseDbLinkDao) DB

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

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

func (*BaseDbLinkDao) Group

func (dao *BaseDbLinkDao) Group() string

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

func (*BaseDbLinkDao) Table

func (dao *BaseDbLinkDao) Table() string

Table returns the table name of current dao.

func (*BaseDbLinkDao) Transaction

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

type CityDataColumns struct {
	Id        string //
	Name      string // 名字
	Code      string // 编码
	ParentId  string // 父ID
	Sort      string // 排序
	Status    string // 状态;0:禁用;1:正常
	IsDeleted string // 是否删除 0未删除 1已删除
	CreatedBy string // 创建者
	CreatedAt string // 创建日期
	UpdatedBy string // 更新者
	UpdatedAt string // 修改日期
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

CityDataColumns defines and stores column names for table city_data.

type CityDataDao

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

CityDataDao is the data access object for table city_data.

func NewCityDataDao

func NewCityDataDao() *CityDataDao

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

func (*CityDataDao) Columns

func (dao *CityDataDao) Columns() CityDataColumns

Columns returns all column names of current dao.

func (*CityDataDao) Ctx

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

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

func (*CityDataDao) DB

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

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

func (*CityDataDao) Group

func (dao *CityDataDao) Group() string

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

func (*CityDataDao) Table

func (dao *CityDataDao) Table() string

Table returns the table name of current dao.

func (*CityDataDao) Transaction

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

type DataNodeColumns struct {
	NodeId    string //
	SourceId  string // 数据源ID
	Name      string // 数据节点名称
	Key       string // 数据节点标识
	DataType  string // 数据类型
	Value     string // 取值项
	IsPk      string // 是否主键:0=否,1=是
	Rule      string // 规则配置json
	CreateBy  string // 创建者
	UpdateBy  string // 更新者
	DeletedBy string // 删除者
	CreatedAt string // 创建时间
	UpdatedAt string // 更新时间
	DeletedAt string // 删除时间
}

DataNodeColumns defines and stores column names for table data_node.

type DataNodeDao

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

DataNodeDao is the data access object for table data_node.

func NewDataNodeDao

func NewDataNodeDao() *DataNodeDao

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

func (*DataNodeDao) Columns

func (dao *DataNodeDao) Columns() DataNodeColumns

Columns returns all column names of current dao.

func (*DataNodeDao) Ctx

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

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

func (*DataNodeDao) DB

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

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

func (*DataNodeDao) Group

func (dao *DataNodeDao) Group() string

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

func (*DataNodeDao) Table

func (dao *DataNodeDao) Table() string

Table returns the table name of current dao.

func (*DataNodeDao) Transaction

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

type DataSourceColumns struct {
	SourceId  string //
	Name      string // 数据源名称
	Key       string // 数据源标识
	Desc      string // 描述
	From      string // 数据来源:1=api导入,2=数据库,3=文件,4=设备
	Config    string // 数据源配置json:api配置、数据库配置、文件配置
	Rule      string // 规则配置json
	LockKey   string // 锁定key标识:0=未锁定,1=锁定,不允许修改
	Status    string // 状态:0=未发布,1=已发布
	DataTable string // 数据表名称
	CreateBy  string // 创建者
	UpdateBy  string // 更新者
	DeletedBy string // 删除者
	CreatedAt string // 创建时间
	UpdatedAt string // 更新时间
	DeletedAt string // 删除时间
}

DataSourceColumns defines and stores column names for table data_source.

type DataSourceDao

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

DataSourceDao is the data access object for table data_source.

func NewDataSourceDao

func NewDataSourceDao() *DataSourceDao

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

func (*DataSourceDao) Columns

func (dao *DataSourceDao) Columns() DataSourceColumns

Columns returns all column names of current dao.

func (*DataSourceDao) Ctx

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

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

func (*DataSourceDao) DB

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

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

func (*DataSourceDao) Group

func (dao *DataSourceDao) Group() string

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

func (*DataSourceDao) Table

func (dao *DataSourceDao) Table() string

Table returns the table name of current dao.

func (*DataSourceDao) Transaction

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

type DataTemplateBusiColumns struct {
	Id             string //
	DataTemplateId string // 数据建模ID
	BusiTypes      string // 业务单元
	IsDeleted      string // 0未删除 1已删除
	CreatedBy      string // 创建人
	CreatedAt      string // 创建时间
	DeletedBy      string // 删除人
	DeletedAt      string // 删除时间
}

DataTemplateBusiColumns defines and stores column names for table data_template_busi.

type DataTemplateBusiDao

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

DataTemplateBusiDao is the data access object for table data_template_busi.

func NewDataTemplateBusiDao

func NewDataTemplateBusiDao() *DataTemplateBusiDao

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

func (*DataTemplateBusiDao) Columns

Columns returns all column names of current dao.

func (*DataTemplateBusiDao) Ctx

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

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

func (*DataTemplateBusiDao) DB

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

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

func (*DataTemplateBusiDao) Group

func (dao *DataTemplateBusiDao) Group() string

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

func (*DataTemplateBusiDao) Table

func (dao *DataTemplateBusiDao) Table() string

Table returns the table name of current dao.

func (*DataTemplateBusiDao) Transaction

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

type DataTemplateColumns struct {
	Id             string // ID
	Name           string // 名称
	Key            string // 标识
	Desc           string // 描述
	Status         string // 状态:0=未发布,1=已发布
	CronExpression string // cron执行表达式
	SortNodeKey    string // 排序节点标识
	SortDesc       string // 排序方式:1=倒序,2=正序
	DataTable      string // 数据表名称
	LockKey        string // 锁定key标识:0=未锁定,1=锁定,不允许修改
	MainSourceId   string // 主数据源
	SourceNodeKey  string // 数据源关联节点
	CreateBy       string // 创建者
	UpdateBy       string // 更新者
	DeletedBy      string // 删除者
	CreatedAt      string // 创建时间
	UpdatedAt      string // 更新时间
	DeletedAt      string // 删除时间
}

DataTemplateColumns defines and stores column names for table data_template.

type DataTemplateDao

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

DataTemplateDao is the data access object for table data_template.

func NewDataTemplateDao

func NewDataTemplateDao() *DataTemplateDao

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

func (*DataTemplateDao) Columns

func (dao *DataTemplateDao) Columns() DataTemplateColumns

Columns returns all column names of current dao.

func (*DataTemplateDao) Ctx

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

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

func (*DataTemplateDao) DB

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

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

func (*DataTemplateDao) Group

func (dao *DataTemplateDao) Group() string

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

func (*DataTemplateDao) Table

func (dao *DataTemplateDao) Table() string

Table returns the table name of current dao.

func (*DataTemplateDao) Transaction

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

type DataTemplateNodeColumns struct {
	Id        string // ID
	Tid       string // 模型ID
	From      string // 字段生成方式:1=自动生成,2=数据源
	SourceId  string // 数据源ID
	NodeId    string // 数据源ID
	Name      string // 节点名称
	Key       string // 节点标识
	DataType  string // 数据类型
	Default   string // 默认值
	Method    string // 数值类型,取值方式
	IsPk      string // 是否主键:0=否,1=是
	Desc      string // 描述
	CreateBy  string // 创建者
	UpdateBy  string // 更新者
	DeletedBy string // 删除者
	CreatedAt string // 创建时间
	UpdatedAt string // 更新时间
	DeletedAt string // 删除时间
}

DataTemplateNodeColumns defines and stores column names for table data_template_node.

type DataTemplateNodeDao

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

DataTemplateNodeDao is the data access object for table data_template_node.

func NewDataTemplateNodeDao

func NewDataTemplateNodeDao() *DataTemplateNodeDao

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

func (*DataTemplateNodeDao) Columns

Columns returns all column names of current dao.

func (*DataTemplateNodeDao) Ctx

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

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

func (*DataTemplateNodeDao) DB

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

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

func (*DataTemplateNodeDao) Group

func (dao *DataTemplateNodeDao) Group() string

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

func (*DataTemplateNodeDao) Table

func (dao *DataTemplateNodeDao) Table() string

Table returns the table name of current dao.

func (*DataTemplateNodeDao) Transaction

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

type DevDeviceColumns struct {
	Id             string //
	Key            string // 设备标识
	Name           string // 设备名称
	ProductId      string // 所属产品
	Desc           string // 描述
	MetadataTable  string // 是否生成物模型子表:0=否,1=是
	Status         string // 状态:0=未启用,1=离线,2=在线
	RegistryTime   string // 激活时间
	LastOnlineTime string // 最后上线时间
	Certificate    string // 设备证书
	SecureKey      string // 设备密钥
	Version        string // 固件版本号
	TunnelId       string // tunnelId
	CreateBy       string // 创建者
	UpdateBy       string // 更新者
	DeletedBy      string // 删除者
	CreatedAt      string // 创建时间
	UpdatedAt      string // 更新时间
	DeletedAt      string // 删除时间
}

DevDeviceColumns defines and stores column names for table dev_device.

type DevDeviceDao

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

DevDeviceDao is the data access object for table dev_device.

func NewDevDeviceDao

func NewDevDeviceDao() *DevDeviceDao

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

func (*DevDeviceDao) Columns

func (dao *DevDeviceDao) Columns() DevDeviceColumns

Columns returns all column names of current dao.

func (*DevDeviceDao) Ctx

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

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

func (*DevDeviceDao) DB

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

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

func (*DevDeviceDao) Group

func (dao *DevDeviceDao) Group() string

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

func (*DevDeviceDao) Table

func (dao *DevDeviceDao) Table() string

Table returns the table name of current dao.

func (*DevDeviceDao) Transaction

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

type DevDeviceTagColumns struct {
	Id        string //
	DeviceId  string // 设备ID
	DeviceKey string // 设备标识
	Key       string // 标签标识
	Name      string // 标签名称
	Value     string // 标签值
	CreateBy  string // 创建者
	UpdateBy  string // 更新者
	DeletedBy string // 删除者
	CreatedAt string // 创建时间
	UpdatedAt string // 更新时间
	DeletedAt string // 删除时间
}

DevDeviceTagColumns defines and stores column names for table dev_device_tag.

type DevDeviceTagDao

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

DevDeviceTagDao is the data access object for table dev_device_tag.

func NewDevDeviceTagDao

func NewDevDeviceTagDao() *DevDeviceTagDao

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

func (*DevDeviceTagDao) Columns

func (dao *DevDeviceTagDao) Columns() DevDeviceTagColumns

Columns returns all column names of current dao.

func (*DevDeviceTagDao) Ctx

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

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

func (*DevDeviceTagDao) DB

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

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

func (*DevDeviceTagDao) Group

func (dao *DevDeviceTagDao) Group() string

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

func (*DevDeviceTagDao) Table

func (dao *DevDeviceTagDao) Table() string

Table returns the table name of current dao.

func (*DevDeviceTagDao) Transaction

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

type DevProductCategoryColumns struct {
	Id        string //
	ParentId  string // 父ID
	Key       string // 分类标识
	Name      string // 分类名称
	Desc      string // 描述
	CreateBy  string // 创建者
	UpdateBy  string // 更新者
	DeletedBy string // 删除者
	CreatedAt string // 创建时间
	UpdatedAt string // 更新时间
	DeletedAt string // 删除时间
}

DevProductCategoryColumns defines and stores column names for table dev_product_category.

type DevProductCategoryDao

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

DevProductCategoryDao is the data access object for table dev_product_category.

func NewDevProductCategoryDao

func NewDevProductCategoryDao() *DevProductCategoryDao

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

func (*DevProductCategoryDao) Columns

Columns returns all column names of current dao.

func (*DevProductCategoryDao) Ctx

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

func (*DevProductCategoryDao) DB

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

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

func (*DevProductCategoryDao) Group

func (dao *DevProductCategoryDao) Group() string

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

func (*DevProductCategoryDao) Table

func (dao *DevProductCategoryDao) Table() string

Table returns the table name of current dao.

func (*DevProductCategoryDao) Transaction

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

type DevProductColumns struct {
	Id                string //
	Key               string // 产品标识
	Name              string // 产品名称
	CategoryId        string // 所属品类
	MessageProtocol   string // 消息协议
	TransportProtocol string // 传输协议: MQTT,COAP,UDP
	ProtocolId        string // 协议id
	DeviceType        string // 设备类型: 网关,设备
	Desc              string // 描述
	Icon              string // 图片地址
	Metadata          string // 物模型
	MetadataTable     string // 是否生成物模型表:0=否,1=是
	Policy            string // 采集策略
	Status            string // 发布状态:0=未发布,1=已发布
	CreateBy          string // 创建者
	UpdateBy          string // 更新者
	DeletedBy         string // 删除者
	CreatedAt         string // 创建时间
	UpdatedAt         string // 更新时间
	DeletedAt         string // 删除时间
}

DevProductColumns defines and stores column names for table dev_product.

type DevProductDao

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

DevProductDao is the data access object for table dev_product.

func NewDevProductDao

func NewDevProductDao() *DevProductDao

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

func (*DevProductDao) Columns

func (dao *DevProductDao) Columns() DevProductColumns

Columns returns all column names of current dao.

func (*DevProductDao) Ctx

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

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

func (*DevProductDao) DB

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

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

func (*DevProductDao) Group

func (dao *DevProductDao) Group() string

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

func (*DevProductDao) Table

func (dao *DevProductDao) Table() string

Table returns the table name of current dao.

func (*DevProductDao) Transaction

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

type NetworkServerColumns struct {
	Id        string //
	Name      string //
	Types     string // tcp/udp
	Addr      string //
	Register  string // 注册包
	Heartbeat string // 心跳包
	Protocol  string // 协议
	Devices   string // 默认设备
	Status    string //
	CreatedAt string //
	UpdatedAt string //
	CreateBy  string //
	Remark    string // 备注
}

NetworkServerColumns defines and stores column names for table network_server.

type NetworkServerDao

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

NetworkServerDao is the data access object for table network_server.

func NewNetworkServerDao

func NewNetworkServerDao() *NetworkServerDao

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

func (*NetworkServerDao) Columns

func (dao *NetworkServerDao) Columns() NetworkServerColumns

Columns returns all column names of current dao.

func (*NetworkServerDao) Ctx

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

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

func (*NetworkServerDao) DB

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

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

func (*NetworkServerDao) Group

func (dao *NetworkServerDao) Group() string

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

func (*NetworkServerDao) Table

func (dao *NetworkServerDao) Table() string

Table returns the table name of current dao.

func (*NetworkServerDao) Transaction

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

type NetworkTunnelColumns struct {
	Id        string //
	ServerId  string // 服务ID
	Name      string //
	Types     string //
	Addr      string //
	Remote    string //
	Retry     string // 断线重连
	Heartbeat string // 心跳包
	Serial    string // 串口参数
	Protoccol string // 适配协议
	DeviceKey string // 设备标识
	Status    string //
	Last      string //
	CreatedAt string //
	UpdatedAt string //
	Remark    string // 备注
}

NetworkTunnelColumns defines and stores column names for table network_tunnel.

type NetworkTunnelDao

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

NetworkTunnelDao is the data access object for table network_tunnel.

func NewNetworkTunnelDao

func NewNetworkTunnelDao() *NetworkTunnelDao

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

func (*NetworkTunnelDao) Columns

func (dao *NetworkTunnelDao) Columns() NetworkTunnelColumns

Columns returns all column names of current dao.

func (*NetworkTunnelDao) Ctx

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

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

func (*NetworkTunnelDao) DB

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

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

func (*NetworkTunnelDao) Group

func (dao *NetworkTunnelDao) Group() string

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

func (*NetworkTunnelDao) Table

func (dao *NetworkTunnelDao) Table() string

Table returns the table name of current dao.

func (*NetworkTunnelDao) Transaction

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

type NoticeConfigColumns struct {
	Id          string //
	Title       string //
	SendGateway string //
	Types       string //
	CreatedAt   string //
}

NoticeConfigColumns defines and stores column names for table notice_config.

type NoticeConfigDao

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

NoticeConfigDao is the data access object for table notice_config.

func NewNoticeConfigDao

func NewNoticeConfigDao() *NoticeConfigDao

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

func (*NoticeConfigDao) Columns

func (dao *NoticeConfigDao) Columns() NoticeConfigColumns

Columns returns all column names of current dao.

func (*NoticeConfigDao) Ctx

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

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

func (*NoticeConfigDao) DB

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

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

func (*NoticeConfigDao) Group

func (dao *NoticeConfigDao) Group() string

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

func (*NoticeConfigDao) Table

func (dao *NoticeConfigDao) Table() string

Table returns the table name of current dao.

func (*NoticeConfigDao) Transaction

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

type NoticeInfoColumns struct {
	Id         string //
	ConfigId   string //
	ComeFrom   string //
	Method     string //
	MsgTitle   string //
	MsgBody    string //
	MsgUrl     string //
	UserIds    string //
	OrgIds     string //
	Totag      string //
	Status     string //
	MethodCron string //
	MethodNum  string //
	CreatedAt  string //
}

NoticeInfoColumns defines and stores column names for table notice_info.

type NoticeInfoDao

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

NoticeInfoDao is the data access object for table notice_info.

func NewNoticeInfoDao

func NewNoticeInfoDao() *NoticeInfoDao

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

func (*NoticeInfoDao) Columns

func (dao *NoticeInfoDao) Columns() NoticeInfoColumns

Columns returns all column names of current dao.

func (*NoticeInfoDao) Ctx

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

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

func (*NoticeInfoDao) DB

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

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

func (*NoticeInfoDao) Group

func (dao *NoticeInfoDao) Group() string

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

func (*NoticeInfoDao) Table

func (dao *NoticeInfoDao) Table() string

Table returns the table name of current dao.

func (*NoticeInfoDao) Transaction

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

type NoticeLogColumns struct {
	Id          string //
	SendGateway string // 通知渠道
	TemplateId  string // 通知模板ID
	Addressee   string // 收信人列表
	Title       string // 通知标题
	Content     string // 通知内容
	Status      string // 发送状态:0=失败,1=成功
	FailMsg     string // 失败信息
	SendTime    string // 发送时间
}

NoticeLogColumns defines and stores column names for table notice_log.

type NoticeLogDao

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

NoticeLogDao is the data access object for table notice_log.

func NewNoticeLogDao

func NewNoticeLogDao() *NoticeLogDao

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

func (*NoticeLogDao) Columns

func (dao *NoticeLogDao) Columns() NoticeLogColumns

Columns returns all column names of current dao.

func (*NoticeLogDao) Ctx

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

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

func (*NoticeLogDao) DB

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

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

func (*NoticeLogDao) Group

func (dao *NoticeLogDao) Group() string

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

func (*NoticeLogDao) Table

func (dao *NoticeLogDao) Table() string

Table returns the table name of current dao.

func (*NoticeLogDao) Transaction

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

type NoticeTemplateColumns struct {
	Id          string //
	ConfigId    string //
	SendGateway string //
	Code        string //
	Title       string //
	Content     string //
	CreatedAt   string //
}

NoticeTemplateColumns defines and stores column names for table notice_template.

type NoticeTemplateDao

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

NoticeTemplateDao is the data access object for table notice_template.

func NewNoticeTemplateDao

func NewNoticeTemplateDao() *NoticeTemplateDao

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

func (*NoticeTemplateDao) Columns

Columns returns all column names of current dao.

func (*NoticeTemplateDao) Ctx

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

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

func (*NoticeTemplateDao) DB

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

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

func (*NoticeTemplateDao) Group

func (dao *NoticeTemplateDao) Group() string

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

func (*NoticeTemplateDao) Table

func (dao *NoticeTemplateDao) Table() string

Table returns the table name of current dao.

func (*NoticeTemplateDao) Transaction

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

type SysApiColumns struct {
	Id        string //
	ParentId  string //
	Name      string // 名称
	Types     string // 1 分类 2接口
	Method    string // 请求方式(数据字典维护)
	Address   string // 接口地址
	Remark    string // 备注
	Status    string // 状态 0 停用 1启用
	Sort      string // 排序
	IsDeleted string // 是否删除 0未删除 1已删除
	CreateBy  string // 创建者
	CreatedAt string // 创建时间
	UpdatedBy string // 更新者
	UpdatedAt string // 修改时间
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

SysApiColumns defines and stores column names for table sys_api.

type SysApiDao

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

SysApiDao is the data access object for table sys_api.

func NewSysApiDao

func NewSysApiDao() *SysApiDao

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

func (*SysApiDao) Columns

func (dao *SysApiDao) Columns() SysApiColumns

Columns returns all column names of current dao.

func (*SysApiDao) Ctx

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

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

func (*SysApiDao) DB

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

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

func (*SysApiDao) Group

func (dao *SysApiDao) Group() string

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

func (*SysApiDao) Table

func (dao *SysApiDao) Table() string

Table returns the table name of current dao.

func (*SysApiDao) Transaction

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

type SysAuthorizeColumns struct {
	Id         string //
	RoleId     string // 角色ID
	ItemsType  string // 项目类型 menu菜单 button按钮 column列表字段 api接口
	ItemsId    string // 项目ID
	IsCheckAll string // 是否全选 1是 0否
	IsDeleted  string // 是否删除 0未删除 1已删除
	CreatedBy  string // 创建人
	CreatedAt  string // 创建时间
	DeletedBy  string // 删除人
	DeletedAt  string // 删除时间
}

SysAuthorizeColumns defines and stores column names for table sys_authorize.

type SysAuthorizeDao

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

SysAuthorizeDao is the data access object for table sys_authorize.

func NewSysAuthorizeDao

func NewSysAuthorizeDao() *SysAuthorizeDao

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

func (*SysAuthorizeDao) Columns

func (dao *SysAuthorizeDao) Columns() SysAuthorizeColumns

Columns returns all column names of current dao.

func (*SysAuthorizeDao) Ctx

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

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

func (*SysAuthorizeDao) DB

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

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

func (*SysAuthorizeDao) Group

func (dao *SysAuthorizeDao) Group() string

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

func (*SysAuthorizeDao) Table

func (dao *SysAuthorizeDao) Table() string

Table returns the table name of current dao.

func (*SysAuthorizeDao) Transaction

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

type SysConfigColumns struct {
	ConfigId    string // 参数主键
	ConfigName  string // 参数名称
	ConfigKey   string // 参数键名
	ConfigValue string // 参数键值
	ConfigType  string // 系统内置(1是 2否)
	Remark      string // 备注
	Status      string // 状态 0 停用 1启用
	IsDeleted   string // 是否删除 0未删除 1已删除
	CreateBy    string // 创建者
	CreatedAt   string // 创建时间
	UpdateBy    string // 更新者
	UpdatedAt   string // 修改时间
	DeletedBy   string // 删除人
	DeletedAt   string // 删除时间
}

SysConfigColumns defines and stores column names for table sys_config.

type SysConfigDao

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

SysConfigDao is the data access object for table sys_config.

func NewSysConfigDao

func NewSysConfigDao() *SysConfigDao

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

func (*SysConfigDao) Columns

func (dao *SysConfigDao) Columns() SysConfigColumns

Columns returns all column names of current dao.

func (*SysConfigDao) Ctx

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

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

func (*SysConfigDao) DB

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

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

func (*SysConfigDao) Group

func (dao *SysConfigDao) Group() string

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

func (*SysConfigDao) Table

func (dao *SysConfigDao) Table() string

Table returns the table name of current dao.

func (*SysConfigDao) Transaction

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

type SysDeptColumns struct {
	DeptId         string // 部门id
	OrganizationId string // 组织ID
	ParentId       string // 父部门id
	Ancestors      string // 祖级列表
	DeptName       string // 部门名称
	OrderNum       string // 显示顺序
	Leader         string // 负责人
	Phone          string // 联系电话
	Email          string // 邮箱
	Status         string // 部门状态(0停用 1正常)
	IsDeleted      string // 是否删除 0未删除 1已删除
	CreatedAt      string // 创建时间
	CreatedBy      string // 创建人
	UpdatedBy      string // 修改人
	UpdatedAt      string // 修改时间
	DeletedBy      string // 删除人
	DeletedAt      string // 删除时间
}

SysDeptColumns defines and stores column names for table sys_dept.

type SysDeptDao

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

SysDeptDao is the data access object for table sys_dept.

func NewSysDeptDao

func NewSysDeptDao() *SysDeptDao

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

func (*SysDeptDao) Columns

func (dao *SysDeptDao) Columns() SysDeptColumns

Columns returns all column names of current dao.

func (*SysDeptDao) Ctx

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

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

func (*SysDeptDao) DB

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

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

func (*SysDeptDao) Group

func (dao *SysDeptDao) Group() string

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

func (*SysDeptDao) Table

func (dao *SysDeptDao) Table() string

Table returns the table name of current dao.

func (*SysDeptDao) Transaction

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

type SysDictDataColumns struct {
	DictCode  string // 字典编码
	DictSort  string // 字典排序
	DictLabel string // 字典标签
	DictValue string // 字典键值
	DictType  string // 字典类型
	CssClass  string // 样式属性(其他样式扩展)
	ListClass string // 表格回显样式
	IsDefault string // 是否默认(1是 0否)
	Remark    string // 备注
	Status    string // 状态(0正常 1停用)
	IsDeleted string // 是否删除 0未删除 1已删除
	CreateBy  string // 创建者
	CreatedAt string // 创建时间
	UpdateBy  string // 更新者
	UpdatedAt string // 修改时间
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

SysDictDataColumns defines and stores column names for table sys_dict_data.

type SysDictDataDao

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

SysDictDataDao is the data access object for table sys_dict_data.

func NewSysDictDataDao

func NewSysDictDataDao() *SysDictDataDao

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

func (*SysDictDataDao) Columns

func (dao *SysDictDataDao) Columns() SysDictDataColumns

Columns returns all column names of current dao.

func (*SysDictDataDao) Ctx

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

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

func (*SysDictDataDao) DB

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

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

func (*SysDictDataDao) Group

func (dao *SysDictDataDao) Group() string

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

func (*SysDictDataDao) Table

func (dao *SysDictDataDao) Table() string

Table returns the table name of current dao.

func (*SysDictDataDao) Transaction

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

type SysDictTypeColumns struct {
	DictId         string // 字典主键
	ParentId       string // 父主键ID
	DictName       string // 字典名称
	DictType       string // 字典类型
	ModuleClassify string // 模块分类
	Remark         string // 备注
	Status         string // 状态(0正常 1停用)
	IsDeleted      string // 是否删除 0未删除 1已删除
	CreateBy       string // 创建者
	CreatedAt      string // 创建日期
	UpdateBy       string // 更新者
	UpdatedAt      string // 修改日期
	DeletedBy      string // 删除人
	DeletedAt      string // 删除时间
}

SysDictTypeColumns defines and stores column names for table sys_dict_type.

type SysDictTypeDao

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

SysDictTypeDao is the data access object for table sys_dict_type.

func NewSysDictTypeDao

func NewSysDictTypeDao() *SysDictTypeDao

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

func (*SysDictTypeDao) Columns

func (dao *SysDictTypeDao) Columns() SysDictTypeColumns

Columns returns all column names of current dao.

func (*SysDictTypeDao) Ctx

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

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

func (*SysDictTypeDao) DB

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

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

func (*SysDictTypeDao) Group

func (dao *SysDictTypeDao) Group() string

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

func (*SysDictTypeDao) Table

func (dao *SysDictTypeDao) Table() string

Table returns the table name of current dao.

func (*SysDictTypeDao) Transaction

func (dao *SysDictTypeDao) 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 {
	JobId          string // 任务ID
	JobName        string // 任务名称
	JobParams      string // 参数
	JobGroup       string // 任务组名
	InvokeTarget   string // 调用目标字符串
	CronExpression string // cron执行表达式
	MisfirePolicy  string // 计划执行策略(1多次执行 2执行一次)
	Concurrent     string // 是否并发执行(0允许 1禁止)
	Status         string // 状态(0正常 1暂停)
	CreateBy       string // 创建者
	UpdateBy       string // 更新者
	Remark         string // 备注信息
	CreatedAt      string // 创建时间
	UpdatedAt      string // 更新时间
	DeletedAt      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 SysLoginLogColumns

type SysLoginLogColumns struct {
	InfoId        string // 访问ID
	LoginName     string // 登录账号
	Ipaddr        string // 登录IP地址
	LoginLocation string // 登录地点
	Browser       string // 浏览器类型
	Os            string // 操作系统
	Status        string // 登录状态(0成功 1失败)
	Msg           string // 提示消息
	LoginTime     string // 登录时间
	Module        string // 登录模块
}

SysLoginLogColumns defines and stores column names for table sys_login_log.

type SysLoginLogDao

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

SysLoginLogDao is the data access object for table sys_login_log.

func NewSysLoginLogDao

func NewSysLoginLogDao() *SysLoginLogDao

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

func (*SysLoginLogDao) Columns

func (dao *SysLoginLogDao) Columns() SysLoginLogColumns

Columns returns all column names of current dao.

func (*SysLoginLogDao) Ctx

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

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

func (*SysLoginLogDao) DB

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

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

func (*SysLoginLogDao) Group

func (dao *SysLoginLogDao) Group() string

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

func (*SysLoginLogDao) Table

func (dao *SysLoginLogDao) Table() string

Table returns the table name of current dao.

func (*SysLoginLogDao) Transaction

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

type SysMenuApiColumns struct {
	Id        string // id
	MenuId    string // 菜单ID
	ApiId     string // apiId
	IsDeleted string // 是否删除 0未删除 1已删除
	CreatedBy string // 创建人
	CreatedAt string // 创建时间
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

SysMenuApiColumns defines and stores column names for table sys_menu_api.

type SysMenuApiDao

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

SysMenuApiDao is the data access object for table sys_menu_api.

func NewSysMenuApiDao

func NewSysMenuApiDao() *SysMenuApiDao

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

func (*SysMenuApiDao) Columns

func (dao *SysMenuApiDao) Columns() SysMenuApiColumns

Columns returns all column names of current dao.

func (*SysMenuApiDao) Ctx

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

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

func (*SysMenuApiDao) DB

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

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

func (*SysMenuApiDao) Group

func (dao *SysMenuApiDao) Group() string

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

func (*SysMenuApiDao) Table

func (dao *SysMenuApiDao) Table() string

Table returns the table name of current dao.

func (*SysMenuApiDao) Transaction

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

type SysMenuButtonColumns struct {
	Id          string //
	ParentId    string // 父ID
	MenuId      string // 菜单ID
	Name        string // 名称
	Types       string // 类型 自定义 add添加 edit编辑 del 删除
	Description string // 描述
	Status      string // 状态 0 停用 1启用
	IsDeleted   string // 是否删除 0未删除 1已删除
	CreatedBy   string // 创建人
	CreatedAt   string // 创建时间
	UpdatedBy   string // 修改人
	UpdatedAt   string // 更新时间
	DeletedBy   string // 删除人
	DeletedAt   string // 删除时间
}

SysMenuButtonColumns defines and stores column names for table sys_menu_button.

type SysMenuButtonDao

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

SysMenuButtonDao is the data access object for table sys_menu_button.

func NewSysMenuButtonDao

func NewSysMenuButtonDao() *SysMenuButtonDao

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

func (*SysMenuButtonDao) Columns

func (dao *SysMenuButtonDao) Columns() SysMenuButtonColumns

Columns returns all column names of current dao.

func (*SysMenuButtonDao) Ctx

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

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

func (*SysMenuButtonDao) DB

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

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

func (*SysMenuButtonDao) Group

func (dao *SysMenuButtonDao) Group() string

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

func (*SysMenuButtonDao) Table

func (dao *SysMenuButtonDao) Table() string

Table returns the table name of current dao.

func (*SysMenuButtonDao) Transaction

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

type SysMenuColumnColumns struct {
	Id          string //
	ParentId    string // 父ID
	MenuId      string // 菜单ID
	Name        string // 名称
	Code        string // 代表字段
	Description string // 描述
	Status      string // 状态 0 停用 1启用
	IsDeleted   string // 是否删除 0未删除 1已删除
	CreatedBy   string // 创建人
	CreatedAt   string // 创建时间
	UpdatedBy   string // 修改人
	UpdatedAt   string // 更新时间
	DeletedBy   string // 删除人
	DeletedAt   string // 删除时间
}

SysMenuColumnColumns defines and stores column names for table sys_menu_column.

type SysMenuColumnDao

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

SysMenuColumnDao is the data access object for table sys_menu_column.

func NewSysMenuColumnDao

func NewSysMenuColumnDao() *SysMenuColumnDao

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

func (*SysMenuColumnDao) Columns

func (dao *SysMenuColumnDao) Columns() SysMenuColumnColumns

Columns returns all column names of current dao.

func (*SysMenuColumnDao) Ctx

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

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

func (*SysMenuColumnDao) DB

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

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

func (*SysMenuColumnDao) Group

func (dao *SysMenuColumnDao) Group() string

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

func (*SysMenuColumnDao) Table

func (dao *SysMenuColumnDao) Table() string

Table returns the table name of current dao.

func (*SysMenuColumnDao) Transaction

func (dao *SysMenuColumnDao) 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 // 父ID
	Name       string // 规则名称
	Title      string // 规则名称
	Icon       string // 图标
	Condition  string // 条件
	Remark     string // 备注
	MenuType   string // 类型 0目录 1菜单 2按钮
	Weigh      string // 权重
	IsHide     string // 显示状态
	Path       string // 路由地址
	Component  string // 组件路径
	IsLink     string // 是否外链 1是 0否
	ModuleType string // 所属模块 system 运维 company企业
	ModelId    string // 模型ID
	IsIframe   string // 是否内嵌iframe
	IsCached   string // 是否缓存
	Redirect   string // 路由重定向地址
	IsAffix    string // 是否固定
	LinkUrl    string // 链接地址
	Status     string // 状态 0 停用 1启用
	IsDeleted  string // 是否删除 0未删除 1已删除
	CreatedBy  string // 创建人
	CreatedAt  string // 创建时间
	UpdatedBy  string // 修改人
	UpdatedAt  string // 更新时间
	DeletedBy  string // 删除人
	DeletedAt  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 SysNotificationsColumns

type SysNotificationsColumns struct {
	Id        string //
	Title     string // 标题
	Doc       string // 描述
	Source    string // 消息来源
	Types     string // 类型
	CreatedAt string // 发送时间
	Status    string // 0,未读,1,已读
}

SysNotificationsColumns defines and stores column names for table sys_notifications.

type SysNotificationsDao

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

SysNotificationsDao is the data access object for table sys_notifications.

func NewSysNotificationsDao

func NewSysNotificationsDao() *SysNotificationsDao

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

func (*SysNotificationsDao) Columns

Columns returns all column names of current dao.

func (*SysNotificationsDao) Ctx

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

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

func (*SysNotificationsDao) DB

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

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

func (*SysNotificationsDao) Group

func (dao *SysNotificationsDao) Group() string

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

func (*SysNotificationsDao) Table

func (dao *SysNotificationsDao) Table() string

Table returns the table name of current dao.

func (*SysNotificationsDao) Transaction

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

type SysOperLogColumns struct {
	OperId        string // 日志主键
	Title         string // 模块标题
	BusinessType  string // 业务类型(0其它 1新增 2修改 3删除)
	Method        string // 方法名称
	RequestMethod string // 请求方式
	OperatorType  string // 操作类别(0其它 1后台用户 2手机端用户)
	OperName      string // 操作人员
	DeptName      string // 部门名称
	OperUrl       string // 请求URL
	OperIp        string // 主机地址
	OperLocation  string // 操作地点
	OperParam     string // 请求参数
	JsonResult    string // 返回参数
	Status        string // 操作状态(0正常 1异常)
	ErrorMsg      string // 错误消息
	OperTime      string // 操作时间
}

SysOperLogColumns defines and stores column names for table sys_oper_log.

type SysOperLogDao

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

SysOperLogDao is the data access object for table sys_oper_log.

func NewSysOperLogDao

func NewSysOperLogDao() *SysOperLogDao

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

func (*SysOperLogDao) Columns

func (dao *SysOperLogDao) Columns() SysOperLogColumns

Columns returns all column names of current dao.

func (*SysOperLogDao) Ctx

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

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

func (*SysOperLogDao) DB

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

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

func (*SysOperLogDao) Group

func (dao *SysOperLogDao) Group() string

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

func (*SysOperLogDao) Table

func (dao *SysOperLogDao) Table() string

Table returns the table name of current dao.

func (*SysOperLogDao) Transaction

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

type SysOrganizationColumns struct {
	Id        string // 组织ID
	ParentId  string // 父组织id
	Ancestors string // 祖级列表
	Name      string // 组织名称
	Number    string // 组织编号
	OrderNum  string // 显示顺序
	Leader    string // 负责人
	Phone     string // 联系电话
	Email     string // 邮箱
	Status    string // 组织状态(0停用 1正常)
	IsDeleted string // 是否删除 0未删除 1已删除
	CreatedAt string // 创建时间
	CreatedBy string // 创建人
	UpdatedBy string // 修改人
	UpdatedAt string // 修改时间
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

SysOrganizationColumns defines and stores column names for table sys_organization.

type SysOrganizationDao

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

SysOrganizationDao is the data access object for table sys_organization.

func NewSysOrganizationDao

func NewSysOrganizationDao() *SysOrganizationDao

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

func (*SysOrganizationDao) Columns

Columns returns all column names of current dao.

func (*SysOrganizationDao) Ctx

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

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

func (*SysOrganizationDao) DB

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

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

func (*SysOrganizationDao) Group

func (dao *SysOrganizationDao) Group() string

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

func (*SysOrganizationDao) Table

func (dao *SysOrganizationDao) Table() string

Table returns the table name of current dao.

func (*SysOrganizationDao) Transaction

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

type SysPluginsColumns struct {
	Id        string // ID
	Name      string // 名称
	Title     string // 标题
	Intro     string // 介绍
	Version   string // 版本
	Status    string // 状态
	Types     string // 插件类型
	Author    string //
	StartTime string //
}

SysPluginsColumns defines and stores column names for table sys_plugins.

type SysPluginsConfigColumns

type SysPluginsConfigColumns struct {
	Id    string //
	Type  string // 插件类型
	Name  string // 插件名称
	Value string // 配置内容
	Doc   string // 配置说明
}

SysPluginsConfigColumns defines and stores column names for table sys_plugins_config.

type SysPluginsConfigDao

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

SysPluginsConfigDao is the data access object for table sys_plugins_config.

func NewSysPluginsConfigDao

func NewSysPluginsConfigDao() *SysPluginsConfigDao

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

func (*SysPluginsConfigDao) Columns

Columns returns all column names of current dao.

func (*SysPluginsConfigDao) Ctx

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

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

func (*SysPluginsConfigDao) DB

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

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

func (*SysPluginsConfigDao) Group

func (dao *SysPluginsConfigDao) Group() string

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

func (*SysPluginsConfigDao) Table

func (dao *SysPluginsConfigDao) Table() string

Table returns the table name of current dao.

func (*SysPluginsConfigDao) Transaction

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

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

SysPluginsDao is the data access object for table sys_plugins.

func NewSysPluginsDao

func NewSysPluginsDao() *SysPluginsDao

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

func (*SysPluginsDao) Columns

func (dao *SysPluginsDao) Columns() SysPluginsColumns

Columns returns all column names of current dao.

func (*SysPluginsDao) Ctx

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

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

func (*SysPluginsDao) DB

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

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

func (*SysPluginsDao) Group

func (dao *SysPluginsDao) Group() string

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

func (*SysPluginsDao) Table

func (dao *SysPluginsDao) Table() string

Table returns the table name of current dao.

func (*SysPluginsDao) Transaction

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

type SysPostColumns struct {
	PostId    string // 岗位ID
	ParentId  string // 父ID
	PostCode  string // 岗位编码
	PostName  string // 岗位名称
	PostSort  string // 显示顺序
	Status    string // 状态(0正常 1停用)
	Remark    string // 备注
	IsDeleted string // 是否删除 0未删除 1已删除
	CreatedBy string // 创建人
	CreatedAt string // 创建时间
	UpdatedBy string // 修改人
	UpdatedAt string // 修改时间
	DeletedBy string // 删除人
	DeletedAt string // 删除时间
}

SysPostColumns defines and stores column names for table sys_post.

type SysPostDao

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

SysPostDao is the data access object for table sys_post.

func NewSysPostDao

func NewSysPostDao() *SysPostDao

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

func (*SysPostDao) Columns

func (dao *SysPostDao) Columns() SysPostColumns

Columns returns all column names of current dao.

func (*SysPostDao) Ctx

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

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

func (*SysPostDao) DB

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

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

func (*SysPostDao) Group

func (dao *SysPostDao) Group() string

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

func (*SysPostDao) Table

func (dao *SysPostDao) Table() string

Table returns the table name of current dao.

func (*SysPostDao) Transaction

func (dao *SysPostDao) 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 // 父ID
	ListOrder string // 排序
	Name      string // 角色名称
	DataScope string // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
	Remark    string // 备注
	Status    string // 状态;0:禁用;1:正常
	IsDeleted string // 是否删除 0未删除 1已删除
	CreateBy  string // 创建者
	CreatedAt string // 创建日期
	UpdateBy  string // 更新者
	UpdatedAt string // 修改日期
	DeletedBy string // 删除人
	DeletedAt 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 SysRoleDeptColumns

type SysRoleDeptColumns struct {
	RoleId string // 角色ID
	DeptId string // 部门ID
}

SysRoleDeptColumns defines and stores column names for table sys_role_dept.

type SysRoleDeptDao

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

SysRoleDeptDao is the data access object for table sys_role_dept.

func NewSysRoleDeptDao

func NewSysRoleDeptDao() *SysRoleDeptDao

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

func (*SysRoleDeptDao) Columns

func (dao *SysRoleDeptDao) Columns() SysRoleDeptColumns

Columns returns all column names of current dao.

func (*SysRoleDeptDao) Ctx

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

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

func (*SysRoleDeptDao) DB

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

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

func (*SysRoleDeptDao) Group

func (dao *SysRoleDeptDao) Group() string

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

func (*SysRoleDeptDao) Table

func (dao *SysRoleDeptDao) Table() string

Table returns the table name of current dao.

func (*SysRoleDeptDao) Transaction

func (dao *SysRoleDeptDao) 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 //
	UserName      string // 用户名
	UserTypes     string // 系统 system 企业 company
	Mobile        string // 中国手机不带国家代码,国际手机号格式为:国家代码-手机号
	UserNickname  string // 用户昵称
	Birthday      string // 生日
	UserPassword  string // 登录密码;cmf_password加密
	UserSalt      string // 加密盐
	UserEmail     string // 用户登录邮箱
	Sex           string // 性别;0:保密,1:男,2:女
	Avatar        string // 用户头像
	DeptId        string // 部门id
	Remark        string // 备注
	IsAdmin       string // 是否后台管理员 1 是  0   否
	Address       string // 联系地址
	Describe      string // 描述信息
	LastLoginIp   string // 最后登录ip
	LastLoginTime string // 最后登录时间
	Status        string // 用户状态;0:禁用,1:正常,2:未验证
	IsDeleted     string // 是否删除 0未删除 1已删除
	CreateBy      string // 创建者
	CreatedAt     string // 创建日期
	UpdateBy      string // 更新者
	UpdatedAt     string // 修改日期
	DeletedBy     string // 删除人
	DeletedAt     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 SysUserOnlineColumns

type SysUserOnlineColumns struct {
	Id        string //
	Uuid      string // 用户标识
	Key       string //
	Token     string // 用户token
	CreatedAt string // 登录时间
	UserName  string // 用户名
	Ip        string // 登录ip
	Explorer  string // 浏览器
	Os        string // 操作系统
}

SysUserOnlineColumns defines and stores column names for table sys_user_online.

type SysUserOnlineDao

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

SysUserOnlineDao is the data access object for table sys_user_online.

func NewSysUserOnlineDao

func NewSysUserOnlineDao() *SysUserOnlineDao

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

func (*SysUserOnlineDao) Columns

func (dao *SysUserOnlineDao) Columns() SysUserOnlineColumns

Columns returns all column names of current dao.

func (*SysUserOnlineDao) Ctx

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

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

func (*SysUserOnlineDao) DB

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

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

func (*SysUserOnlineDao) Group

func (dao *SysUserOnlineDao) Group() string

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

func (*SysUserOnlineDao) Table

func (dao *SysUserOnlineDao) Table() string

Table returns the table name of current dao.

func (*SysUserOnlineDao) Transaction

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

type SysUserPostColumns struct {
	UserId string // 用户ID
	PostId string // 岗位ID
}

SysUserPostColumns defines and stores column names for table sys_user_post.

type SysUserPostDao

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

SysUserPostDao is the data access object for table sys_user_post.

func NewSysUserPostDao

func NewSysUserPostDao() *SysUserPostDao

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

func (*SysUserPostDao) Columns

func (dao *SysUserPostDao) Columns() SysUserPostColumns

Columns returns all column names of current dao.

func (*SysUserPostDao) Ctx

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

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

func (*SysUserPostDao) DB

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

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

func (*SysUserPostDao) Group

func (dao *SysUserPostDao) Group() string

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

func (*SysUserPostDao) Table

func (dao *SysUserPostDao) Table() string

Table returns the table name of current dao.

func (*SysUserPostDao) Transaction

func (dao *SysUserPostDao) 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 {
	UserId string //
	RoleId 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