Documentation ¶
Index ¶
- type AttachmentColumns
- type AttachmentDao
- func (dao *AttachmentDao) Columns() AttachmentColumns
- func (dao *AttachmentDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *AttachmentDao) DB() gdb.DB
- func (dao *AttachmentDao) Group() string
- func (dao *AttachmentDao) Table() string
- func (dao *AttachmentDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type CardChargeColumns
- type CardChargeDao
- func (dao *CardChargeDao) Columns() CardChargeColumns
- func (dao *CardChargeDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *CardChargeDao) DB() gdb.DB
- func (dao *CardChargeDao) Group() string
- func (dao *CardChargeDao) Table() string
- func (dao *CardChargeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type CardColumns
- type CardDao
- func (dao *CardDao) Columns() CardColumns
- func (dao *CardDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *CardDao) DB() gdb.DB
- func (dao *CardDao) Group() string
- func (dao *CardDao) Table() string
- func (dao *CardDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type CardSessionColumns
- type CardSessionDao
- func (dao *CardSessionDao) Columns() CardSessionColumns
- func (dao *CardSessionDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *CardSessionDao) DB() gdb.DB
- func (dao *CardSessionDao) Group() string
- func (dao *CardSessionDao) Table() string
- func (dao *CardSessionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type DeviceColumns
- type DeviceDao
- func (dao *DeviceDao) Columns() DeviceColumns
- func (dao *DeviceDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *DeviceDao) DB() gdb.DB
- func (dao *DeviceDao) Group() string
- func (dao *DeviceDao) Table() string
- func (dao *DeviceDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SoftwareColumns
- type SoftwareDao
- func (dao *SoftwareDao) Columns() SoftwareColumns
- func (dao *SoftwareDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SoftwareDao) DB() gdb.DB
- func (dao *SoftwareDao) Group() string
- func (dao *SoftwareDao) Table() string
- func (dao *SoftwareDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysAuthRuleColumns
- type SysAuthRuleDao
- func (dao *SysAuthRuleDao) Columns() SysAuthRuleColumns
- func (dao *SysAuthRuleDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysAuthRuleDao) DB() gdb.DB
- func (dao *SysAuthRuleDao) Group() string
- func (dao *SysAuthRuleDao) Table() string
- func (dao *SysAuthRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysDeptColumns
- type SysDeptDao
- func (dao *SysDeptDao) Columns() SysDeptColumns
- func (dao *SysDeptDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysDeptDao) DB() gdb.DB
- func (dao *SysDeptDao) Group() string
- func (dao *SysDeptDao) Table() string
- func (dao *SysDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysLoginLogColumns
- type SysLoginLogDao
- func (dao *SysLoginLogDao) Columns() SysLoginLogColumns
- func (dao *SysLoginLogDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysLoginLogDao) DB() gdb.DB
- func (dao *SysLoginLogDao) Group() string
- func (dao *SysLoginLogDao) Table() string
- func (dao *SysLoginLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysPostColumns
- type SysPostDao
- func (dao *SysPostDao) Columns() SysPostColumns
- func (dao *SysPostDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysPostDao) DB() gdb.DB
- func (dao *SysPostDao) Group() string
- func (dao *SysPostDao) Table() string
- func (dao *SysPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysRoleColumns
- type SysRoleDao
- func (dao *SysRoleDao) Columns() SysRoleColumns
- func (dao *SysRoleDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysRoleDao) DB() gdb.DB
- func (dao *SysRoleDao) Group() string
- func (dao *SysRoleDao) Table() string
- func (dao *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysUserColumns
- type SysUserDao
- func (dao *SysUserDao) Columns() SysUserColumns
- func (dao *SysUserDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysUserDao) DB() gdb.DB
- func (dao *SysUserDao) Group() string
- func (dao *SysUserDao) Table() string
- func (dao *SysUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type SysUserPostColumns
- type SysUserPostDao
- func (dao *SysUserPostDao) Columns() SysUserPostColumns
- func (dao *SysUserPostDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysUserPostDao) DB() gdb.DB
- func (dao *SysUserPostDao) Group() string
- func (dao *SysUserPostDao) Table() string
- func (dao *SysUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
- type VersionColumns
- type VersionDao
- func (dao *VersionDao) Columns() VersionColumns
- func (dao *VersionDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *VersionDao) DB() gdb.DB
- func (dao *VersionDao) Group() string
- func (dao *VersionDao) Table() string
- func (dao *VersionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentColumns ¶
type AttachmentColumns struct { Id string // FileName string // 附件名 Md5 string // MD5 StoreType string // 1 二进制 2 直接 3 蓝奏云 4 百度网盘 OtherParam string // 其他参数,用于保存网盘密码等 FilePath string // 附件存储路径 FileSize string // 附件大小 byte FileType string // Remark string // 备注 CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
AttachmentColumns defines and stores column names for table verify_attachment.
type AttachmentDao ¶
type AttachmentDao struct {
// contains filtered or unexported fields
}
AttachmentDao is the data access object for table verify_attachment.
func NewAttachmentDao ¶
func NewAttachmentDao() *AttachmentDao
NewAttachmentDao creates and returns a new DAO object for table data access.
func (*AttachmentDao) Columns ¶
func (dao *AttachmentDao) Columns() AttachmentColumns
Columns returns all column names of current dao.
func (*AttachmentDao) Ctx ¶
func (dao *AttachmentDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*AttachmentDao) DB ¶
func (dao *AttachmentDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*AttachmentDao) Group ¶
func (dao *AttachmentDao) Group() string
Group returns the configuration group name of database of current dao.
func (*AttachmentDao) Table ¶
func (dao *AttachmentDao) Table() string
Table returns the table name of current dao.
func (*AttachmentDao) Transaction ¶
func (dao *AttachmentDao) 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 CardChargeColumns ¶
type CardChargeColumns struct { Id string // 充值记录ID CardCode string // 被充值卡密 UseCardCode string // 使用的卡密 ExpireTimeBefore string // 充值前到期日期 ExpireTimeAfter string // 充值后到期日期 CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
CardChargeColumns defines and stores column names for table verify_card_charge.
type CardChargeDao ¶
type CardChargeDao struct {
// contains filtered or unexported fields
}
CardChargeDao is the data access object for table verify_card_charge.
func NewCardChargeDao ¶
func NewCardChargeDao() *CardChargeDao
NewCardChargeDao creates and returns a new DAO object for table data access.
func (*CardChargeDao) Columns ¶
func (dao *CardChargeDao) Columns() CardChargeColumns
Columns returns all column names of current dao.
func (*CardChargeDao) Ctx ¶
func (dao *CardChargeDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CardChargeDao) DB ¶
func (dao *CardChargeDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CardChargeDao) Group ¶
func (dao *CardChargeDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CardChargeDao) Table ¶
func (dao *CardChargeDao) Table() string
Table returns the table name of current dao.
func (*CardChargeDao) Transaction ¶
func (dao *CardChargeDao) 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 CardColumns ¶
type CardColumns struct { Id string // 卡密ID SoftwareId string // 软件ID CardCode string // 密钥 CardValue string // 面值 CardType string // 1 分钟 2 小时 3 天 4 月 5 年 CardStatus string // 状态 1 正常 0 冻结 UnbindCount string // 允许解绑次数 GenTime string // 生成时间 ActivateTime string // 激活时间 ExpireTime string // 到期时间 Customize string // 自定义属性 KeyPrefix string // 卡密前缀 MultiOnline string // 多开上限 IsReplace string // 顶号登录 1 是 0 否 Comment string // 备注 CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
CardColumns defines and stores column names for table verify_card.
type CardDao ¶
type CardDao struct {
// contains filtered or unexported fields
}
CardDao is the data access object for table verify_card.
func NewCardDao ¶
func NewCardDao() *CardDao
NewCardDao creates and returns a new DAO object for table data access.
func (*CardDao) Columns ¶
func (dao *CardDao) Columns() CardColumns
Columns returns all column names of current dao.
func (*CardDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CardDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CardDao) Transaction ¶
func (dao *CardDao) 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 CardSessionColumns ¶
type CardSessionColumns struct { Id string // 编号 CardId string // 卡密Id SessionTimeout string // 超时时间 LoginIp string // 登录IP DeviceId string // 设备ID CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
CardSessionColumns defines and stores column names for table verify_card_session.
type CardSessionDao ¶
type CardSessionDao struct {
// contains filtered or unexported fields
}
CardSessionDao is the data access object for table verify_card_session.
func NewCardSessionDao ¶
func NewCardSessionDao() *CardSessionDao
NewCardSessionDao creates and returns a new DAO object for table data access.
func (*CardSessionDao) Columns ¶
func (dao *CardSessionDao) Columns() CardSessionColumns
Columns returns all column names of current dao.
func (*CardSessionDao) Ctx ¶
func (dao *CardSessionDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CardSessionDao) DB ¶
func (dao *CardSessionDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CardSessionDao) Group ¶
func (dao *CardSessionDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CardSessionDao) Table ¶
func (dao *CardSessionDao) Table() string
Table returns the table name of current dao.
func (*CardSessionDao) Transaction ¶
func (dao *CardSessionDao) 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 DeviceColumns ¶
type DeviceColumns struct { Id string // 设备ID CardId string // 卡密 DeviceCode string // 设备编号 DeviceName string // 设备名称 DeviceStatus string // 设备状态 LastLoginTime string // 最后登录时间 LoginIp string // 当前登录IP CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
DeviceColumns defines and stores column names for table verify_device.
type DeviceDao ¶
type DeviceDao struct {
// contains filtered or unexported fields
}
DeviceDao is the data access object for table verify_device.
func NewDeviceDao ¶
func NewDeviceDao() *DeviceDao
NewDeviceDao creates and returns a new DAO object for table data access.
func (*DeviceDao) Columns ¶
func (dao *DeviceDao) Columns() DeviceColumns
Columns returns all column names of current dao.
func (*DeviceDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*DeviceDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*DeviceDao) Transaction ¶
func (dao *DeviceDao) 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 SoftwareColumns ¶
type SoftwareColumns struct { Id string // 软件id SoftwareName string // 软件名称 SecretId string // 软件唯一标识 SecretKey string // 软件密钥 SoftwareStatus string // 软件状态 CardLength string // 密钥长度 EncryptType string // 加密方式 AES RSA MD5 KeyPrefix string // 密钥前缀 MultiOnline string // 设备上限 IsReplace string // 是否顶号登录 1 是 0 否 Heartbeat string // 心跳间隔 OpenTrial string // 开启试用 1 是 0 否 TrialCount string // 试用次数 TrialTime string // 试用时间(分钟) TrialDuration string // 每次试用间隔 Comment string // 软件备注 CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
SoftwareColumns defines and stores column names for table verify_software.
type SoftwareDao ¶
type SoftwareDao struct {
// contains filtered or unexported fields
}
SoftwareDao is the data access object for table verify_software.
func NewSoftwareDao ¶
func NewSoftwareDao() *SoftwareDao
NewSoftwareDao creates and returns a new DAO object for table data access.
func (*SoftwareDao) Columns ¶
func (dao *SoftwareDao) Columns() SoftwareColumns
Columns returns all column names of current dao.
func (*SoftwareDao) Ctx ¶
func (dao *SoftwareDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SoftwareDao) DB ¶
func (dao *SoftwareDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SoftwareDao) Group ¶
func (dao *SoftwareDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SoftwareDao) Table ¶
func (dao *SoftwareDao) Table() string
Table returns the table name of current dao.
func (*SoftwareDao) Transaction ¶
func (dao *SoftwareDao) 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 SysAuthRuleColumns ¶
type SysAuthRuleColumns struct { Id string // Pid 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 // 所属模块 ModelId string // 模型ID IsIframe string // 是否内嵌iframe IsCached string // 是否缓存 Redirect string // 路由重定向地址 IsAffix string // 是否固定 LinkUrl string // 链接地址 CreatedAt string // 创建日期 UpdatedAt string // 修改日期 }
SysAuthRuleColumns defines and stores column names for table sys_auth_rule.
type SysAuthRuleDao ¶
type SysAuthRuleDao struct {
// contains filtered or unexported fields
}
SysAuthRuleDao is the data access object for table sys_auth_rule.
func NewSysAuthRuleDao ¶
func NewSysAuthRuleDao() *SysAuthRuleDao
NewSysAuthRuleDao creates and returns a new DAO object for table data access.
func (*SysAuthRuleDao) Columns ¶
func (dao *SysAuthRuleDao) Columns() SysAuthRuleColumns
Columns returns all column names of current dao.
func (*SysAuthRuleDao) Ctx ¶
func (dao *SysAuthRuleDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysAuthRuleDao) DB ¶
func (dao *SysAuthRuleDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysAuthRuleDao) Group ¶
func (dao *SysAuthRuleDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysAuthRuleDao) Table ¶
func (dao *SysAuthRuleDao) Table() string
Table returns the table name of current dao.
func (*SysAuthRuleDao) Transaction ¶
func (dao *SysAuthRuleDao) 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 ParentId string // 父部门id Ancestors string // 祖级列表 DeptName string // 部门名称 OrderNum string // 显示顺序 Leader string // 负责人 Phone string // 联系电话 Email string // 邮箱 Status string // 部门状态(0正常 1停用) CreatedBy string // 创建人 UpdatedBy string // 修改人 CreatedAt string // 创建时间 UpdatedAt 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 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 SysPostColumns ¶
type SysPostColumns struct { PostId string // 岗位ID PostCode string // 岗位编码 PostName string // 岗位名称 PostSort string // 显示顺序 Status string // 状态(0正常 1停用) Remark string // 备注 CreatedBy string // 创建人 UpdatedBy string // 修改人 CreatedAt string // 创建时间 UpdatedAt 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 // Status string // 状态;0:禁用;1:正常 ListOrder string // 排序 Name string // 角色名称 Remark string // 备注 DataScope string // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) CreatedAt string // 创建时间 UpdatedAt string // 更新时间 }
SysRoleColumns defines and stores column names for table sys_role.
type SysRoleDao ¶
type SysRoleDao struct {
// contains filtered or unexported fields
}
SysRoleDao is the data access object for table sys_role.
func NewSysRoleDao ¶
func NewSysRoleDao() *SysRoleDao
NewSysRoleDao creates and returns a new DAO object for table data access.
func (*SysRoleDao) Columns ¶
func (dao *SysRoleDao) Columns() SysRoleColumns
Columns returns all column names of current dao.
func (*SysRoleDao) Ctx ¶
func (dao *SysRoleDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysRoleDao) DB ¶
func (dao *SysRoleDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysRoleDao) Group ¶
func (dao *SysRoleDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysRoleDao) Table ¶
func (dao *SysRoleDao) Table() string
Table returns the table name of current dao.
func (*SysRoleDao) Transaction ¶
func (dao *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type SysUserColumns ¶
type SysUserColumns struct { Id string // UserName string // 用户名 Mobile string // 中国手机不带国家代码,国际手机号格式为:国家代码-手机号 UserNickname string // 用户昵称 Birthday string // 生日 UserPassword string // 登录密码;cmf_password加密 UserSalt string // 加密盐 UserStatus string // 用户状态;0:禁用,1:正常,2:未验证 UserEmail string // 用户登录邮箱 Sex string // 性别;0:保密,1:男,2:女 Avatar string // 用户头像 Remark string // 备注 IsAdmin string // 是否后台管理员 1 是 0 否 Address string // 联系地址 Describe string // 描述信息 LastLoginIp string // 最后登录ip LastLoginTime string // 最后登录时间 CreatedAt string // 创建时间 UpdatedAt 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 SysUserPostColumns ¶
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 VersionColumns ¶
type VersionColumns struct { Id string // SoftwareId string // 软件Id VersionNumber string // 主版本号 IsPublish string // 是否发布 AttId string // 附件Id Comment string // 版本备注 CreateBy string // 创建者 UpdateBy string // 更新者 CreatedAt string // 创建时间 UpdatedAt string // 修改时间 }
VersionColumns defines and stores column names for table verify_version.
type VersionDao ¶
type VersionDao struct {
// contains filtered or unexported fields
}
VersionDao is the data access object for table verify_version.
func NewVersionDao ¶
func NewVersionDao() *VersionDao
NewVersionDao creates and returns a new DAO object for table data access.
func (*VersionDao) Columns ¶
func (dao *VersionDao) Columns() VersionColumns
Columns returns all column names of current dao.
func (*VersionDao) Ctx ¶
func (dao *VersionDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*VersionDao) DB ¶
func (dao *VersionDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*VersionDao) Group ¶
func (dao *VersionDao) Group() string
Group returns the configuration group name of database of current dao.
func (*VersionDao) Table ¶
func (dao *VersionDao) Table() string
Table returns the table name of current dao.
func (*VersionDao) Transaction ¶
func (dao *VersionDao) 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.