sync: 同步 v1.0.4 并脱敏配置与镜像

This commit is contained in:
MiFaZhan
2026-10-29 14:36:49 +08:00
parent 743e8e6e6e
commit 2206a393f7
516 changed files with 18119 additions and 2253 deletions
@@ -0,0 +1,83 @@
// ==========================================================================
// Code generated and maintained 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"
)
// SysPermissionRevisionDao is the data access object for the table sys_permission_revision.
type SysPermissionRevisionDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of the current DAO.
columns SysPermissionRevisionColumns // columns contains all the column names of Table for convenient usage.
handlers []gdb.ModelHandler // handlers for customized model modification.
}
// SysPermissionRevisionColumns defines and stores column names for the table sys_permission_revision.
type SysPermissionRevisionColumns struct {
Id string //
Revision string //
UpdatedAt string //
}
// sysPermissionRevisionColumns holds the columns for the table sys_permission_revision.
var sysPermissionRevisionColumns = SysPermissionRevisionColumns{
Id: "id",
Revision: "revision",
UpdatedAt: "updated_at",
}
// NewSysPermissionRevisionDao creates and returns a new DAO object for table data access.
func NewSysPermissionRevisionDao(handlers ...gdb.ModelHandler) *SysPermissionRevisionDao {
return &SysPermissionRevisionDao{
group: "default",
table: "sys_permission_revision",
columns: sysPermissionRevisionColumns,
handlers: handlers,
}
}
// DB retrieves and returns the underlying raw database management object of the current DAO.
func (dao *SysPermissionRevisionDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of the current DAO.
func (dao *SysPermissionRevisionDao) Table() string {
return dao.table
}
// Columns returns all column names of the current DAO.
func (dao *SysPermissionRevisionDao) Columns() SysPermissionRevisionColumns {
return dao.columns
}
// Group returns the database configuration group name of the current DAO.
func (dao *SysPermissionRevisionDao) Group() string {
return dao.group
}
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
func (dao *SysPermissionRevisionDao) Ctx(ctx context.Context) *gdb.Model {
model := dao.DB().Model(dao.table)
for _, handler := range dao.handlers {
model = handler(model)
}
return model.Safe().Ctx(ctx)
}
// Transaction wraps the transaction logic using function f.
// It rolls back the transaction and returns the error if function f returns a non-nil error.
// It commits the transaction and returns nil if function f returns nil.
//
// Note: Do not commit or roll back the transaction in function f,
// as it is automatically handled by this function.
func (dao *SysPermissionRevisionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}
@@ -0,0 +1,111 @@
// ==========================================================================
// Code generated and maintained 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"
)
// SysRoleSyncTaskDao is the data access object for the table sys_role_sync_task.
type SysRoleSyncTaskDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of the current DAO.
columns SysRoleSyncTaskColumns // columns contains all the column names of Table for convenient usage.
handlers []gdb.ModelHandler // handlers for customized model modification.
}
// SysRoleSyncTaskColumns defines and stores column names for the table sys_role_sync_task.
type SysRoleSyncTaskColumns struct {
TaskId string //
TenantId string //
SourceRoleId string //
SourceDeptId string //
ActorId string //
Status string //
Attempts string //
NextAttemptAt string //
LeaseUntil string //
LeaseToken string //
Payload string //
LastError string //
TotalCount string //
SuccessCount string //
FailedCount string //
CreatedAt string //
UpdatedAt string //
}
// sysRoleSyncTaskColumns holds the columns for the table sys_role_sync_task.
var sysRoleSyncTaskColumns = SysRoleSyncTaskColumns{
TaskId: "task_id",
TenantId: "tenant_id",
SourceRoleId: "source_role_id",
SourceDeptId: "source_dept_id",
ActorId: "actor_id",
Status: "status",
Attempts: "attempts",
NextAttemptAt: "next_attempt_at",
LeaseUntil: "lease_until",
LeaseToken: "lease_token",
Payload: "payload",
LastError: "last_error",
TotalCount: "total_count",
SuccessCount: "success_count",
FailedCount: "failed_count",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
}
// NewSysRoleSyncTaskDao creates and returns a new DAO object for table data access.
func NewSysRoleSyncTaskDao(handlers ...gdb.ModelHandler) *SysRoleSyncTaskDao {
return &SysRoleSyncTaskDao{
group: "default",
table: "sys_role_sync_task",
columns: sysRoleSyncTaskColumns,
handlers: handlers,
}
}
// DB retrieves and returns the underlying raw database management object of the current DAO.
func (dao *SysRoleSyncTaskDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of the current DAO.
func (dao *SysRoleSyncTaskDao) Table() string {
return dao.table
}
// Columns returns all column names of the current DAO.
func (dao *SysRoleSyncTaskDao) Columns() SysRoleSyncTaskColumns {
return dao.columns
}
// Group returns the database configuration group name of the current DAO.
func (dao *SysRoleSyncTaskDao) Group() string {
return dao.group
}
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
func (dao *SysRoleSyncTaskDao) Ctx(ctx context.Context) *gdb.Model {
model := dao.DB().Model(dao.table)
for _, handler := range dao.handlers {
model = handler(model)
}
return model.Safe().Ctx(ctx)
}
// Transaction wraps the transaction logic using function f.
// It rolls back the transaction and returns the error if function f returns a non-nil error.
// It commits the transaction and returns nil if function f returns nil.
//
// Note: Do not commit or roll back the transaction in function f,
// as it is automatically handled by this function.
func (dao *SysRoleSyncTaskDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}
+48 -48
View File
@@ -21,60 +21,60 @@ type SysUserDao struct {
// SysUserColumns defines and stores column names for the table sys_user.
type SysUserColumns struct {
UserId string // 用户ID
TenantId string // 租户编号
DeptId string // 部门ID
UserName string // 用户账号
NickName string // 用户昵称
UserType string // 用户类型(sys_user系统用户)
Email string // 用户邮箱
Phonenumber string // 手机号码
Sex string // 用户性别(0男 1女 2未知)
Avatar string // 头像地址
Salt string // 加密盐
Password string // 密码
UserId string // 用户ID
TenantId string // 租户编号
DeptId string // 部门ID
UserName string // 用户账号
NickName string // 用户昵称
UserType string // 用户类型(sys_user系统用户)
Email string // 用户邮箱
Phonenumber string // 手机号码
Sex string // 用户性别(0男 1女 2未知)
Avatar string // 头像地址
Salt string // 加密盐
Password string // 密码
IsInitPassword string // 当前密码是否未由用户本人设置(1=初始或管理员临时密码 0=用户已自设)
Status string // 帐号状态(0正常 1停用)
LoginIp string // 最后登录IP
LoginDate string // 最后登录时间
MfaEnabled string // 是否开启邮箱MFA 0否 1是
CreatedDept string // 创建部门
CreatedBy string // 创建者
CreatedAt string // 创建时间
UpdatedBy string // 更新者
UpdatedAt string // 更新时间
DeletedBy string // 删除人
DeletedAt string // 删除时间
Remark string // 备注
Status string // 帐号状态(0正常 1停用)
LoginIp string // 最后登录IP
LoginDate string // 最后登录时间
MfaEnabled string // 是否开启邮箱MFA 0否 1是
CreatedDept string // 创建部门
CreatedBy string // 创建者
CreatedAt string // 创建时间
UpdatedBy string // 更新者
UpdatedAt string // 更新时间
DeletedBy string // 删除人
DeletedAt string // 删除时间
Remark string // 备注
}
// sysUserColumns holds the columns for the table sys_user.
var sysUserColumns = SysUserColumns{
UserId: "user_id",
TenantId: "tenant_id",
DeptId: "dept_id",
UserName: "user_name",
NickName: "nick_name",
UserType: "user_type",
Email: "email",
Phonenumber: "phonenumber",
Sex: "sex",
Avatar: "avatar",
Salt: "salt",
Password: "password",
UserId: "user_id",
TenantId: "tenant_id",
DeptId: "dept_id",
UserName: "user_name",
NickName: "nick_name",
UserType: "user_type",
Email: "email",
Phonenumber: "phonenumber",
Sex: "sex",
Avatar: "avatar",
Salt: "salt",
Password: "password",
IsInitPassword: "is_init_password",
Status: "status",
LoginIp: "login_ip",
LoginDate: "login_date",
MfaEnabled: "mfa_enabled",
CreatedDept: "created_dept",
CreatedBy: "created_by",
CreatedAt: "created_at",
UpdatedBy: "updated_by",
UpdatedAt: "updated_at",
DeletedBy: "deleted_by",
DeletedAt: "deleted_at",
Remark: "remark",
Status: "status",
LoginIp: "login_ip",
LoginDate: "login_date",
MfaEnabled: "mfa_enabled",
CreatedDept: "created_dept",
CreatedBy: "created_by",
CreatedAt: "created_at",
UpdatedBy: "updated_by",
UpdatedAt: "updated_at",
DeletedBy: "deleted_by",
DeletedAt: "deleted_at",
Remark: "remark",
}
// NewSysUserDao creates and returns a new DAO object for table data access.
@@ -0,0 +1,128 @@
// ==========================================================================
// Code generated and maintained 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"
)
// TExportTaskDao is the data access object for the table t_export_task.
type TExportTaskDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of the current DAO.
columns TExportTaskColumns // columns contains all the column names of Table for convenient usage.
handlers []gdb.ModelHandler // handlers for customized model modification.
}
// TExportTaskColumns defines and stores column names for the table t_export_task.
type TExportTaskColumns struct {
Id string // 主键ID
TaskNo string // 任务编号
BizKey string // 业务标识
BizName string // 业务名称
PermCode string // 导出权限码快照
QueryParams string // 筛选条件快照
IdentitySnapshot string // 提交时用户身份与角色范围快照
Status string // 状态
TotalCount string // 导出总行数
OssId string // OSS文件ID
FileName string // 文件名
FileSize string // 文件大小
FileMd5 string // 文件MD5
DownloadCount string // 下载次数
LastDownloadTime string // 最后下载时间
ErrorMessage string // 失败原因
OwnerUserId string // 发起用户ID
DeptId string // 机构ID
TenantId string // 租户ID
CreatedDept string // 创建部门ID
CreatedBy string // 创建者ID
CreatedAt string // 创建时间
StartTime string // 开始生成时间
FinishTime string // 完成/失败时间
ExpireTime string // 文件过期时间
DeletedTime string // 文件清理时间
DeleteReason string // 清理原因
UpdatedAt string // 更新时间
}
// tExportTaskColumns holds the columns for the table t_export_task.
var tExportTaskColumns = TExportTaskColumns{
Id: "id",
TaskNo: "task_no",
BizKey: "biz_key",
BizName: "biz_name",
PermCode: "perm_code",
QueryParams: "query_params",
IdentitySnapshot: "identity_snapshot",
Status: "status",
TotalCount: "total_count",
OssId: "oss_id",
FileName: "file_name",
FileSize: "file_size",
FileMd5: "file_md5",
DownloadCount: "download_count",
LastDownloadTime: "last_download_time",
ErrorMessage: "error_message",
OwnerUserId: "owner_user_id",
DeptId: "dept_id",
TenantId: "tenant_id",
CreatedDept: "created_dept",
CreatedBy: "created_by",
CreatedAt: "created_at",
StartTime: "start_time",
FinishTime: "finish_time",
ExpireTime: "expire_time",
DeletedTime: "deleted_time",
DeleteReason: "delete_reason",
UpdatedAt: "updated_at",
}
// NewTExportTaskDao creates and returns a new DAO object for table data access.
func NewTExportTaskDao(handlers ...gdb.ModelHandler) *TExportTaskDao {
return &TExportTaskDao{
group: "default",
table: "t_export_task",
columns: tExportTaskColumns,
handlers: handlers,
}
}
// DB retrieves and returns the underlying raw database management object of the current DAO.
func (dao *TExportTaskDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of the current DAO.
func (dao *TExportTaskDao) Table() string {
return dao.table
}
// Columns returns all column names of the current DAO.
func (dao *TExportTaskDao) Columns() TExportTaskColumns {
return dao.columns
}
// Group returns the database configuration group name of the current DAO.
func (dao *TExportTaskDao) Group() string {
return dao.group
}
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
func (dao *TExportTaskDao) Ctx(ctx context.Context) *gdb.Model {
model := dao.DB().Model(dao.table)
for _, handler := range dao.handlers {
model = handler(model)
}
return model.Safe().Ctx(ctx)
}
// Transaction wraps the transaction logic using function f.
func (dao *TExportTaskDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}
@@ -0,0 +1,22 @@
// =================================================================================
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
// =================================================================================
package dao
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/dao/internal"
)
// sysPermissionRevisionDao is the data access object for the table sys_permission_revision.
// You can define custom methods on it to extend its functionality as needed.
type sysPermissionRevisionDao struct {
*internal.SysPermissionRevisionDao
}
var (
// SysPermissionRevision is a globally accessible object for table sys_permission_revision operations.
SysPermissionRevision = sysPermissionRevisionDao{internal.NewSysPermissionRevisionDao()}
)
// Add your custom methods and functionality below.
+22
View File
@@ -0,0 +1,22 @@
// =================================================================================
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
// =================================================================================
package dao
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/dao/internal"
)
// sysRoleSyncTaskDao is the data access object for the table sys_role_sync_task.
// You can define custom methods on it to extend its functionality as needed.
type sysRoleSyncTaskDao struct {
*internal.SysRoleSyncTaskDao
}
var (
// SysRoleSyncTask is a globally accessible object for table sys_role_sync_task operations.
SysRoleSyncTask = sysRoleSyncTaskDao{internal.NewSysRoleSyncTaskDao()}
)
// Add your custom methods and functionality below.
+21
View File
@@ -0,0 +1,21 @@
// =================================================================================
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
// =================================================================================
package dao
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/dao/internal"
)
// tExportTaskDao is the data access object for the table t_export_task.
type tExportTaskDao struct {
*internal.TExportTaskDao
}
var (
// TExportTask is a globally accessible object for table t_export_task operations.
TExportTask = tExportTaskDao{internal.NewTExportTaskDao()}
)
// Add your custom methods and functionality below.