Documentation ¶
Index ¶
- type SysAreaColumns
- type SysAreaDao
- func (dao *SysAreaDao) Columns() SysAreaColumns
- func (dao *SysAreaDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysAreaDao) DB() gdb.DB
- func (dao *SysAreaDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysAreaDao) Group() string
- func (dao *SysAreaDao) Table() string
- func (dao *SysAreaDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysAuditColumns
- type SysAuditDao
- func (dao *SysAuditDao) Columns() SysAuditColumns
- func (dao *SysAuditDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysAuditDao) DB() gdb.DB
- func (dao *SysAuditDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysAuditDao) Group() string
- func (dao *SysAuditDao) Table() string
- func (dao *SysAuditDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysCasbinColumns
- type SysCasbinDao
- func (dao *SysCasbinDao) Columns() SysCasbinColumns
- func (dao *SysCasbinDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysCasbinDao) DB() gdb.DB
- func (dao *SysCasbinDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysCasbinDao) Group() string
- func (dao *SysCasbinDao) Table() string
- func (dao *SysCasbinDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysConfigColumns
- type SysConfigDao
- func (dao *SysConfigDao) Columns() SysConfigColumns
- func (dao *SysConfigDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysConfigDao) DB() gdb.DB
- func (dao *SysConfigDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysConfigDao) Group() string
- func (dao *SysConfigDao) Table() string
- func (dao *SysConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysFileColumns
- type SysFileDao
- func (dao *SysFileDao) Columns() SysFileColumns
- func (dao *SysFileDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysFileDao) DB() gdb.DB
- func (dao *SysFileDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysFileDao) Group() string
- func (dao *SysFileDao) Table() string
- func (dao *SysFileDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysLicenseColumns
- type SysLicenseDao
- func (dao *SysLicenseDao) Columns() SysLicenseColumns
- func (dao *SysLicenseDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysLicenseDao) DB() gdb.DB
- func (dao *SysLicenseDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysLicenseDao) Group() string
- func (dao *SysLicenseDao) Table() string
- func (dao *SysLicenseDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysLogsColumns
- type SysLogsDao
- func (dao *SysLogsDao) Columns() SysLogsColumns
- func (dao *SysLogsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysLogsDao) DB() gdb.DB
- func (dao *SysLogsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysLogsDao) Group() string
- func (dao *SysLogsDao) Table() string
- func (dao *SysLogsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysMenuColumns
- type SysMenuDao
- func (dao *SysMenuDao) Columns() SysMenuColumns
- func (dao *SysMenuDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysMenuDao) DB() gdb.DB
- func (dao *SysMenuDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysMenuDao) Group() string
- func (dao *SysMenuDao) Table() string
- func (dao *SysMenuDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysOrganizationColumns
- type SysOrganizationDao
- func (dao *SysOrganizationDao) Columns() SysOrganizationColumns
- func (dao *SysOrganizationDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysOrganizationDao) DB() gdb.DB
- func (dao *SysOrganizationDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysOrganizationDao) Group() string
- func (dao *SysOrganizationDao) Table() string
- func (dao *SysOrganizationDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysPermissionColumns
- type SysPermissionDao
- func (dao *SysPermissionDao) Columns() SysPermissionColumns
- func (dao *SysPermissionDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysPermissionDao) DB() gdb.DB
- func (dao *SysPermissionDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysPermissionDao) Group() string
- func (dao *SysPermissionDao) Table() string
- func (dao *SysPermissionDao) 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, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysRoleDao) DB() gdb.DB
- func (dao *SysRoleDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- 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 SysSettingsColumns
- type SysSettingsDao
- func (dao *SysSettingsDao) Columns() SysSettingsColumns
- func (dao *SysSettingsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysSettingsDao) DB() gdb.DB
- func (dao *SysSettingsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysSettingsDao) Group() string
- func (dao *SysSettingsDao) Table() string
- func (dao *SysSettingsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysSmsLogsColumns
- type SysSmsLogsDao
- func (dao *SysSmsLogsDao) Columns() SysSmsLogsColumns
- func (dao *SysSmsLogsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysSmsLogsDao) DB() gdb.DB
- func (dao *SysSmsLogsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysSmsLogsDao) Group() string
- func (dao *SysSmsLogsDao) Table() string
- func (dao *SysSmsLogsDao) 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, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysUserDao) DB() gdb.DB
- func (dao *SysUserDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- 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 SysUserDetailColumns
- type SysUserDetailDao
- func (dao *SysUserDetailDao) Columns() SysUserDetailColumns
- func (dao *SysUserDetailDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *SysUserDetailDao) DB() gdb.DB
- func (dao *SysUserDetailDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
- func (dao *SysUserDetailDao) Group() string
- func (dao *SysUserDetailDao) Table() string
- func (dao *SysUserDetailDao) 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 SysAreaColumns ¶
type SysAreaColumns struct { Id string // ID AreaCode string // 地区编码 AreaName string // 地区名称 Level string // 1:省份province,2:市city,3:区县district,4:街道street CityCode string // 城市编码 LatLongCenter string // 城市中心点(即经纬度) ParentId string // 地区父节点 }
SysAreaColumns defines and stores column names for table sys_area.
type SysAreaDao ¶
type SysAreaDao struct {
// contains filtered or unexported fields
}
SysAreaDao is the data access object for table sys_area.
func NewSysAreaDao ¶
func NewSysAreaDao(proxy ...dao_interface.IDao) *SysAreaDao
NewSysAreaDao creates and returns a new DAO object for table data access.
func (*SysAreaDao) Columns ¶
func (dao *SysAreaDao) Columns() SysAreaColumns
Columns returns all column names of current dao.
func (*SysAreaDao) Ctx ¶
func (dao *SysAreaDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysAreaDao) DB ¶
func (dao *SysAreaDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysAreaDao) DaoConfig ¶
func (dao *SysAreaDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysAreaDao) Group ¶
func (dao *SysAreaDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysAreaDao) Table ¶
func (dao *SysAreaDao) Table() string
Table returns the table name of current dao.
func (*SysAreaDao) Transaction ¶
func (dao *SysAreaDao) 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 SysAuditColumns ¶
type SysAuditColumns struct { Id string // State string // 审核状态:-1不通过,0待审核,1通过 Reply string // 不通过时回复的审核不通过原因 UnionMainId string // 关联主体ID Category string // 业务类别 AuditData string // 待审核的业务数据包 ExpireAt string // 服务时限 AuditReplyAt string // 审核回复时间 HistoryItems string // 历史申请记录 CreatedAt string // }
SysAuditColumns defines and stores column names for table sys_audit.
type SysAuditDao ¶
type SysAuditDao struct {
// contains filtered or unexported fields
}
SysAuditDao is the data access object for table sys_audit.
func NewSysAuditDao ¶
func NewSysAuditDao(proxy ...dao_interface.IDao) *SysAuditDao
NewSysAuditDao creates and returns a new DAO object for table data access.
func (*SysAuditDao) Columns ¶
func (dao *SysAuditDao) Columns() SysAuditColumns
Columns returns all column names of current dao.
func (*SysAuditDao) Ctx ¶
func (dao *SysAuditDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysAuditDao) DB ¶
func (dao *SysAuditDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysAuditDao) DaoConfig ¶
func (dao *SysAuditDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysAuditDao) Group ¶
func (dao *SysAuditDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysAuditDao) Table ¶
func (dao *SysAuditDao) Table() string
Table returns the table name of current dao.
func (*SysAuditDao) Transaction ¶
func (dao *SysAuditDao) 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 SysCasbinColumns ¶
type SysCasbinColumns struct { Ptype string // V0 string // V1 string // V2 string // V3 string // V4 string // V5 string // }
SysCasbinColumns defines and stores column names for table sys_casbin.
type SysCasbinDao ¶
type SysCasbinDao struct {
// contains filtered or unexported fields
}
SysCasbinDao is the data access object for table sys_casbin.
func NewSysCasbinDao ¶
func NewSysCasbinDao(proxy ...dao_interface.IDao) *SysCasbinDao
NewSysCasbinDao creates and returns a new DAO object for table data access.
func (*SysCasbinDao) Columns ¶
func (dao *SysCasbinDao) Columns() SysCasbinColumns
Columns returns all column names of current dao.
func (*SysCasbinDao) Ctx ¶
func (dao *SysCasbinDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysCasbinDao) DB ¶
func (dao *SysCasbinDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysCasbinDao) DaoConfig ¶
func (dao *SysCasbinDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysCasbinDao) Group ¶
func (dao *SysCasbinDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysCasbinDao) Table ¶
func (dao *SysCasbinDao) Table() string
Table returns the table name of current dao.
func (*SysCasbinDao) Transaction ¶
func (dao *SysCasbinDao) 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 { Name string // 配置名称 Value string // 配置信息 CreatedAt string // UpdatedAt 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(proxy ...dao_interface.IDao) *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, cacheOption ...*gdb.CacheOption) *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) DaoConfig ¶
func (dao *SysConfigDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
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 SysFileColumns ¶
type SysFileColumns struct { Id string // 自增ID Name string // 文件名称 Src string // 存储路径 Url string // URL地址 Ext string // 扩展名 Size string // 文件大小 Category string // 文件分类 UserId string // 用户ID UnionMainId string // 关联主体ID CreatedAt string // UpdatedAt string // }
SysFileColumns defines and stores column names for table sys_file.
type SysFileDao ¶
type SysFileDao struct {
// contains filtered or unexported fields
}
SysFileDao is the data access object for table sys_file.
func NewSysFileDao ¶
func NewSysFileDao(proxy ...dao_interface.IDao) *SysFileDao
NewSysFileDao creates and returns a new DAO object for table data access.
func (*SysFileDao) Columns ¶
func (dao *SysFileDao) Columns() SysFileColumns
Columns returns all column names of current dao.
func (*SysFileDao) Ctx ¶
func (dao *SysFileDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysFileDao) DB ¶
func (dao *SysFileDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysFileDao) DaoConfig ¶
func (dao *SysFileDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysFileDao) Group ¶
func (dao *SysFileDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysFileDao) Table ¶
func (dao *SysFileDao) Table() string
Table returns the table name of current dao.
func (*SysFileDao) Transaction ¶
func (dao *SysFileDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type SysLicenseColumns ¶
type SysLicenseColumns struct { Id string // IdcardFrontPath string // 身份证头像面照片 IdcardBackPath string // 身份证国徽面照片 IdcardNo string // 身份证号 IdcardExpiredDate string // 身份证有效期 IdcardAddress string // 身份证户籍地址 PersonContactName string // 负责人,必须是自然人 PersonContactMobile string // 负责人,联系电话 BusinessLicenseName string // 公司全称 BusinessLicenseAddress string // 公司地址 BusinessLicensePath string // 营业执照图片地址 BusinessLicenseScope string // 经营范围 BusinessLicenseRegCapital string // 注册资本 BusinessLicenseTermTime string // 营业期限 BusinessLicenseOrgCode string // 组织机构代码 BusinessLicenseCreditCode string // 统一社会信用代码 BusinessLicenseLegal string // 法人 BusinessLicenseLegalPath string // 法人证照,如果法人不是自然人,则该项必填 LatestAuditLogId string // 最新的审核记录ID State string // AuthType string // Remark string // UpdatedAt string // CreatedAt string // DeletedAt string // }
SysLicenseColumns defines and stores column names for table sys_license.
type SysLicenseDao ¶
type SysLicenseDao struct {
// contains filtered or unexported fields
}
SysLicenseDao is the data access object for table sys_license.
func NewSysLicenseDao ¶
func NewSysLicenseDao(proxy ...dao_interface.IDao) *SysLicenseDao
NewSysLicenseDao creates and returns a new DAO object for table data access.
func (*SysLicenseDao) Columns ¶
func (dao *SysLicenseDao) Columns() SysLicenseColumns
Columns returns all column names of current dao.
func (*SysLicenseDao) Ctx ¶
func (dao *SysLicenseDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysLicenseDao) DB ¶
func (dao *SysLicenseDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysLicenseDao) DaoConfig ¶
func (dao *SysLicenseDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysLicenseDao) Group ¶
func (dao *SysLicenseDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysLicenseDao) Table ¶
func (dao *SysLicenseDao) Table() string
Table returns the table name of current dao.
func (*SysLicenseDao) Transaction ¶
func (dao *SysLicenseDao) 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 SysLogsColumns ¶
type SysLogsColumns struct { Id string // ID UserId string // 用户UID Error string // 错误信息 Category string // 分类 Level string // 等级 Content string // 日志内容 Context string // 上下文数据 CreatedAt string // UpdatedAt string // }
SysLogsColumns defines and stores column names for table sys_logs.
type SysLogsDao ¶
type SysLogsDao struct {
// contains filtered or unexported fields
}
SysLogsDao is the data access object for table sys_logs.
func NewSysLogsDao ¶
func NewSysLogsDao(proxy ...dao_interface.IDao) *SysLogsDao
NewSysLogsDao creates and returns a new DAO object for table data access.
func (*SysLogsDao) Columns ¶
func (dao *SysLogsDao) Columns() SysLogsColumns
Columns returns all column names of current dao.
func (*SysLogsDao) Ctx ¶
func (dao *SysLogsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysLogsDao) DB ¶
func (dao *SysLogsDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysLogsDao) DaoConfig ¶
func (dao *SysLogsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysLogsDao) Group ¶
func (dao *SysLogsDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysLogsDao) Table ¶
func (dao *SysLogsDao) Table() string
Table returns the table name of current dao.
func (*SysLogsDao) Transaction ¶
func (dao *SysLogsDao) 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 // ID Path string // 路径 Name string // 名称 Redirect string // 跳转 Title string // 标题 Icon string // 图标 Component string // 组件 ParentId string // 所属父级 Sort string // 排序 State string // 状态:0隐藏,1显示 Description string // 描述 CreatedAt string // UpdatedAt 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(proxy ...dao_interface.IDao) *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, cacheOption ...*gdb.CacheOption) *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) DaoConfig ¶
func (dao *SysMenuDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
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 SysOrganizationColumns ¶
type SysOrganizationColumns struct { Id string // Name string // 名称 ParentId string // 父级ID CascadeDeep string // 级联深度 Description 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(proxy ...dao_interface.IDao) *SysOrganizationDao
NewSysOrganizationDao creates and returns a new DAO object for table data access.
func (*SysOrganizationDao) Columns ¶
func (dao *SysOrganizationDao) Columns() SysOrganizationColumns
Columns returns all column names of current dao.
func (*SysOrganizationDao) Ctx ¶
func (dao *SysOrganizationDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *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) DaoConfig ¶
func (dao *SysOrganizationDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
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 SysPermissionColumns ¶
type SysPermissionColumns struct { Id string // ID ParentId string // 父级ID Name string // 名称 Description string // 描述 Identifier string // 标识符 Type string // 类型:1api,2menu MatchMode string // 匹配模式:ID:0,标识符:1 IsShow string // 是否显示:0不显示 1显示 Sort string // 排序 CreatedAt string // UpdatedAt string // }
SysPermissionColumns defines and stores column names for table sys_permission.
type SysPermissionDao ¶
type SysPermissionDao struct {
// contains filtered or unexported fields
}
SysPermissionDao is the data access object for table sys_permission.
func NewSysPermissionDao ¶
func NewSysPermissionDao(proxy ...dao_interface.IDao) *SysPermissionDao
NewSysPermissionDao creates and returns a new DAO object for table data access.
func (*SysPermissionDao) Columns ¶
func (dao *SysPermissionDao) Columns() SysPermissionColumns
Columns returns all column names of current dao.
func (*SysPermissionDao) Ctx ¶
func (dao *SysPermissionDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysPermissionDao) DB ¶
func (dao *SysPermissionDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysPermissionDao) DaoConfig ¶
func (dao *SysPermissionDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysPermissionDao) Group ¶
func (dao *SysPermissionDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysPermissionDao) Table ¶
func (dao *SysPermissionDao) Table() string
Table returns the table name of current dao.
func (*SysPermissionDao) Transaction ¶
func (dao *SysPermissionDao) 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 // Name string // 名称 Description string // 描述 IsSystem string // 是否默认角色,true仅能修改名称,不允许删除和修改 UpdatedAt string // CreatedAt string // UnionMainId string // 主体id }
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(proxy ...dao_interface.IDao) *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, cacheOption ...*gdb.CacheOption) *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) DaoConfig ¶
func (dao *SysRoleDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
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 SysSettingsColumns ¶ added in v0.4.2
type SysSettingsColumns struct { Name string // 配置名称 Values string // 配置信息JSON格式 Desc string // 描述 UnionMainId string // 关联的主体id,为0代表是平台配置 CreatedAt string // UpdatedAt string // }
SysSettingsColumns defines and stores column names for table sys_settings.
type SysSettingsDao ¶ added in v0.4.2
type SysSettingsDao struct {
// contains filtered or unexported fields
}
SysSettingsDao is the data access object for table sys_settings.
func NewSysSettingsDao ¶ added in v0.4.2
func NewSysSettingsDao(proxy ...dao_interface.IDao) *SysSettingsDao
NewSysSettingsDao creates and returns a new DAO object for table data access.
func (*SysSettingsDao) Columns ¶ added in v0.4.2
func (dao *SysSettingsDao) Columns() SysSettingsColumns
Columns returns all column names of current dao.
func (*SysSettingsDao) Ctx ¶ added in v0.4.2
func (dao *SysSettingsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysSettingsDao) DB ¶ added in v0.4.2
func (dao *SysSettingsDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysSettingsDao) DaoConfig ¶ added in v0.4.2
func (dao *SysSettingsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysSettingsDao) Group ¶ added in v0.4.2
func (dao *SysSettingsDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysSettingsDao) Table ¶ added in v0.4.2
func (dao *SysSettingsDao) Table() string
Table returns the table name of current dao.
func (*SysSettingsDao) Transaction ¶ added in v0.4.2
func (dao *SysSettingsDao) 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 SysSmsLogsColumns ¶
type SysSmsLogsColumns struct { Id string // Type string // 短信平台:qyxs:企业信使 Context string // 短信内容 Mobile string // 手机号 State string // 发送状态 Result string // 短信接口返回内容 UserId string // 用户ID LicenseId string // 主体ID CreatedAt string // UpdatedAt string // DeletedAt string // }
SysSmsLogsColumns defines and stores column names for table sys_sms_logs.
type SysSmsLogsDao ¶
type SysSmsLogsDao struct {
// contains filtered or unexported fields
}
SysSmsLogsDao is the data access object for table sys_sms_logs.
func NewSysSmsLogsDao ¶
func NewSysSmsLogsDao(proxy ...dao_interface.IDao) *SysSmsLogsDao
NewSysSmsLogsDao creates and returns a new DAO object for table data access.
func (*SysSmsLogsDao) Columns ¶
func (dao *SysSmsLogsDao) Columns() SysSmsLogsColumns
Columns returns all column names of current dao.
func (*SysSmsLogsDao) Ctx ¶
func (dao *SysSmsLogsDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysSmsLogsDao) DB ¶
func (dao *SysSmsLogsDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysSmsLogsDao) DaoConfig ¶
func (dao *SysSmsLogsDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysSmsLogsDao) Group ¶
func (dao *SysSmsLogsDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysSmsLogsDao) Table ¶
func (dao *SysSmsLogsDao) Table() string
Table returns the table name of current dao.
func (*SysSmsLogsDao) Transaction ¶
func (dao *SysSmsLogsDao) 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 // 账号 Password string // 密码 State string // 状态:0未激活、1正常、-1封号、-2异常、-3已注销 Type string // 用户类型,0匿名,1用户,2微商,4商户、8广告主、16服务商、32运营中心,64后台 Mobile 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(proxy ...dao_interface.IDao) *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, cacheOption ...*gdb.CacheOption) *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) DaoConfig ¶
func (dao *SysUserDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
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 SysUserDetailColumns ¶
type SysUserDetailColumns struct { Id string // ID,保持与USERID一致 Realname string // 姓名 UnionMainName string // 关联主体名称 LastLoginIp string // 最后登录IP LastLoginArea string // 最后登录地区 LastLoginAt string // 最后登录时间 }
SysUserDetailColumns defines and stores column names for table sys_user_detail.
type SysUserDetailDao ¶
type SysUserDetailDao struct {
// contains filtered or unexported fields
}
SysUserDetailDao is the data access object for table sys_user_detail.
func NewSysUserDetailDao ¶
func NewSysUserDetailDao(proxy ...dao_interface.IDao) *SysUserDetailDao
NewSysUserDetailDao creates and returns a new DAO object for table data access.
func (*SysUserDetailDao) Columns ¶
func (dao *SysUserDetailDao) Columns() SysUserDetailColumns
Columns returns all column names of current dao.
func (*SysUserDetailDao) Ctx ¶
func (dao *SysUserDetailDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysUserDetailDao) DB ¶
func (dao *SysUserDetailDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysUserDetailDao) DaoConfig ¶
func (dao *SysUserDetailDao) DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) dao_interface.DaoConfig
func (*SysUserDetailDao) Group ¶
func (dao *SysUserDetailDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysUserDetailDao) Table ¶
func (dao *SysUserDetailDao) Table() string
Table returns the table name of current dao.
func (*SysUserDetailDao) Transaction ¶
func (dao *SysUserDetailDao) 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.