This commit is contained in:
2026-03-18 10:19:42 +08:00
parent 2526ad4414
commit e58dd3529d
267 changed files with 25279 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// areaDictDao is the data access object for table sys_user.
// You can define custom methods on it to extend its functionality as you wish.
type areaDictDao struct {
*internal.AreaDictDao
}
var (
// AreaDictDao is globally public accessible object for table sys_user operations.
AreaDictDao = areaDictDao{
internal.NewAreaDictDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,83 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// AreaDictDao is the data access object for table sys_user.
type AreaDictDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns AreaDictColumns // columns contains all the column names of Table for convenient usage.
}
// AreaDictColumns defines and stores column names for table sys_user.
type AreaDictColumns struct {
Id string //
CityName string // 城市名称
ParentId string // 父级id
ShortName string // 城市缩写名称
Depth string // 城市层级
MergerName string // 城市组合名称
}
// areaDictColumns holds the columns for table sys_user.
var areaDictColumns = AreaDictColumns{
Id: "id",
CityName: "city_name",
ParentId: "parent_id",
ShortName: "short_name",
Depth: "depth",
MergerName: "merger_name",
}
// NewAreaDictDao creates and returns a new DAO object for table data access.
func NewAreaDictDao() *AreaDictDao {
return &AreaDictDao{
group: "default",
table: "area_dict",
columns: areaDictColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *AreaDictDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *AreaDictDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *AreaDictDao) Columns() AreaDictColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *AreaDictDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *AreaDictDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *AreaDictDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,95 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2026-01-06
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// ModuleTenantDao is the data access object for table module_tenant.
type ModuleTenantDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns ModuleTenantColumns // columns contains all the column names of Table for convenient usage.
}
// ModuleTenantColumns defines and stores column names for table module_tenant.
type ModuleTenantColumns struct {
Id string //
CreateBy string // 创建者
UpdateBy string // 更新者
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
ModuleKey string // 模块Key
TenantId string // 租户ID
ExpireAt string // 到期时间
AssetId string // 资产ID
AssetSkuId string // 资产SKU ID
TenantModuleType string // 租户模块类型
CertificationStatus string // 状态
}
// moduleTenantColumns holds the columns for table module_tenant.
var moduleTenantColumns = ModuleTenantColumns{
Id: "id",
CreateBy: "create_by",
UpdateBy: "update_by",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
ModuleKey: "module_key",
TenantId: "tenant_id",
ExpireAt: "expire_at",
AssetId: "asset_id",
AssetSkuId: "asset_sku_id",
TenantModuleType: "tenant_module_type",
CertificationStatus: "certification_status",
}
// NewModuleTenantDao creates and returns a new DAO object for table data access.
func NewModuleTenantDao() *ModuleTenantDao {
return &ModuleTenantDao{
group: "default",
table: "module_tenant",
columns: moduleTenantColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *ModuleTenantDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *ModuleTenantDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *ModuleTenantDao) Columns() ModuleTenantColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *ModuleTenantDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *ModuleTenantDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *ModuleTenantDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,114 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysAuthRuleDao is the data access object for table sys_auth_rule.
type SysAuthRuleDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysAuthRuleColumns // columns contains all the column names of Table for convenient usage.
}
// SysAuthRuleColumns defines and stores column names for table sys_auth_rule.
type SysAuthRuleColumns struct {
Id string //
Pid string // 父ID
Name string // 规则名称
Title string // 规则名称
Icon string // 图标
Condition string // 条件
Remark string // 备注
MenuType string // 类型 0目录 1菜单 2按钮
Weigh string // 权重
IsHide string // 显示状态
Path string // 路由地址
Component string // 组件路径
IsLink string // 是否外链 1是 0否
ModuleType string // 所属模块
ModelId string // 模型ID
IsIframe string // 是否内嵌iframe
IsCached string // 是否缓存
Redirect string // 路由重定向地址
IsAffix string // 是否固定
LinkUrl string // 链接地址
CreatedAt string // 创建日期
UpdatedAt string // 修改日期
}
// sysAuthRuleColumns holds the columns for table sys_auth_rule.
var sysAuthRuleColumns = SysAuthRuleColumns{
Id: "id",
Pid: "pid",
Name: "name",
Title: "title",
Icon: "icon",
Condition: "condition",
Remark: "remark",
MenuType: "menu_type",
Weigh: "weigh",
IsHide: "is_hide",
Path: "path",
Component: "component",
IsLink: "is_link",
ModuleType: "module_type",
ModelId: "model_id",
IsIframe: "is_iframe",
IsCached: "is_cached",
Redirect: "redirect",
IsAffix: "is_affix",
LinkUrl: "link_url",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
}
// NewSysAuthRuleDao creates and returns a new DAO object for table data access.
func NewSysAuthRuleDao() *SysAuthRuleDao {
return &SysAuthRuleDao{
group: "default",
table: "sys_auth_rule",
columns: sysAuthRuleColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysAuthRuleDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysAuthRuleDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysAuthRuleDao) Columns() SysAuthRuleColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysAuthRuleDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysAuthRuleDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysAuthRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,98 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysDeptDao is the data access object for table sys_dept.
type SysDeptDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysDeptColumns // columns contains all the column names of Table for convenient usage.
}
// SysDeptColumns defines and stores column names for table sys_dept.
type SysDeptColumns struct {
DeptId string // 部门id
ParentId string // 父部门id
Ancestors string // 祖级列表
DeptName string // 部门名称
OrderNum string // 显示顺序
Leader string // 负责人
Phone string // 联系电话
Email string // 邮箱
Status string // 部门状态0正常 1停用
CreatedBy string // 创建人
UpdatedBy string // 修改人
CreatedAt string // 创建时间
UpdatedAt string // 修改时间
DeletedAt string // 删除时间
}
// sysDeptColumns holds the columns for table sys_dept.
var sysDeptColumns = SysDeptColumns{
DeptId: "dept_id",
ParentId: "parent_id",
Ancestors: "ancestors",
DeptName: "dept_name",
OrderNum: "order_num",
Leader: "leader",
Phone: "phone",
Email: "email",
Status: "status",
CreatedBy: "created_by",
UpdatedBy: "updated_by",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
}
// NewSysDeptDao creates and returns a new DAO object for table data access.
func NewSysDeptDao() *SysDeptDao {
return &SysDeptDao{
group: "default",
table: "sys_dept",
columns: sysDeptColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysDeptDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysDeptDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysDeptDao) Columns() SysDeptColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysDeptDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysDeptDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,102 @@
// ==========================================================================
// GFast自动生成dao internal操作代码。
// 生成日期2023-01-12 17:43:50
// 生成路径: internal/app/system/dao/internal/sys_job.go
// 生成人gfast
// desc:定时任务
// company:云南奇讯科技有限公司
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysJobDao is the manager for logic model data accessing and custom defined data operations functions management.
type SysJobDao struct {
table string // Table is the underlying table name of the DAO.
group string // Group is the database configuration group name of current DAO.
columns SysJobColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
}
// SysJobColumns defines and stores column names for table sys_job.
type SysJobColumns struct {
JobId string // 任务ID
JobName string // 任务名称
JobParams string // 参数
JobGroup string // 任务组名
InvokeTarget string // 任务方法
CronExpression string // cron执行表达式
MisfirePolicy string // 计划执行策略
Concurrent string // 是否并发执行
Status string // 状态
CreatedBy string // 创建者
UpdatedBy string // 更新者
Remark string // 备注信息
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
}
var sysJobColumns = SysJobColumns{
JobId: "job_id",
JobName: "job_name",
JobParams: "job_params",
JobGroup: "job_group",
InvokeTarget: "invoke_target",
CronExpression: "cron_expression",
MisfirePolicy: "misfire_policy",
Concurrent: "concurrent",
Status: "status",
CreatedBy: "created_by",
UpdatedBy: "updated_by",
Remark: "remark",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
}
// NewSysJobDao creates and returns a new DAO object for table data access.
func NewSysJobDao() *SysJobDao {
return &SysJobDao{
group: "default",
table: "sys_job",
columns: sysJobColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysJobDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysJobDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysJobDao) Columns() SysJobColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysJobDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysJobDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysJobDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,79 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysJobLogDao is the data access object for table sys_job_log.
type SysJobLogDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysJobLogColumns // columns contains all the column names of Table for convenient usage.
}
// SysJobLogColumns defines and stores column names for table sys_job_log.
type SysJobLogColumns struct {
Id string // 主键
TargetName string // 方法名
CreatedAt string // 执行日期
Result string // 执行结果
}
// sysJobLogColumns holds the columns for table sys_job_log.
var sysJobLogColumns = SysJobLogColumns{
Id: "id",
TargetName: "target_name",
CreatedAt: "created_at",
Result: "result",
}
// NewSysJobLogDao creates and returns a new DAO object for table data access.
func NewSysJobLogDao() *SysJobLogDao {
return &SysJobLogDao{
group: "default",
table: "sys_job_log",
columns: sysJobLogColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysJobLogDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysJobLogDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysJobLogDao) Columns() SysJobLogColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysJobLogDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysJobLogDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysJobLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,90 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-08 11:31:48
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysLoginLogDao is the data access object for table sys_login_log.
type SysLoginLogDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysLoginLogColumns // columns contains all the column names of Table for convenient usage.
}
// SysLoginLogColumns defines and stores column names for table sys_login_log.
type SysLoginLogColumns struct {
InfoId string // 访问ID
LoginName string // 登录账号
Ipaddr string // 登录IP地址
LoginLocation string // 登录地点
Browser string // 浏览器类型
Os string // 操作系统
Status string // 登录状态0成功 1失败
Msg string // 提示消息
LoginTime string // 登录时间
Module string // 登录模块
}
// sysLoginLogColumns holds the columns for table sys_login_log.
var sysLoginLogColumns = SysLoginLogColumns{
InfoId: "info_id",
LoginName: "login_name",
Ipaddr: "ipaddr",
LoginLocation: "login_location",
Browser: "browser",
Os: "os",
Status: "status",
Msg: "msg",
LoginTime: "login_time",
Module: "module",
}
// NewSysLoginLogDao creates and returns a new DAO object for table data access.
func NewSysLoginLogDao() *SysLoginLogDao {
return &SysLoginLogDao{
group: "default",
table: "sys_login_log",
columns: sysLoginLogColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysLoginLogDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysLoginLogDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysLoginLogDao) Columns() SysLoginLogColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysLoginLogDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysLoginLogDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysLoginLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,99 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysOperLogDao is the data access object for table sys_oper_log.
type SysOperLogDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysOperLogColumns // columns contains all the column names of Table for convenient usage.
}
// SysOperLogColumns defines and stores column names for table sys_oper_log.
type SysOperLogColumns struct {
OperId string // 日志主键
Title string // 模块标题
BusinessType string // 业务类型0其它 1新增 2修改 3删除
Method string // 方法名称
RequestMethod string // 请求方式
OperatorType string // 操作类别0其它 1后台用户 2手机端用户
OperName string // 操作人员
DeptName string // 部门名称
OperUrl string // 请求URL
OperIp string // 主机地址
OperLocation string // 操作地点
OperParam string // 请求参数
ErrorMsg string // 错误消息
OperTime string // 操作时间
}
// sysOperLogColumns holds the columns for table sys_oper_log.
var sysOperLogColumns = SysOperLogColumns{
OperId: "oper_id",
Title: "title",
BusinessType: "business_type",
Method: "method",
RequestMethod: "request_method",
OperatorType: "operator_type",
OperName: "oper_name",
DeptName: "dept_name",
OperUrl: "oper_url",
OperIp: "oper_ip",
OperLocation: "oper_location",
OperParam: "oper_param",
ErrorMsg: "error_msg",
OperTime: "oper_time",
}
// NewSysOperLogDao creates and returns a new DAO object for table data access.
func NewSysOperLogDao() *SysOperLogDao {
return &SysOperLogDao{
group: "default",
table: "sys_oper_log",
columns: sysOperLogColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysOperLogDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysOperLogDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysOperLogDao) Columns() SysOperLogColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysOperLogDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysOperLogDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysOperLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,92 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-04-07 23:26:21
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysPostDao is the data access object for table sys_post.
type SysPostDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysPostColumns // columns contains all the column names of Table for convenient usage.
}
// SysPostColumns defines and stores column names for table sys_post.
type SysPostColumns struct {
PostId string // 岗位ID
PostCode string // 岗位编码
PostName string // 岗位名称
PostSort string // 显示顺序
Status string // 状态0正常 1停用
Remark string // 备注
CreatedBy string // 创建人
UpdatedBy string // 修改人
CreatedAt string // 创建时间
UpdatedAt string // 修改时间
DeletedAt string // 删除时间
}
// sysPostColumns holds the columns for table sys_post.
var sysPostColumns = SysPostColumns{
PostId: "post_id",
PostCode: "post_code",
PostName: "post_name",
PostSort: "post_sort",
Status: "status",
Remark: "remark",
CreatedBy: "created_by",
UpdatedBy: "updated_by",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
}
// NewSysPostDao creates and returns a new DAO object for table data access.
func NewSysPostDao() *SysPostDao {
return &SysPostDao{
group: "default",
table: "sys_post",
columns: sysPostColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysPostDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysPostDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysPostDao) Columns() SysPostColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysPostDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysPostDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,86 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysRoleDao is the data access object for table sys_role.
type SysRoleDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysRoleColumns // columns contains all the column names of Table for convenient usage.
}
// SysRoleColumns defines and stores column names for table sys_role.
type SysRoleColumns struct {
Id string //
Status string // 状态;0:禁用;1:正常
ListOrder string // 排序
Name string // 角色名称
Remark string // 备注
DataScope string // 数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
}
// sysRoleColumns holds the columns for table sys_role.
var sysRoleColumns = SysRoleColumns{
Id: "id",
Status: "status",
ListOrder: "list_order",
Name: "name",
Remark: "remark",
DataScope: "data_scope",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
}
// NewSysRoleDao creates and returns a new DAO object for table data access.
func NewSysRoleDao() *SysRoleDao {
return &SysRoleDao{
group: "default",
table: "sys_role",
columns: sysRoleColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysRoleDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysRoleDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysRoleDao) Columns() SysRoleColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysRoleDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysRoleDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,75 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysRoleDeptDao is the data access object for table sys_role_dept.
type SysRoleDeptDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysRoleDeptColumns // columns contains all the column names of Table for convenient usage.
}
// SysRoleDeptColumns defines and stores column names for table sys_role_dept.
type SysRoleDeptColumns struct {
RoleId string // 角色ID
DeptId string // 部门ID
}
// sysRoleDeptColumns holds the columns for table sys_role_dept.
var sysRoleDeptColumns = SysRoleDeptColumns{
RoleId: "role_id",
DeptId: "dept_id",
}
// NewSysRoleDeptDao creates and returns a new DAO object for table data access.
func NewSysRoleDeptDao() *SysRoleDeptDao {
return &SysRoleDeptDao{
group: "default",
table: "sys_role_dept",
columns: sysRoleDeptColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysRoleDeptDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysRoleDeptDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysRoleDeptDao) Columns() SysRoleDeptColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysRoleDeptDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysRoleDeptDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysRoleDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,114 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysUserDao is the data access object for table sys_user.
type SysUserDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysUserColumns // columns contains all the column names of Table for convenient usage.
}
// SysUserColumns defines and stores column names for table sys_user.
type SysUserColumns struct {
Id string //
UserName string // 用户名
Mobile string // 中国手机不带国家代码,国际手机号格式为:国家代码-手机号
UserNickname string // 用户昵称
Birthday string // 生日
UserPassword string // 登录密码;cmf_password加密
UserSalt string // 加密盐
UserStatus string // 用户状态;0:禁用,1:正常,2:未验证
UserEmail string // 用户登录邮箱
Sex string // 性别;0:保密,1:男,2:女
Avatar string // 用户头像
DeptId string // 部门id
Remark string // 备注
IsAdmin string // 是否后台管理员 1 是 0 否
Address string // 联系地址
Describe string // 描述信息
LastLoginIp string // 最后登录ip
LastLoginTime string // 最后登录时间
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
DeletedAt string // 删除时间
TenantId string
}
// sysUserColumns holds the columns for table sys_user.
var sysUserColumns = SysUserColumns{
Id: "id",
UserName: "user_name",
Mobile: "mobile",
UserNickname: "user_nickname",
Birthday: "birthday",
UserPassword: "user_password",
UserSalt: "user_salt",
UserStatus: "user_status",
UserEmail: "user_email",
Sex: "sex",
Avatar: "avatar",
DeptId: "dept_id",
Remark: "remark",
IsAdmin: "is_admin",
Address: "address",
Describe: "describe",
LastLoginIp: "last_login_ip",
LastLoginTime: "last_login_time",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
TenantId: "tenant_id",
}
// NewSysUserDao creates and returns a new DAO object for table data access.
func NewSysUserDao() *SysUserDao {
return &SysUserDao{
group: "default",
table: "sys_user",
columns: sysUserColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysUserDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysUserDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysUserDao) Columns() SysUserColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysUserDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysUserDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,87 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysUserOnlineDao is the data access object for table sys_user_online.
type SysUserOnlineDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysUserOnlineColumns // columns contains all the column names of Table for convenient usage.
}
// SysUserOnlineColumns defines and stores column names for table sys_user_online.
type SysUserOnlineColumns struct {
Id string //
Uuid string // 用户标识
Token string // 用户token
CreateTime string // 登录时间
UserName string // 用户名
Ip string // 登录ip
Explorer string // 浏览器
Os string // 操作系统
}
// sysUserOnlineColumns holds the columns for table sys_user_online.
var sysUserOnlineColumns = SysUserOnlineColumns{
Id: "id",
Uuid: "uuid",
Token: "token",
CreateTime: "create_time",
UserName: "user_name",
Ip: "ip",
Explorer: "explorer",
Os: "os",
}
// NewSysUserOnlineDao creates and returns a new DAO object for table data access.
func NewSysUserOnlineDao() *SysUserOnlineDao {
return &SysUserOnlineDao{
group: "default",
table: "sys_user_online",
columns: sysUserOnlineColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysUserOnlineDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysUserOnlineDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysUserOnlineDao) Columns() SysUserOnlineColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysUserOnlineDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysUserOnlineDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysUserOnlineDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,74 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// SysUserPostDao is the data access object for table sys_user_post.
type SysUserPostDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns SysUserPostColumns // columns contains all the column names of Table for convenient usage.
}
// SysUserPostColumns defines and stores column names for table sys_user_post.
type SysUserPostColumns struct {
UserId string // 用户ID
PostId string // 岗位ID
}
// sysUserPostColumns holds the columns for table sys_user_post.
var sysUserPostColumns = SysUserPostColumns{
UserId: "user_id",
PostId: "post_id",
}
// NewSysUserPostDao creates and returns a new DAO object for table data access.
func NewSysUserPostDao() *SysUserPostDao {
return &SysUserPostDao{
group: "default",
table: "sys_user_post",
columns: sysUserPostColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *SysUserPostDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *SysUserPostDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *SysUserPostDao) Columns() SysUserPostColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *SysUserPostDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *SysUserPostDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *SysUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,91 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TenantDao is the data access object for table sys_user.
type TenantDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns TenantColumns // columns contains all the column names of Table for convenient usage.
}
// TenantColumns defines and stores column names for table sys_user.
type TenantColumns struct {
Id string //
CreateBy string // 创建者
UpdateBy string // 更新者
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
TenantName string // 租户名称
TenantType string // 租户类型
CityCode string // 城市编码
BusinessLicense string // 营业执照
TenantSource string // 租户来源
}
// tenantColumns holds the columns for table sys_user.
var tenantColumns = TenantColumns{
Id: "id",
CreateBy: "create_by",
UpdateBy: "update_by",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
TenantName: "tenant_name",
TenantType: "tenant_type",
CityCode: "city_code",
BusinessLicense: "business_license",
TenantSource: "tenant_source",
}
// NewTenantDao creates and returns a new DAO object for table data access.
func NewTenantDao() *TenantDao {
return &TenantDao{
group: "default",
table: "tenant",
columns: tenantColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *TenantDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *TenantDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *TenantDao) Columns() TenantColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *TenantDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *TenantDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *TenantDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,107 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// ToolsGenTableDao is the data access object for table tools_gen_table.
type ToolsGenTableDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns ToolsGenTableColumns // columns contains all the column names of Table for convenient usage.
}
// ToolsGenTableColumns defines and stores column names for table tools_gen_table.
type ToolsGenTableColumns struct {
TableId string // 编号
TableName string // 表名称
TableComment string // 表描述
ClassName string // 实体类名称
TplCategory string // 使用的模板crud单表操作 tree树表操作
PackageName string // 生成包路径
ModuleName string // 生成模块名
BusinessName string // 生成业务名
FunctionName string // 生成功能名
FunctionAuthor string // 生成功能作者
Options string // 其它生成选项
CreateTime string // 创建时间
UpdateTime string // 更新时间
Remark string // 备注
Overwrite string // 是否覆盖原有文件
SortColumn string // 排序字段名
SortType string // 排序方式 (asc顺序 desc倒序)
ShowDetail string // 是否有查看详情功能
}
// toolsGenTableColumns holds the columns for table tools_gen_table.
var toolsGenTableColumns = ToolsGenTableColumns{
TableId: "table_id",
TableName: "table_name",
TableComment: "table_comment",
ClassName: "class_name",
TplCategory: "tpl_category",
PackageName: "package_name",
ModuleName: "module_name",
BusinessName: "business_name",
FunctionName: "function_name",
FunctionAuthor: "function_author",
Options: "options",
CreateTime: "create_time",
UpdateTime: "update_time",
Remark: "remark",
Overwrite: "overwrite",
SortColumn: "sort_column",
SortType: "sort_type",
ShowDetail: "show_detail",
}
// NewToolsGenTableDao creates and returns a new DAO object for table data access.
func NewToolsGenTableDao() *ToolsGenTableDao {
return &ToolsGenTableDao{
group: "default",
table: "tools_gen_table",
columns: toolsGenTableColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *ToolsGenTableDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *ToolsGenTableDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *ToolsGenTableDao) Columns() ToolsGenTableColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *ToolsGenTableDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *ToolsGenTableDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *ToolsGenTableDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,151 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// ToolsGenTableColumnDao is the data access object for table tools_gen_table_column.
type ToolsGenTableColumnDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of current DAO.
columns ToolsGenTableColumnColumns // columns contains all the column names of Table for convenient usage.
}
// ToolsGenTableColumnColumns defines and stores column names for table tools_gen_table_column.
type ToolsGenTableColumnColumns struct {
ColumnId string // 编号
TableId string // 归属表编号
ColumnName string // 列名称
ColumnComment string // 列描述
ColumnType string // 列类型
GoType string // Go类型
TsType string // TS类型
GoField string // Go字段名
HtmlField string // html字段名
IsPk string // 是否主键1是
IsIncrement string // 是否自增1是
IsRequired string // 是否必填1是
IsInsert string // 是否为插入字段1是
IsEdit string // 是否编辑字段1是
IsList string // 是否列表字段1是
IsDetail string // 是否详情字段
IsQuery string // 是否查询字段1是
SortOrderEdit string // 插入编辑显示顺序
SortOrderList string // 列表显示顺序
SortOrderDetail string // 详情显示顺序
SortOrderQuery string // 查询显示顺序
QueryType string // 查询方式(等于、不等于、大于、小于、范围)
HtmlType string // 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
DictType string // 字典类型
LinkTableName string // 关联表名
LinkTableClass string // 关联表类名
LinkTableModuleName string // 关联表模块名
LinkTableBusinessName string // 关联表业务名
LinkTablePackage string // 关联表包名
LinkLabelId string // 关联表键名
LinkLabelName string // 关联表字段值
ColSpan string // 详情页占列数
RowSpan string // 详情页占行数
IsRowStart string // 详情页为行首
MinWidth string // 表格最小宽度
IsFixed string // 是否表格列左固定
IsOverflowTooltip string // 是否过长自动隐藏
IsCascade string // 是否级联查询
ParentColumnName string // 上级字段名
CascadeColumnName string // 级联查询字段
}
// toolsGenTableColumnColumns holds the columns for table tools_gen_table_column.
var toolsGenTableColumnColumns = ToolsGenTableColumnColumns{
ColumnId: "column_id",
TableId: "table_id",
ColumnName: "column_name",
ColumnComment: "column_comment",
ColumnType: "column_type",
GoType: "go_type",
TsType: "ts_type",
GoField: "go_field",
HtmlField: "html_field",
IsPk: "is_pk",
IsIncrement: "is_increment",
IsRequired: "is_required",
IsInsert: "is_insert",
IsEdit: "is_edit",
IsList: "is_list",
IsDetail: "is_detail",
IsQuery: "is_query",
SortOrderEdit: "sort_order_edit",
SortOrderList: "sort_order_list",
SortOrderDetail: "sort_order_detail",
SortOrderQuery: "sort_order_query",
QueryType: "query_type",
HtmlType: "html_type",
DictType: "dict_type",
LinkTableName: "link_table_name",
LinkTableClass: "link_table_class",
LinkTableModuleName: "link_table_module_name",
LinkTableBusinessName: "link_table_business_name",
LinkTablePackage: "link_table_package",
LinkLabelId: "link_label_id",
LinkLabelName: "link_label_name",
ColSpan: "col_span",
RowSpan: "row_span",
IsRowStart: "is_row_start",
MinWidth: "min_width",
IsFixed: "is_fixed",
IsOverflowTooltip: "is_overflow_tooltip",
IsCascade: "is_cascade",
ParentColumnName: "parent_column_name",
CascadeColumnName: "cascade_column_name",
}
// NewToolsGenTableColumnDao creates and returns a new DAO object for table data access.
func NewToolsGenTableColumnDao() *ToolsGenTableColumnDao {
return &ToolsGenTableColumnDao{
group: "default",
table: "tools_gen_table_column",
columns: toolsGenTableColumnColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *ToolsGenTableColumnDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *ToolsGenTableColumnDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *ToolsGenTableColumnDao) Columns() ToolsGenTableColumnColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *ToolsGenTableColumnDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *ToolsGenTableColumnDao) Ctx(ctx context.Context) *gdb.Model {
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
}
// 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.
func (dao *ToolsGenTableColumnDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// moduleTenantDao is the data access object for table module_tenant.
// You can define custom methods on it to extend its functionality as you wish.
type moduleTenantDao struct {
*internal.ModuleTenantDao
}
var (
// ModuleTenant is globally public accessible object for table module_tenant operations.
ModuleTenant = moduleTenantDao{
internal.NewModuleTenantDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysAuthRuleDao is the data access object for table sys_auth_rule.
// You can define custom methods on it to extend its functionality as you wish.
type sysAuthRuleDao struct {
*internal.SysAuthRuleDao
}
var (
// SysAuthRule is globally public accessible object for table sys_auth_rule operations.
SysAuthRule = sysAuthRuleDao{
internal.NewSysAuthRuleDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysDeptDao is internal type for wrapping internal DAO implements.
type internalSysDeptDao = *internal.SysDeptDao
// sysDeptDao is the data access object for table sys_dept.
// You can define custom methods on it to extend its functionality as you wish.
type sysDeptDao struct {
internalSysDeptDao
}
var (
// SysDept is globally public accessible object for table sys_dept operations.
SysDept = sysDeptDao{
internal.NewSysDeptDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成dao操作代码。
// 生成日期2023-01-12 17:43:50
// 生成路径: internal/app/system/dao/sys_job.go
// 生成人gfast
// desc:定时任务
// company:云南奇讯科技有限公司
// ==========================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysJobDao is the manager for logic model data accessing and custom defined data operations functions management.
// You can define custom methods on it to extend its functionality as you wish.
type sysJobDao struct {
*internal.SysJobDao
}
var (
// SysJob is globally public accessible object for table tools_gen_table operations.
SysJob = sysJobDao{
internal.NewSysJobDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysJobLogDao is internal type for wrapping internal DAO implements.
type internalSysJobLogDao = *internal.SysJobLogDao
// sysJobLogDao is the data access object for table sys_job_log.
// You can define custom methods on it to extend its functionality as you wish.
type sysJobLogDao struct {
internalSysJobLogDao
}
var (
// SysJobLog is globally public accessible object for table sys_job_log operations.
SysJobLog = sysJobLogDao{
internal.NewSysJobLogDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysLoginLogDao is the data access object for table sys_login_log.
// You can define custom methods on it to extend its functionality as you wish.
type sysLoginLogDao struct {
*internal.SysLoginLogDao
}
var (
// SysLoginLog is globally public accessible object for table sys_login_log operations.
SysLoginLog = sysLoginLogDao{
internal.NewSysLoginLogDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysOperLogDao is internal type for wrapping internal DAO implements.
type internalSysOperLogDao = *internal.SysOperLogDao
// sysOperLogDao is the data access object for table sys_oper_log.
// You can define custom methods on it to extend its functionality as you wish.
type sysOperLogDao struct {
internalSysOperLogDao
}
var (
// SysOperLog is globally public accessible object for table sys_oper_log operations.
SysOperLog = sysOperLogDao{
internal.NewSysOperLogDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysPostDao is the data access object for table sys_post.
// You can define custom methods on it to extend its functionality as you wish.
type sysPostDao struct {
*internal.SysPostDao
}
var (
// SysPost is globally public accessible object for table sys_post operations.
SysPost = sysPostDao{
internal.NewSysPostDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysRoleDao is the data access object for table sys_role.
// You can define custom methods on it to extend its functionality as you wish.
type sysRoleDao struct {
*internal.SysRoleDao
}
var (
// SysRole is globally public accessible object for table sys_role operations.
SysRole = sysRoleDao{
internal.NewSysRoleDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysRoleDeptDao is internal type for wrapping internal DAO implements.
type internalSysRoleDeptDao = *internal.SysRoleDeptDao
// sysRoleDeptDao is the data access object for table sys_role_dept.
// You can define custom methods on it to extend its functionality as you wish.
type sysRoleDeptDao struct {
internalSysRoleDeptDao
}
var (
// SysRoleDept is globally public accessible object for table sys_role_dept operations.
SysRoleDept = sysRoleDeptDao{
internal.NewSysRoleDeptDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// sysUserDao is the data access object for table sys_user.
// You can define custom methods on it to extend its functionality as you wish.
type sysUserDao struct {
*internal.SysUserDao
}
var (
// SysUser is globally public accessible object for table sys_user operations.
SysUser = sysUserDao{
internal.NewSysUserDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysUserOnlineDao is internal type for wrapping internal DAO implements.
type internalSysUserOnlineDao = *internal.SysUserOnlineDao
// sysUserOnlineDao is the data access object for table sys_user_online.
// You can define custom methods on it to extend its functionality as you wish.
type sysUserOnlineDao struct {
internalSysUserOnlineDao
}
var (
// SysUserOnline is globally public accessible object for table sys_user_online operations.
SysUserOnline = sysUserOnlineDao{
internal.NewSysUserOnlineDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalSysUserPostDao is internal type for wrapping internal DAO implements.
type internalSysUserPostDao = *internal.SysUserPostDao
// sysUserPostDao is the data access object for table sys_user_post.
// You can define custom methods on it to extend its functionality as you wish.
type sysUserPostDao struct {
internalSysUserPostDao
}
var (
// SysUserPost is globally public accessible object for table sys_user_post operations.
SysUserPost = sysUserPostDao{
internal.NewSysUserPostDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,24 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// tenantDao is the data access object for table sys_user.
// You can define custom methods on it to extend its functionality as you wish.
type tenantDao struct {
*internal.TenantDao
}
var (
// TenantDao is globally public accessible object for table sys_user operations.
TenantDao = tenantDao{
internal.NewTenantDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalToolsGenTableDao is internal type for wrapping internal DAO implements.
type internalToolsGenTableDao = *internal.ToolsGenTableDao
// toolsGenTableDao is the data access object for table tools_gen_table.
// You can define custom methods on it to extend its functionality as you wish.
type toolsGenTableDao struct {
internalToolsGenTableDao
}
var (
// ToolsGenTable is globally public accessible object for table tools_gen_table operations.
ToolsGenTable = toolsGenTableDao{
internal.NewToolsGenTableDao(),
}
)
// Fill with you ideas below.

View File

@@ -0,0 +1,27 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/system/dao/internal"
)
// internalToolsGenTableColumnDao is internal type for wrapping internal DAO implements.
type internalToolsGenTableColumnDao = *internal.ToolsGenTableColumnDao
// toolsGenTableColumnDao is the data access object for table tools_gen_table_column.
// You can define custom methods on it to extend its functionality as you wish.
type toolsGenTableColumnDao struct {
internalToolsGenTableColumnDao
}
var (
// ToolsGenTableColumn is globally public accessible object for table tools_gen_table_column operations.
ToolsGenTableColumn = toolsGenTableColumnDao{
internal.NewToolsGenTableColumnDao(),
}
)
// Fill with you ideas below.