Documentation ¶
Index ¶
- type AdminDepartmentColumns
- type AdminDepartmentDao
- func (dao *AdminDepartmentDao) Columns() AdminDepartmentColumns
- func (dao *AdminDepartmentDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *AdminDepartmentDao) DB() gdb.DB
- func (dao *AdminDepartmentDao) Group() string
- func (dao *AdminDepartmentDao) Table() string
- func (dao *AdminDepartmentDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type AdminInviteColumns
- type AdminInviteDao
- func (dao *AdminInviteDao) Columns() AdminInviteColumns
- func (dao *AdminInviteDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *AdminInviteDao) DB() gdb.DB
- func (dao *AdminInviteDao) Group() string
- func (dao *AdminInviteDao) Table() string
- func (dao *AdminInviteDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type ArticleCategoryColumns
- type ArticleCategoryDao
- func (dao *ArticleCategoryDao) Columns() ArticleCategoryColumns
- func (dao *ArticleCategoryDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *ArticleCategoryDao) DB() gdb.DB
- func (dao *ArticleCategoryDao) Group() string
- func (dao *ArticleCategoryDao) Table() string
- func (dao *ArticleCategoryDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type ArticleColumns
- type ArticleDao
- func (dao *ArticleDao) Columns() ArticleColumns
- func (dao *ArticleDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *ArticleDao) DB() gdb.DB
- func (dao *ArticleDao) Group() string
- func (dao *ArticleDao) Table() string
- func (dao *ArticleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- 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 ConfigColumns
- type ConfigDao
- func (dao *ConfigDao) Columns() ConfigColumns
- func (dao *ConfigDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *ConfigDao) DB() gdb.DB
- func (dao *ConfigDao) Group() string
- func (dao *ConfigDao) Table() string
- func (dao *ConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type ConfigGroupColumns
- type ConfigGroupDao
- func (dao *ConfigGroupDao) Columns() ConfigGroupColumns
- func (dao *ConfigGroupDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *ConfigGroupDao) DB() gdb.DB
- func (dao *ConfigGroupDao) Group() string
- func (dao *ConfigGroupDao) Table() string
- func (dao *ConfigGroupDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type DepartmentColumns
- type DepartmentDao
- func (dao *DepartmentDao) Columns() DepartmentColumns
- func (dao *DepartmentDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *DepartmentDao) DB() gdb.DB
- func (dao *DepartmentDao) Group() string
- func (dao *DepartmentDao) Table() string
- func (dao *DepartmentDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type DepartmentRolesColumns
- type DepartmentRolesDao
- func (dao *DepartmentRolesDao) Columns() DepartmentRolesColumns
- func (dao *DepartmentRolesDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *DepartmentRolesDao) DB() gdb.DB
- func (dao *DepartmentRolesDao) Group() string
- func (dao *DepartmentRolesDao) Table() string
- func (dao *DepartmentRolesDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type PermissionsColumns
- type PermissionsDao
- func (dao *PermissionsDao) Columns() PermissionsColumns
- func (dao *PermissionsDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *PermissionsDao) DB() gdb.DB
- func (dao *PermissionsDao) Group() string
- func (dao *PermissionsDao) Table() string
- func (dao *PermissionsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type PermissonsAssocColumns
- type PermissonsAssocDao
- func (dao *PermissonsAssocDao) Columns() PermissonsAssocColumns
- func (dao *PermissonsAssocDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *PermissonsAssocDao) DB() gdb.DB
- func (dao *PermissonsAssocDao) Group() string
- func (dao *PermissonsAssocDao) Table() string
- func (dao *PermissonsAssocDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type RolesColumns
- type RolesDao
- func (dao *RolesDao) Columns() RolesColumns
- func (dao *RolesDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *RolesDao) DB() gdb.DB
- func (dao *RolesDao) Group() string
- func (dao *RolesDao) Table() string
- func (dao *RolesDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SmsRecordColumns
- type SmsRecordDao
- func (dao *SmsRecordDao) Columns() SmsRecordColumns
- func (dao *SmsRecordDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SmsRecordDao) DB() gdb.DB
- func (dao *SmsRecordDao) Group() string
- func (dao *SmsRecordDao) Table() string
- func (dao *SmsRecordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SmsTemplateColumns
- type SmsTemplateDao
- func (dao *SmsTemplateDao) Columns() SmsTemplateColumns
- func (dao *SmsTemplateDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SmsTemplateDao) DB() gdb.DB
- func (dao *SmsTemplateDao) Group() string
- func (dao *SmsTemplateDao) Table() string
- func (dao *SmsTemplateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SmsTemplateOutColumns
- type SmsTemplateOutDao
- func (dao *SmsTemplateOutDao) Columns() SmsTemplateOutColumns
- func (dao *SmsTemplateOutDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SmsTemplateOutDao) DB() gdb.DB
- func (dao *SmsTemplateOutDao) Group() string
- func (dao *SmsTemplateOutDao) Table() string
- func (dao *SmsTemplateOutDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysMapColumns
- type SysMapDao
- func (dao *SysMapDao) Columns() SysMapColumns
- func (dao *SysMapDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysMapDao) DB() gdb.DB
- func (dao *SysMapDao) Group() string
- func (dao *SysMapDao) Table() string
- func (dao *SysMapDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SysMapValueColumns
- type SysMapValueDao
- func (dao *SysMapValueDao) Columns() SysMapValueColumns
- func (dao *SysMapValueDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SysMapValueDao) DB() gdb.DB
- func (dao *SysMapValueDao) Group() string
- func (dao *SysMapValueDao) Table() string
- func (dao *SysMapValueDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type SystemLogColumns
- type SystemLogDao
- func (dao *SystemLogDao) Columns() SystemLogColumns
- func (dao *SystemLogDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *SystemLogDao) DB() gdb.DB
- func (dao *SystemLogDao) Group() string
- func (dao *SystemLogDao) Table() string
- func (dao *SystemLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserAdminColumns
- type UserAdminDao
- func (dao *UserAdminDao) Columns() UserAdminColumns
- func (dao *UserAdminDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserAdminDao) DB() gdb.DB
- func (dao *UserAdminDao) Group() string
- func (dao *UserAdminDao) Table() string
- func (dao *UserAdminDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserColumns
- type UserCredentialColumns
- type UserCredentialDao
- func (dao *UserCredentialDao) Columns() UserCredentialColumns
- func (dao *UserCredentialDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserCredentialDao) DB() gdb.DB
- func (dao *UserCredentialDao) Group() string
- func (dao *UserCredentialDao) Table() string
- func (dao *UserCredentialDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserDao
- func (dao *UserDao) Columns() UserColumns
- func (dao *UserDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserDao) DB() gdb.DB
- func (dao *UserDao) Group() string
- func (dao *UserDao) Table() string
- func (dao *UserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserDetailColumns
- type UserDetailDao
- func (dao *UserDetailDao) Columns() UserDetailColumns
- func (dao *UserDetailDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserDetailDao) DB() gdb.DB
- func (dao *UserDetailDao) Group() string
- func (dao *UserDetailDao) Table() string
- func (dao *UserDetailDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserDeviceColumns
- type UserDeviceDao
- func (dao *UserDeviceDao) Columns() UserDeviceColumns
- func (dao *UserDeviceDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserDeviceDao) DB() gdb.DB
- func (dao *UserDeviceDao) Group() string
- func (dao *UserDeviceDao) Table() string
- func (dao *UserDeviceDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserFundsColumns
- type UserFundsDao
- func (dao *UserFundsDao) Columns() UserFundsColumns
- func (dao *UserFundsDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserFundsDao) DB() gdb.DB
- func (dao *UserFundsDao) Group() string
- func (dao *UserFundsDao) Table() string
- func (dao *UserFundsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type UserLoginColumns
- type UserLoginDao
- func (dao *UserLoginDao) Columns() UserLoginColumns
- func (dao *UserLoginDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *UserLoginDao) DB() gdb.DB
- func (dao *UserLoginDao) Group() string
- func (dao *UserLoginDao) Table() string
- func (dao *UserLoginDao) 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 AdminDepartmentColumns ¶
type AdminDepartmentColumns struct { Id string // 管理员部门ID AdminId string // 管理员ID,非用户ID DepartId string // 部门ID UpdateAt string // 更新时间 CreateAt string // 创建时间 }
AdminDepartmentColumns defines and stores column names for table admin_department.
type AdminDepartmentDao ¶
type AdminDepartmentDao struct {
// contains filtered or unexported fields
}
AdminDepartmentDao is the data access object for table admin_department.
func NewAdminDepartmentDao ¶
func NewAdminDepartmentDao() *AdminDepartmentDao
NewAdminDepartmentDao creates and returns a new DAO object for table data access.
func (*AdminDepartmentDao) Columns ¶
func (dao *AdminDepartmentDao) Columns() AdminDepartmentColumns
Columns returns all column names of current dao.
func (*AdminDepartmentDao) Ctx ¶
func (dao *AdminDepartmentDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*AdminDepartmentDao) DB ¶
func (dao *AdminDepartmentDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*AdminDepartmentDao) Group ¶
func (dao *AdminDepartmentDao) Group() string
Group returns the configuration group name of database of current dao.
func (*AdminDepartmentDao) Table ¶
func (dao *AdminDepartmentDao) Table() string
Table returns the table name of current dao.
func (*AdminDepartmentDao) Transaction ¶
func (dao *AdminDepartmentDao) 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 AdminInviteColumns ¶ added in v1.0.4
type AdminInviteColumns struct { Id string // 邀请ID Token string // 邀请Token AdminId string // 邀请管理员ID ManageName string // 邀请管理员名 Expired string // 过期时间 Status string // 状态:0邀请中,1已邀请,2已撤销 Uid string // 被邀请人用户ID RefreshNum string // 刷新次数 DepartId string // 部门ID IsSuperManage string // 是否超管:0普管,1超管 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
AdminInviteColumns defines and stores column names for table admin_invite.
type AdminInviteDao ¶ added in v1.0.4
type AdminInviteDao struct {
// contains filtered or unexported fields
}
AdminInviteDao is the data access object for table admin_invite.
func NewAdminInviteDao ¶ added in v1.0.4
func NewAdminInviteDao() *AdminInviteDao
NewAdminInviteDao creates and returns a new DAO object for table data access.
func (*AdminInviteDao) Columns ¶ added in v1.0.4
func (dao *AdminInviteDao) Columns() AdminInviteColumns
Columns returns all column names of current dao.
func (*AdminInviteDao) Ctx ¶ added in v1.0.4
func (dao *AdminInviteDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*AdminInviteDao) DB ¶ added in v1.0.4
func (dao *AdminInviteDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*AdminInviteDao) Group ¶ added in v1.0.4
func (dao *AdminInviteDao) Group() string
Group returns the configuration group name of database of current dao.
func (*AdminInviteDao) Table ¶ added in v1.0.4
func (dao *AdminInviteDao) Table() string
Table returns the table name of current dao.
func (*AdminInviteDao) Transaction ¶ added in v1.0.4
func (dao *AdminInviteDao) 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 ArticleCategoryColumns ¶
type ArticleCategoryColumns struct { Id string // 文章类目ID Name string // 文章类目名 Description string // 详情 Pid string // 父级ID Status string // 状态:0正常,1禁用 IsShow string // 是否显示:0显示,1隐藏 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
ArticleCategoryColumns defines and stores column names for table article_category.
type ArticleCategoryDao ¶
type ArticleCategoryDao struct {
// contains filtered or unexported fields
}
ArticleCategoryDao is the data access object for table article_category.
func NewArticleCategoryDao ¶
func NewArticleCategoryDao() *ArticleCategoryDao
NewArticleCategoryDao creates and returns a new DAO object for table data access.
func (*ArticleCategoryDao) Columns ¶
func (dao *ArticleCategoryDao) Columns() ArticleCategoryColumns
Columns returns all column names of current dao.
func (*ArticleCategoryDao) Ctx ¶
func (dao *ArticleCategoryDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*ArticleCategoryDao) DB ¶
func (dao *ArticleCategoryDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*ArticleCategoryDao) Group ¶
func (dao *ArticleCategoryDao) Group() string
Group returns the configuration group name of database of current dao.
func (*ArticleCategoryDao) Table ¶
func (dao *ArticleCategoryDao) Table() string
Table returns the table name of current dao.
func (*ArticleCategoryDao) Transaction ¶
func (dao *ArticleCategoryDao) 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 ArticleColumns ¶
type ArticleColumns struct { Id string // 文章ID Name string // 文章名 AbbrevName string // 文章缩写名 Description string // 文章摘要 Cid string // 文章分类ID Keywords string // 关键词 ImgUrl string // 图片地址 VideoUrl string // 视频地址 Content string // 文章内容 Status string // 状态:0正常,1禁用 IsShow string // 是否显示:0正常,1隐藏 Sort string // 排序值:0-99999升序 AssocAlias string // 关联别名,例如:注册协议、网服协议等 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
ArticleColumns defines and stores column names for table article.
type ArticleDao ¶
type ArticleDao struct {
// contains filtered or unexported fields
}
ArticleDao is the data access object for table article.
func NewArticleDao ¶
func NewArticleDao() *ArticleDao
NewArticleDao creates and returns a new DAO object for table data access.
func (*ArticleDao) Columns ¶
func (dao *ArticleDao) Columns() ArticleColumns
Columns returns all column names of current dao.
func (*ArticleDao) Ctx ¶
func (dao *ArticleDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*ArticleDao) DB ¶
func (dao *ArticleDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*ArticleDao) Group ¶
func (dao *ArticleDao) Group() string
Group returns the configuration group name of database of current dao.
func (*ArticleDao) Table ¶
func (dao *ArticleDao) Table() string
Table returns the table name of current dao.
func (*ArticleDao) Transaction ¶
func (dao *ArticleDao) 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 AttachmentColumns ¶
type AttachmentColumns struct { Id string // 附件ID CatId string // 附件分类 Name string // 附件名 RealName string // 附件原名 AttSize string // 附件尺寸大小 AttPath string // 附件路径 AttUrl string // 附件地址 AttType string // 附件类型:image/png Position string // 排序位置:从小到大 ChannelId string // 渠道ID StorageType string // 存储类型:local本地,qiniu七牛等 Hasher string // Hash值 AttachId string // 附件ID Width string // 宽度 Height string // 高度 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
AttachmentColumns defines and stores column names for table attachment.
type AttachmentDao ¶
type AttachmentDao struct {
// contains filtered or unexported fields
}
AttachmentDao is the data access object for table 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 ConfigColumns ¶
type ConfigColumns struct { Id string // 配置ID Name string // 配置名称 Description string // 配置详情简介 Value string // 配置值 DefaultValue string // 默认配置值 GroupId string // 配置组ID GroupName string // 配置组名 Remark string // 备注 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
ConfigColumns defines and stores column names for table config.
type ConfigDao ¶
type ConfigDao struct {
// contains filtered or unexported fields
}
ConfigDao is the data access object for table config.
func NewConfigDao ¶
func NewConfigDao() *ConfigDao
NewConfigDao creates and returns a new DAO object for table data access.
func (*ConfigDao) Columns ¶
func (dao *ConfigDao) Columns() ConfigColumns
Columns returns all column names of current dao.
func (*ConfigDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*ConfigDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*ConfigDao) Transaction ¶
func (dao *ConfigDao) 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 ConfigGroupColumns ¶
type ConfigGroupColumns struct { Id string // 配置组ID Name string // 配置组名 GroupName string // 配置组关联名:basic基础配置 Description string // 详情 Pid string // 父级ID UpdateAt string // 更新时间 CreateAt string // 创建时间 }
ConfigGroupColumns defines and stores column names for table config_group.
type ConfigGroupDao ¶
type ConfigGroupDao struct {
// contains filtered or unexported fields
}
ConfigGroupDao is the data access object for table config_group.
func NewConfigGroupDao ¶
func NewConfigGroupDao() *ConfigGroupDao
NewConfigGroupDao creates and returns a new DAO object for table data access.
func (*ConfigGroupDao) Columns ¶
func (dao *ConfigGroupDao) Columns() ConfigGroupColumns
Columns returns all column names of current dao.
func (*ConfigGroupDao) Ctx ¶
func (dao *ConfigGroupDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*ConfigGroupDao) DB ¶
func (dao *ConfigGroupDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*ConfigGroupDao) Group ¶
func (dao *ConfigGroupDao) Group() string
Group returns the configuration group name of database of current dao.
func (*ConfigGroupDao) Table ¶
func (dao *ConfigGroupDao) Table() string
Table returns the table name of current dao.
func (*ConfigGroupDao) Transaction ¶
func (dao *ConfigGroupDao) 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 DepartmentColumns ¶
type DepartmentColumns struct { Id string // 部门ID DepartName string // 全称,例如:财务部 AbbrevName string // 简称,例如:财务 DepartNo string // 部门编号 Pid string // 父级ID Status string // 部门状态:0正常,1禁用 Sort string // 排序:0-255,默认255 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
DepartmentColumns defines and stores column names for table department.
type DepartmentDao ¶
type DepartmentDao struct {
// contains filtered or unexported fields
}
DepartmentDao is the data access object for table department.
func NewDepartmentDao ¶
func NewDepartmentDao() *DepartmentDao
NewDepartmentDao creates and returns a new DAO object for table data access.
func (*DepartmentDao) Columns ¶
func (dao *DepartmentDao) Columns() DepartmentColumns
Columns returns all column names of current dao.
func (*DepartmentDao) Ctx ¶
func (dao *DepartmentDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*DepartmentDao) DB ¶
func (dao *DepartmentDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*DepartmentDao) Group ¶
func (dao *DepartmentDao) Group() string
Group returns the configuration group name of database of current dao.
func (*DepartmentDao) Table ¶
func (dao *DepartmentDao) Table() string
Table returns the table name of current dao.
func (*DepartmentDao) Transaction ¶
func (dao *DepartmentDao) 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 DepartmentRolesColumns ¶
type DepartmentRolesColumns struct { Id string // 部门角色关联ID RoleId string // 角色ID DepartId string // 部门ID CreateAt string // 创建时间 }
DepartmentRolesColumns defines and stores column names for table department_roles.
type DepartmentRolesDao ¶
type DepartmentRolesDao struct {
// contains filtered or unexported fields
}
DepartmentRolesDao is the data access object for table department_roles.
func NewDepartmentRolesDao ¶
func NewDepartmentRolesDao() *DepartmentRolesDao
NewDepartmentRolesDao creates and returns a new DAO object for table data access.
func (*DepartmentRolesDao) Columns ¶
func (dao *DepartmentRolesDao) Columns() DepartmentRolesColumns
Columns returns all column names of current dao.
func (*DepartmentRolesDao) Ctx ¶
func (dao *DepartmentRolesDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*DepartmentRolesDao) DB ¶
func (dao *DepartmentRolesDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*DepartmentRolesDao) Group ¶
func (dao *DepartmentRolesDao) Group() string
Group returns the configuration group name of database of current dao.
func (*DepartmentRolesDao) Table ¶
func (dao *DepartmentRolesDao) Table() string
Table returns the table name of current dao.
func (*DepartmentRolesDao) Transaction ¶
func (dao *DepartmentRolesDao) 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 PermissionsColumns ¶
type PermissionsColumns struct { Id string // 权限ID Name string // 权限名 Description string // 权限详情 MenuType string // 权限类型:0主菜单,1子菜单,2页面操作,3数据授权 Icon string // Icon图 Path string // 页面地址 ApiPath string // 接口地址 Pid string // 父级权限ID IsShow string // 菜单是否显示:0显示,1隐藏 IsDisabled string // 是否禁用:0正常,1禁用 PermCode string // 操作权限码 DisableColumn string // 禁用字段(3.数据授权类型) Sort string // 排序值0-255 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
PermissionsColumns defines and stores column names for table permissions.
type PermissionsDao ¶
type PermissionsDao struct {
// contains filtered or unexported fields
}
PermissionsDao is the data access object for table permissions.
func NewPermissionsDao ¶
func NewPermissionsDao() *PermissionsDao
NewPermissionsDao creates and returns a new DAO object for table data access.
func (*PermissionsDao) Columns ¶
func (dao *PermissionsDao) Columns() PermissionsColumns
Columns returns all column names of current dao.
func (*PermissionsDao) Ctx ¶
func (dao *PermissionsDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*PermissionsDao) DB ¶
func (dao *PermissionsDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*PermissionsDao) Group ¶
func (dao *PermissionsDao) Group() string
Group returns the configuration group name of database of current dao.
func (*PermissionsDao) Table ¶
func (dao *PermissionsDao) Table() string
Table returns the table name of current dao.
func (*PermissionsDao) Transaction ¶
func (dao *PermissionsDao) 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 PermissonsAssocColumns ¶
type PermissonsAssocColumns struct { Id string // 角色权限关联ID AssocId string // 角色ID PermissionsId string // 权限ID AssocType string // 关联类型:0角色关联,1账户关联 CreateAt string // 创建时间 }
PermissonsAssocColumns defines and stores column names for table permissons_assoc.
type PermissonsAssocDao ¶
type PermissonsAssocDao struct {
// contains filtered or unexported fields
}
PermissonsAssocDao is the data access object for table permissons_assoc.
func NewPermissonsAssocDao ¶
func NewPermissonsAssocDao() *PermissonsAssocDao
NewPermissonsAssocDao creates and returns a new DAO object for table data access.
func (*PermissonsAssocDao) Columns ¶
func (dao *PermissonsAssocDao) Columns() PermissonsAssocColumns
Columns returns all column names of current dao.
func (*PermissonsAssocDao) Ctx ¶
func (dao *PermissonsAssocDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*PermissonsAssocDao) DB ¶
func (dao *PermissonsAssocDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*PermissonsAssocDao) Group ¶
func (dao *PermissonsAssocDao) Group() string
Group returns the configuration group name of database of current dao.
func (*PermissonsAssocDao) Table ¶
func (dao *PermissonsAssocDao) Table() string
Table returns the table name of current dao.
func (*PermissonsAssocDao) Transaction ¶
func (dao *PermissonsAssocDao) 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 RolesColumns ¶
type RolesColumns struct { Id string // 角色ID Name string // 角色名 Description string // 详情 RoleStatus string // 角色状态:0正常,1冻结 Sort string // 排序:0-255,默认255 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
RolesColumns defines and stores column names for table roles.
type RolesDao ¶
type RolesDao struct {
// contains filtered or unexported fields
}
RolesDao is the data access object for table roles.
func NewRolesDao ¶
func NewRolesDao() *RolesDao
NewRolesDao creates and returns a new DAO object for table data access.
func (*RolesDao) Columns ¶
func (dao *RolesDao) Columns() RolesColumns
Columns returns all column names of current dao.
func (*RolesDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*RolesDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*RolesDao) Transaction ¶
func (dao *RolesDao) 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 SmsRecordColumns ¶
type SmsRecordColumns struct { Id string // 短信发送记录编号 Mobile string // 接受短信的手机号 Content string // 短信内容 Code string // 验证码 Ip string // 添加记录ip TemplateId string // 短信模板ID SmsType string // 短信类型:0验证码,1消息通知,2营销短信 SerialId string // 发送记录id Results string // 发送结果 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SmsRecordColumns defines and stores column names for table sms_record.
type SmsRecordDao ¶
type SmsRecordDao struct {
// contains filtered or unexported fields
}
SmsRecordDao is the data access object for table sms_record.
func NewSmsRecordDao ¶
func NewSmsRecordDao() *SmsRecordDao
NewSmsRecordDao creates and returns a new DAO object for table data access.
func (*SmsRecordDao) Columns ¶
func (dao *SmsRecordDao) Columns() SmsRecordColumns
Columns returns all column names of current dao.
func (*SmsRecordDao) Ctx ¶
func (dao *SmsRecordDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SmsRecordDao) DB ¶
func (dao *SmsRecordDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SmsRecordDao) Group ¶
func (dao *SmsRecordDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SmsRecordDao) Table ¶
func (dao *SmsRecordDao) Table() string
Table returns the table name of current dao.
func (*SmsRecordDao) Transaction ¶
func (dao *SmsRecordDao) 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 SmsTemplateColumns ¶
type SmsTemplateColumns struct { Id string // 模板ID Name string // 模板名 Content string // 模板内容 VarAlias string // 模板别名 SmsType string // 短信类型:0验证码,1消息通知,2营销短信 Status string // 模板状态:0关闭,1启用 Remark string // 备注 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SmsTemplateColumns defines and stores column names for table sms_template.
type SmsTemplateDao ¶
type SmsTemplateDao struct {
// contains filtered or unexported fields
}
SmsTemplateDao is the data access object for table sms_template.
func NewSmsTemplateDao ¶
func NewSmsTemplateDao() *SmsTemplateDao
NewSmsTemplateDao creates and returns a new DAO object for table data access.
func (*SmsTemplateDao) Columns ¶
func (dao *SmsTemplateDao) Columns() SmsTemplateColumns
Columns returns all column names of current dao.
func (*SmsTemplateDao) Ctx ¶
func (dao *SmsTemplateDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SmsTemplateDao) DB ¶
func (dao *SmsTemplateDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SmsTemplateDao) Group ¶
func (dao *SmsTemplateDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SmsTemplateDao) Table ¶
func (dao *SmsTemplateDao) Table() string
Table returns the table name of current dao.
func (*SmsTemplateDao) Transaction ¶
func (dao *SmsTemplateDao) 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 SmsTemplateOutColumns ¶
type SmsTemplateOutColumns struct { Id string // 短信模板关联外部平台ID VarAlias string // 系统模板变量 TemplateId string // 外部平台ID FromType string // 平台类型:tencent腾讯,alipay阿里云[is_config,短信通道] OutTmplStatus string // 外部模板状态 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SmsTemplateOutColumns defines and stores column names for table sms_template_out.
type SmsTemplateOutDao ¶
type SmsTemplateOutDao struct {
// contains filtered or unexported fields
}
SmsTemplateOutDao is the data access object for table sms_template_out.
func NewSmsTemplateOutDao ¶
func NewSmsTemplateOutDao() *SmsTemplateOutDao
NewSmsTemplateOutDao creates and returns a new DAO object for table data access.
func (*SmsTemplateOutDao) Columns ¶
func (dao *SmsTemplateOutDao) Columns() SmsTemplateOutColumns
Columns returns all column names of current dao.
func (*SmsTemplateOutDao) Ctx ¶
func (dao *SmsTemplateOutDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SmsTemplateOutDao) DB ¶
func (dao *SmsTemplateOutDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SmsTemplateOutDao) Group ¶
func (dao *SmsTemplateOutDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SmsTemplateOutDao) Table ¶
func (dao *SmsTemplateOutDao) Table() string
Table returns the table name of current dao.
func (*SmsTemplateOutDao) Transaction ¶
func (dao *SmsTemplateOutDao) 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 SysMapColumns ¶
type SysMapColumns struct { Id string // 系统字典ID Name string // 字典名,例如:sys_user_sex Explain string // 字典名解析值,例如:用户性别 IsDisable string // 是否禁用:0正常,1禁用 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SysMapColumns defines and stores column names for table sys_map.
type SysMapDao ¶
type SysMapDao struct {
// contains filtered or unexported fields
}
SysMapDao is the data access object for table sys_map.
func NewSysMapDao ¶
func NewSysMapDao() *SysMapDao
NewSysMapDao creates and returns a new DAO object for table data access.
func (*SysMapDao) Columns ¶
func (dao *SysMapDao) Columns() SysMapColumns
Columns returns all column names of current dao.
func (*SysMapDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysMapDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysMapDao) Transaction ¶
func (dao *SysMapDao) 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 SysMapValueColumns ¶
type SysMapValueColumns struct { Id string // 字典值ID Value string // 字典值 Explain string // 字典值解析 Name string // 字典名-sys_map[name] UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SysMapValueColumns defines and stores column names for table sys_map_value.
type SysMapValueDao ¶
type SysMapValueDao struct {
// contains filtered or unexported fields
}
SysMapValueDao is the data access object for table sys_map_value.
func NewSysMapValueDao ¶
func NewSysMapValueDao() *SysMapValueDao
NewSysMapValueDao creates and returns a new DAO object for table data access.
func (*SysMapValueDao) Columns ¶
func (dao *SysMapValueDao) Columns() SysMapValueColumns
Columns returns all column names of current dao.
func (*SysMapValueDao) Ctx ¶
func (dao *SysMapValueDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SysMapValueDao) DB ¶
func (dao *SysMapValueDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SysMapValueDao) Group ¶
func (dao *SysMapValueDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SysMapValueDao) Table ¶
func (dao *SysMapValueDao) Table() string
Table returns the table name of current dao.
func (*SysMapValueDao) Transaction ¶
func (dao *SysMapValueDao) 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 SystemLogColumns ¶
type SystemLogColumns struct { Id string // 日志id ModuleName string // 操作模块名 Content string // 操作详情 Ip string // 操作IP地址 OperateType string // 日志操作类型:0操作日志,1登录操作,2系统日志 ApiUrl string // api URL UserId string // 用户ID ManageId string // 账户id ManageName string // 账户名 MerchantId string // 商户ID ResponseText string // 资源响应 ParamText string // 请求资源 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
SystemLogColumns defines and stores column names for table system_log.
type SystemLogDao ¶
type SystemLogDao struct {
// contains filtered or unexported fields
}
SystemLogDao is the data access object for table system_log.
func NewSystemLogDao ¶
func NewSystemLogDao() *SystemLogDao
NewSystemLogDao creates and returns a new DAO object for table data access.
func (*SystemLogDao) Columns ¶
func (dao *SystemLogDao) Columns() SystemLogColumns
Columns returns all column names of current dao.
func (*SystemLogDao) Ctx ¶
func (dao *SystemLogDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*SystemLogDao) DB ¶
func (dao *SystemLogDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*SystemLogDao) Group ¶
func (dao *SystemLogDao) Group() string
Group returns the configuration group name of database of current dao.
func (*SystemLogDao) Table ¶
func (dao *SystemLogDao) Table() string
Table returns the table name of current dao.
func (*SystemLogDao) Transaction ¶
func (dao *SystemLogDao) 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 UserAdminColumns ¶
type UserAdminColumns struct { Id string // 管理员ID UserId string // 用户ID ManageName string // 管理名称 ManageNo string // 管理员编号 IsSuperManage string // 是否超管:0普管,1超管 ManageStatus string // 管理员状态:0正常,1冻结,2离职,3违规,4注销 LogoffAt string // 注销时间 UpdateAt string // 更新时间 CreateAt string // 穿件时间 }
UserAdminColumns defines and stores column names for table user_admin.
type UserAdminDao ¶
type UserAdminDao struct {
// contains filtered or unexported fields
}
UserAdminDao is the data access object for table user_admin.
func NewUserAdminDao ¶
func NewUserAdminDao() *UserAdminDao
NewUserAdminDao creates and returns a new DAO object for table data access.
func (*UserAdminDao) Columns ¶
func (dao *UserAdminDao) Columns() UserAdminColumns
Columns returns all column names of current dao.
func (*UserAdminDao) Ctx ¶
func (dao *UserAdminDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserAdminDao) DB ¶
func (dao *UserAdminDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserAdminDao) Group ¶
func (dao *UserAdminDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserAdminDao) Table ¶
func (dao *UserAdminDao) Table() string
Table returns the table name of current dao.
func (*UserAdminDao) Transaction ¶
func (dao *UserAdminDao) 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 UserColumns ¶
type UserColumns struct { Id string // 用户ID Account string // 账号 Mobile string // 手机号(加密) Nickname string // 昵称 UniqueId string // 对外身份ID Status string // 状态:0正常,1冻结,2待注销 UpdateAt string // 更新时间 CreateAt string // 注册时间 }
UserColumns defines and stores column names for table user.
type UserCredentialColumns ¶
type UserCredentialColumns struct { Id string // 用户证件ID UserId string // 用户ID IdCard string // 证件编号 JustUrl string // 证件正面URL地址 OppositeUrl string // 证件反面URL地址 Type string // 证件类型:0身份证 ExpireType string // 证件效期类型:0有效期,1长期 ExpireStartDate string // 证件注册时间 ExpireEndDate string // 证件到期时间 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
UserCredentialColumns defines and stores column names for table user_credential.
type UserCredentialDao ¶
type UserCredentialDao struct {
// contains filtered or unexported fields
}
UserCredentialDao is the data access object for table user_credential.
func NewUserCredentialDao ¶
func NewUserCredentialDao() *UserCredentialDao
NewUserCredentialDao creates and returns a new DAO object for table data access.
func (*UserCredentialDao) Columns ¶
func (dao *UserCredentialDao) Columns() UserCredentialColumns
Columns returns all column names of current dao.
func (*UserCredentialDao) Ctx ¶
func (dao *UserCredentialDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserCredentialDao) DB ¶
func (dao *UserCredentialDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserCredentialDao) Group ¶
func (dao *UserCredentialDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserCredentialDao) Table ¶
func (dao *UserCredentialDao) Table() string
Table returns the table name of current dao.
func (*UserCredentialDao) Transaction ¶
func (dao *UserCredentialDao) 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 UserDao ¶
type UserDao struct {
// contains filtered or unexported fields
}
UserDao is the data access object for table user.
func NewUserDao ¶
func NewUserDao() *UserDao
NewUserDao creates and returns a new DAO object for table data access.
func (*UserDao) Columns ¶
func (dao *UserDao) Columns() UserColumns
Columns returns all column names of current dao.
func (*UserDao) Ctx ¶
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserDao) DB ¶
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserDao) Transaction ¶
func (dao *UserDao) 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 UserDetailColumns ¶
type UserDetailColumns struct { UserId string // 用户ID Sex string // 性别:0男,1女 Birthday string // 生日 PwdHash string // 密码hash值 PwdSalt string // 加密盐 Avatar string // 头像 AttachId string // 附件ID RegIp string // 注册IP RegIpLocation string // 注册归属地 LoginIp string // 登录IP LoginIpLocation string // 登录归属地 LogoutAt string // 注销时间 SignNum string // 签到总数 ConSign string // 连续签到时间 UpdateAt string // 更新时间 }
UserDetailColumns defines and stores column names for table user_detail.
type UserDetailDao ¶
type UserDetailDao struct {
// contains filtered or unexported fields
}
UserDetailDao is the data access object for table user_detail.
func NewUserDetailDao ¶
func NewUserDetailDao() *UserDetailDao
NewUserDetailDao creates and returns a new DAO object for table data access.
func (*UserDetailDao) Columns ¶
func (dao *UserDetailDao) Columns() UserDetailColumns
Columns returns all column names of current dao.
func (*UserDetailDao) Ctx ¶
func (dao *UserDetailDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserDetailDao) DB ¶
func (dao *UserDetailDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserDetailDao) Group ¶
func (dao *UserDetailDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserDetailDao) Table ¶
func (dao *UserDetailDao) Table() string
Table returns the table name of current dao.
func (*UserDetailDao) Transaction ¶
func (dao *UserDetailDao) 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 UserDeviceColumns ¶
type UserDeviceColumns struct { Id string // 用户设备ID UserId string // 用户ID DeviceName string // 设备名称 DeviceType string // 设备类型:iOS,安卓,H5,PC Mac string // MAC地址 DeviceHash string // 设备Hash值[用户ID+设备名+类型+MAC] LastLoginAt string // 最后登录时间 IsDisabled string // 是否禁用:0正常,1禁用 UpdateAt string // 更新时间 CreateAt string // 创建时间 }
UserDeviceColumns defines and stores column names for table user_device.
type UserDeviceDao ¶
type UserDeviceDao struct {
// contains filtered or unexported fields
}
UserDeviceDao is the data access object for table user_device.
func NewUserDeviceDao ¶
func NewUserDeviceDao() *UserDeviceDao
NewUserDeviceDao creates and returns a new DAO object for table data access.
func (*UserDeviceDao) Columns ¶
func (dao *UserDeviceDao) Columns() UserDeviceColumns
Columns returns all column names of current dao.
func (*UserDeviceDao) Ctx ¶
func (dao *UserDeviceDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserDeviceDao) DB ¶
func (dao *UserDeviceDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserDeviceDao) Group ¶
func (dao *UserDeviceDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserDeviceDao) Table ¶
func (dao *UserDeviceDao) Table() string
Table returns the table name of current dao.
func (*UserDeviceDao) Transaction ¶
func (dao *UserDeviceDao) 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 UserFundsColumns ¶
type UserFundsColumns struct { UserId string // 用户ID RechargeTotalFee string // 充值总金额 AvailableFee string // 可用金额 FreezeFee string // 冻结金额 DesignTotalNum string // 设计币总数 AvailableDesignNum string // 可用设计币 FreezeDesignNum string // 冻结设计币 ConsumeTotalDesignNum string // 消费总设计币 ConsumeTotalFee string // 消费总金额 UpdateAt string // 更新时间 }
UserFundsColumns defines and stores column names for table user_funds.
type UserFundsDao ¶
type UserFundsDao struct {
// contains filtered or unexported fields
}
UserFundsDao is the data access object for table user_funds.
func NewUserFundsDao ¶
func NewUserFundsDao() *UserFundsDao
NewUserFundsDao creates and returns a new DAO object for table data access.
func (*UserFundsDao) Columns ¶
func (dao *UserFundsDao) Columns() UserFundsColumns
Columns returns all column names of current dao.
func (*UserFundsDao) Ctx ¶
func (dao *UserFundsDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserFundsDao) DB ¶
func (dao *UserFundsDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserFundsDao) Group ¶
func (dao *UserFundsDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserFundsDao) Table ¶
func (dao *UserFundsDao) Table() string
Table returns the table name of current dao.
func (*UserFundsDao) Transaction ¶
func (dao *UserFundsDao) 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 UserLoginColumns ¶
type UserLoginColumns struct { Id string // 用户登录记录ID UserId string // 用户ID LoginIp string // 登录IP LoginIpLocation string // 登录归属地 Token string // 登录token ExpireTime string // 过期时间 Status string // 状态:0在线,1下线,2超时下线 IsUse string // 是否一直在使用;0是,1否 DeviceType string // 设备类型 DeviceContent string // 设备详情 IsNewDevice string // 是否新设备:0是,1新设备 Mac string // Mac地址 UpdateAt string // 更新时间 CreateAt string // 登录时间 }
UserLoginColumns defines and stores column names for table user_login.
type UserLoginDao ¶
type UserLoginDao struct {
// contains filtered or unexported fields
}
UserLoginDao is the data access object for table user_login.
func NewUserLoginDao ¶
func NewUserLoginDao() *UserLoginDao
NewUserLoginDao creates and returns a new DAO object for table data access.
func (*UserLoginDao) Columns ¶
func (dao *UserLoginDao) Columns() UserLoginColumns
Columns returns all column names of current dao.
func (*UserLoginDao) Ctx ¶
func (dao *UserLoginDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*UserLoginDao) DB ¶
func (dao *UserLoginDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*UserLoginDao) Group ¶
func (dao *UserLoginDao) Group() string
Group returns the configuration group name of database of current dao.
func (*UserLoginDao) Table ¶
func (dao *UserLoginDao) Table() string
Table returns the table name of current dao.
func (*UserLoginDao) Transaction ¶
func (dao *UserLoginDao) 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.
Source Files ¶
- admin_department.go
- admin_invite.go
- article.go
- article_category.go
- attachment.go
- config.go
- config_group.go
- department.go
- department_roles.go
- permissions.go
- permissons_assoc.go
- roles.go
- sms_record.go
- sms_template.go
- sms_template_out.go
- sys_map.go
- sys_map_value.go
- system_log.go
- user.go
- user_admin.go
- user_credential.go
- user_detail.go
- user_device.go
- user_funds.go
- user_login.go