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,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysPermissionRevision is the golang structure for table sys_permission_revision.
type SysPermissionRevision struct {
Id int `json:"id" orm:"id" description:""`
Revision int64 `json:"revision" orm:"revision" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
}
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysRoleSyncTask is the golang structure for table sys_role_sync_task.
type SysRoleSyncTask struct {
TaskId string `json:"taskId" orm:"task_id" description:""`
TenantId string `json:"tenantId" orm:"tenant_id" description:""`
SourceRoleId int64 `json:"sourceRoleId" orm:"source_role_id" description:""`
SourceDeptId int64 `json:"sourceDeptId" orm:"source_dept_id" description:""`
ActorId int64 `json:"actorId" orm:"actor_id" description:""`
Status string `json:"status" orm:"status" description:""`
Attempts int `json:"attempts" orm:"attempts" description:""`
NextAttemptAt int64 `json:"nextAttemptAt" orm:"next_attempt_at" description:""`
LeaseUntil int64 `json:"leaseUntil" orm:"lease_until" description:""`
LeaseToken string `json:"leaseToken" orm:"lease_token" description:""`
Payload string `json:"payload" orm:"payload" description:""`
LastError string `json:"lastError" orm:"last_error" description:""`
TotalCount int `json:"totalCount" orm:"total_count" description:""`
SuccessCount int `json:"successCount" orm:"success_count" description:""`
FailedCount int `json:"failedCount" orm:"failed_count" description:""`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
}
+25 -25
View File
@@ -10,29 +10,29 @@ import (
// SysUser is the golang structure for table sys_user.
type SysUser struct {
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"部门ID"`
UserName string `json:"userName" orm:"user_name" description:"用户账号"`
NickName string `json:"nickName" orm:"nick_name" description:"用户昵称"`
UserType string `json:"userType" orm:"user_type" description:"用户类型(sys_user系统用户)"`
Email string `json:"email" orm:"email" description:"用户邮箱"`
Phonenumber string `json:"phonenumber" orm:"phonenumber" description:"手机号码"`
Sex string `json:"sex" orm:"sex" description:"用户性别(0男 1女 2未知)"`
Avatar string `json:"avatar" orm:"avatar" description:"头像地址"`
Salt string `json:"salt" orm:"salt" description:"加密盐"`
Password string `json:"password" orm:"password" description:"密码"`
IsInitPassword int `json:"isInitPassword" orm:"is_init_password" description:"当前密码是否未由用户本人设置(1=初始或管理员临时密码 0=用户已自设)"`
Status string `json:"status" orm:"status" description:"帐号状态(0正常 1停用)"`
LoginIp string `json:"loginIp" orm:"login_ip" description:"最后登录IP"`
LoginDate *gtime.Time `json:"loginDate" orm:"login_date" description:"最后登录时间"`
MfaEnabled int `json:"mfaEnabled" orm:"mfa_enabled" description:"是否开启邮箱MFA 0否 1是"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:"删除人"`
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"部门ID"`
UserName string `json:"userName" orm:"user_name" description:"用户账号"`
NickName string `json:"nickName" orm:"nick_name" description:"用户昵称"`
UserType string `json:"userType" orm:"user_type" description:"用户类型(sys_user系统用户)"`
Email string `json:"email" orm:"email" description:"用户邮箱"`
Phonenumber string `json:"phonenumber" orm:"phonenumber" description:"手机号码"`
Sex string `json:"sex" orm:"sex" description:"用户性别(0男 1女 2未知)"`
Avatar string `json:"avatar" orm:"avatar" description:"头像地址"`
Salt string `json:"salt" orm:"salt" description:"加密盐"`
Password string `json:"password" orm:"password" description:"密码"`
IsInitPassword int `json:"isInitPassword" orm:"is_init_password" description:"当前密码是否未由用户本人设置(1=初始或管理员临时密码 0=用户已自设)"`
Status string `json:"status" orm:"status" description:"帐号状态(0正常 1停用)"`
LoginIp string `json:"loginIp" orm:"login_ip" description:"最后登录IP"`
LoginDate *gtime.Time `json:"loginDate" orm:"login_date" description:"最后登录时间"`
MfaEnabled int `json:"mfaEnabled" orm:"mfa_enabled" description:"是否开启邮箱MFA 0否 1是"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" description:"删除人"`
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
}
@@ -0,0 +1,42 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// TExportTask is the golang structure for table t_export_task.
type TExportTask struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
TaskNo string `json:"taskNo" orm:"task_no" description:"任务编号(=执行日志批次编号=文件名主体)"`
BizKey string `json:"bizKey" orm:"biz_key" description:"业务标识"`
BizName string `json:"bizName" orm:"biz_name" description:"业务名称"`
PermCode string `json:"permCode" orm:"perm_code" description:"导出权限码快照,K1用"`
QueryParams *gjson.Json `json:"queryParams" orm:"query_params" description:"筛选条件快照"`
IdentitySnapshot *gjson.Json `json:"identitySnapshot" orm:"identity_snapshot" description:"提交时用户身份与角色范围快照"`
Status int `json:"status" orm:"status" description:"状态 0排队 2生成中 1已完成 3失败"`
TotalCount int `json:"totalCount" orm:"total_count" description:"导出总行数"`
OssId int64 `json:"ossId" orm:"oss_id" description:"OSS文件ID"`
FileName string `json:"fileName" orm:"file_name" description:"文件名"`
FileSize int64 `json:"fileSize" orm:"file_size" description:"文件大小(字节)"`
FileMd5 string `json:"fileMd5" orm:"file_md5" description:"文件MD5"`
DownloadCount int `json:"downloadCount" orm:"download_count" description:"下载次数"`
LastDownloadTime *gtime.Time `json:"lastDownloadTime" orm:"last_download_time" description:"最后下载时间"`
ErrorMessage string `json:"errorMessage" orm:"error_message" description:"失败原因"`
OwnerUserId int64 `json:"ownerUserId" orm:"owner_user_id" description:"发起用户ID,K2用"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"机构ID"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门ID"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者ID"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"开始生成时间"`
FinishTime *gtime.Time `json:"finishTime" orm:"finish_time" description:"完成/失败时间"`
ExpireTime *gtime.Time `json:"expireTime" orm:"expire_time" description:"文件过期时间"`
DeletedTime *gtime.Time `json:"deletedTime" orm:"deleted_time" description:"文件清理时间"`
DeleteReason string `json:"deleteReason" orm:"delete_reason" description:"文件清理原因 user/expired"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}