chore: 并入 iotlcm-worker-svr 历史到 worker-svr/(原提交 96f0f4e)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:03 +08:00
422 changed files with 80993 additions and 0 deletions
@@ -0,0 +1,30 @@
// =================================================================================
// 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"
)
// BatchDetail is the golang structure for table batch_detail.
type BatchDetail struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
BatchNo string `json:"batchNo" orm:"batch_no" description:"批次编号"`
BatchType int `json:"batchType" orm:"batch_type" description:"批次类型 枚举(与主表一致)"`
DetailStatus int `json:"detailStatus" orm:"detail_status" description:"明细异步处理状态 0-待处理 1-处理中 2-成功 3-失败"`
BlankOutStatus int `json:"blankOutStatus" orm:"blank_out_status" description:"作废状态 0-是 1-否"`
RowNo int `json:"rowNo" orm:"row_no" description:"行号"`
ItemId string `json:"itemId" orm:"item_id" description:"项ID:卡ICCID/设备编码"`
ErrorCode string `json:"errorCode" orm:"error_code" description:"异常编码"`
ErrorReason string `json:"errorReason" orm:"error_reason" description:"异常原因"`
Snapshot *gjson.Json `json:"snapshot" orm:"snapshot" description:"信息快照"`
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:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者ID"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,45 @@
// =================================================================================
// 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"
)
// BatchMain is the golang structure for table batch_main.
type BatchMain struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
BatchNo string `json:"batchNo" orm:"batch_no" description:"批次编号"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"订单编号"`
BatchType int `json:"batchType" orm:"batch_type" description:"批次类型 枚举"`
BatchStatus int `json:"batchStatus" orm:"batch_status" description:"批次状态 枚举"`
BatchAsyncStatus int `json:"batchAsyncStatus" orm:"batch_async_status" description:"异步处理状态"`
SourceType int `json:"sourceType" orm:"source_type" description:"来源方式 枚举"`
SourceBatchNo string `json:"sourceBatchNo" orm:"source_batch_no" description:"来源批次编号"`
SourceOssId int64 `json:"sourceOssId" orm:"source_oss_id" description:"源文件OSS ID"`
ResultOssId int64 `json:"resultOssId" orm:"result_oss_id" description:"结果文件OSS ID"`
IsCrossDept int `json:"isCrossDept" orm:"is_cross_dept" description:"是否跨级操作机构"`
TargetDeptId int64 `json:"targetDeptId" orm:"target_dept_id" description:"目标机构编号"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"机构编号"`
TotalCount int `json:"totalCount" orm:"total_count" description:"总数量"`
ValidCount int `json:"validCount" orm:"valid_count" description:"有效数量"`
SuccessCount int `json:"successCount" orm:"success_count" description:"成功数量"`
FailCount int `json:"failCount" orm:"fail_count" description:"失败数量"`
RunResult int `json:"runResult" orm:"run_result" description:"运行结果"`
FailReason string `json:"failReason" orm:"fail_reason" description:"失败原因"`
BatchInfo *gjson.Json `json:"batchInfo" orm:"batch_info" description:"批次信息:入库/出库展示字段"`
Remark *gjson.Json `json:"remark" orm:"remark" description:"备注扩展字段"`
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"开始时间"`
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"结束时间"`
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:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者ID"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
SourceChannel string `json:"sourceChannel" orm:"source_channel" description:"发起渠道:console/mini_program/api/system/legacy"`
ExecutionMode uint `json:"executionMode" orm:"execution_mode" description:"操作规模:0未知1单卡2批量"`
}
@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysConfig is the golang structure for table sys_config.
type SysConfig struct {
ConfigId int64 `json:"configId" orm:"config_id" ` //
TenantId string `json:"tenantId" orm:"tenant_id" ` //
ConfigName string `json:"configName" orm:"config_name" ` //
ConfigKey string `json:"configKey" orm:"config_key" ` //
ConfigValue string `json:"configValue" orm:"config_value" ` //
ConfigType string `json:"configType" orm:"config_type" ` //
CreatedDept int64 `json:"createdDept" orm:"created_dept" ` //
CreatedBy int64 `json:"createdBy" orm:"created_by" ` //
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" ` //
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" ` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" ` //
Remark string `json:"remark" orm:"remark" ` //
}
@@ -0,0 +1,37 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysDept is the golang structure for table sys_dept.
type SysDept struct {
DeptId int64 `json:"deptId" orm:"dept_id" description:"部门id"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
ParentId int64 `json:"parentId" orm:"parent_id" description:"父部门id"`
Ancestors string `json:"ancestors" orm:"ancestors" description:"祖级列表"`
DeptKey string `json:"deptKey" orm:"dept_key" description:"机构编号"`
DeptName string `json:"deptName" orm:"dept_name" description:"部门名称"`
DeptType int `json:"deptType" orm:"dept_type" description:"部门类型(0:部门 1:公司)"`
DeptCategory string `json:"deptCategory" orm:"dept_category" description:"部门类别编码"`
OrderNum int `json:"orderNum" orm:"order_num" description:"显示顺序"`
Leader int64 `json:"leader" orm:"leader" description:"负责人"`
Phone string `json:"phone" orm:"phone" description:"联系电话"`
Email string `json:"email" orm:"email" description:"邮箱"`
Status string `json:"status" orm:"status" description:"部门状态(0正常 1停用)"`
CreditCode string `json:"creditCode" orm:"credit_code" description:"统一社会信用代码"`
AreaCode string `json:"areaCode" orm:"area_code" description:"行政区域代码"`
Address string `json:"address" orm:"address" description:"地址"`
DeptRole int64 `json:"deptRole" orm:"dept_role" description:"机构默认角色ID"`
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:"删除时间"`
}
@@ -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"
)
// SysOss is the golang structure for table sys_oss.
type SysOss struct {
OssId int64 `json:"ossId" orm:"oss_id" description:"对象存储主键"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
FileName string `json:"fileName" orm:"file_name" description:"文件名"`
OriginalName string `json:"originalName" orm:"original_name" description:"原名"`
FileSuffix string `json:"fileSuffix" orm:"file_suffix" description:"文件后缀名"`
Path string `json:"path" orm:"path" description:"存储路径"`
Url string `json:"url" orm:"url" description:"URL地址"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
Service string `json:"service" orm:"service" description:"服务商"`
Md5 string `json:"md5" orm:"md5" description:"文件MD5"`
FileSize int `json:"fileSize" orm:"file_size" description:"文件大小"`
FileCrc16 int `json:"fileCrc16" orm:"file_crc16" description:"文件Crc16"`
FileSum int `json:"fileSum" orm:"file_sum" description:"文件校验和"`
}
@@ -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" ` //
Revision int64 `json:"revision" orm:"revision" ` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" ` //
}
@@ -0,0 +1,34 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysRole is the golang structure for table sys_role.
type SysRole struct {
RoleId int64 `json:"roleId" orm:"role_id" ` //
TenantId string `json:"tenantId" orm:"tenant_id" ` //
DeptId int64 `json:"deptId" orm:"dept_id" ` //
RoleName string `json:"roleName" orm:"role_name" ` //
RoleKey string `json:"roleKey" orm:"role_key" ` //
RoleSort int64 `json:"roleSort" orm:"role_sort" ` //
DataScope string `json:"dataScope" orm:"data_scope" ` //
MenuCheckStrictly int64 `json:"menuCheckStrictly" orm:"menu_check_strictly" ` //
DeptCheckStrictly int64 `json:"deptCheckStrictly" orm:"dept_check_strictly" ` //
Status string `json:"status" orm:"status" ` //
IsPass int64 `json:"isPass" orm:"is_pass" ` //
SourceRoleId int64 `json:"sourceRoleId" orm:"source_role_id" ` //
SourceDeptId int64 `json:"sourceDeptId" orm:"source_dept_id" ` //
CreatedDept int64 `json:"createdDept" orm:"created_dept" ` //
CreatedBy int64 `json:"createdBy" orm:"created_by" ` //
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" ` //
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" ` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" ` //
DeletedBy int64 `json:"deletedBy" orm:"deleted_by" ` //
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" ` //
Remark string `json:"remark" orm:"remark" ` //
}
@@ -0,0 +1,12 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SysRoleDept is the golang structure for table sys_role_dept.
type SysRoleDept struct {
TenantId string `json:"tenantId" orm:"tenant_id" ` //
RoleId int64 `json:"roleId" orm:"role_id" ` //
DeptId int64 `json:"deptId" orm:"dept_id" ` //
}
@@ -0,0 +1,13 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SysRoleMenu is the golang structure for table sys_role_menu.
type SysRoleMenu struct {
TenantId string `json:"tenantId" orm:"tenant_id" ` //
RoleId int64 `json:"roleId" orm:"role_id" ` //
MenuId int64 `json:"menuId" orm:"menu_id" ` //
DataScope string `json:"dataScope" orm:"data_scope" ` //
}
@@ -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" ` //
TenantId string `json:"tenantId" orm:"tenant_id" ` //
SourceRoleId int64 `json:"sourceRoleId" orm:"source_role_id" ` //
SourceDeptId int64 `json:"sourceDeptId" orm:"source_dept_id" ` //
ActorId int64 `json:"actorId" orm:"actor_id" ` //
Status string `json:"status" orm:"status" ` //
Attempts int `json:"attempts" orm:"attempts" ` //
NextAttemptAt int64 `json:"nextAttemptAt" orm:"next_attempt_at" ` //
LeaseUntil int64 `json:"leaseUntil" orm:"lease_until" ` //
LeaseToken string `json:"leaseToken" orm:"lease_token" ` //
Payload string `json:"payload" orm:"payload" ` //
LastError string `json:"lastError" orm:"last_error" ` //
TotalCount int `json:"totalCount" orm:"total_count" ` //
SuccessCount int `json:"successCount" orm:"success_count" ` //
FailedCount int `json:"failedCount" orm:"failed_count" ` //
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" ` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" ` //
}
@@ -0,0 +1,12 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SysUserRole is the golang structure for table sys_user_role.
type SysUserRole struct {
TenantId string `json:"tenantId" orm:"tenant_id" ` //
UserId int64 `json:"userId" orm:"user_id" ` //
RoleId int64 `json:"roleId" orm:"role_id" ` //
}
@@ -0,0 +1,29 @@
// =================================================================================
// 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"
)
// TMessageLog is the golang structure for table t_message_log.
type TMessageLog struct {
MessageLogId uint64 `json:"messageLogId" orm:"message_log_id" description:"主键ID"`
MessageType uint `json:"messageType" orm:"message_type" description:"消息类型"`
SendUserType uint `json:"sendUserType" orm:"send_user_type" description:"发送用户类型"`
UserIds *gjson.Json `json:"userIds" orm:"user_ids" description:"接收用户ID集合(JSON数组)"`
MessageTitle string `json:"messageTitle" orm:"message_title" description:"消息标题"`
MessageContent string `json:"messageContent" orm:"message_content" description:"消息内容"`
MessageLink string `json:"messageLink" orm:"message_link" description:"跳转链接地址"`
SendTime *gtime.Time `json:"sendTime" orm:"send_time" description:"发送时间"`
IsRecall uint `json:"isRecall" orm:"is_recall" description:"是否撤回"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}
@@ -0,0 +1,46 @@
// =================================================================================
// 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"
)
// TResourceBatchDownload is the golang structure for table t_resource_batch_download.
type TResourceBatchDownload struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
BatchNo string `json:"batchNo" orm:"batch_no" description:"批次编号(全局唯一)"`
TaskName string `json:"taskName" orm:"task_name" description:"任务名称"`
ResourceType int `json:"resourceType" orm:"resource_type" description:"资源类型 枚举"`
ExportScene int `json:"exportScene" orm:"export_scene" description:"导出场景 枚举"`
QueryParams *gjson.Json `json:"queryParams" orm:"query_params" description:"导出查询条件快照"`
TotalCount int `json:"totalCount" orm:"total_count" description:"预计导出总条数"`
SuccessCount int `json:"successCount" orm:"success_count" description:"已成功导出条数"`
FailCount int `json:"failCount" orm:"fail_count" description:"失败条数"`
DownloadStatus int `json:"downloadStatus" orm:"download_status" description:"下载状态 枚举"`
OssId int64 `json:"ossId" orm:"oss_id" description:"OSS文件ID"`
FileName string `json:"fileName" orm:"file_name" description:"导出文件名"`
FileExt string `json:"fileExt" orm:"file_ext" description:"文件扩展名"`
FileUrl string `json:"fileUrl" orm:"file_url" description:"文件访问地址"`
FilePath string `json:"filePath" orm:"file_path" 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:"最后下载时间"`
MaxDownloadCount int `json:"maxDownloadCount" orm:"max_download_count" description:"最大下载次数限制"`
ErrorMessage string `json:"errorMessage" orm:"error_message" description:"失败原因"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"所属机构ID"`
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:"文件过期时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
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:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者ID"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,70 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TSimCardCancellation is the golang structure for table t_sim_card_cancellation.
type TSimCardCancellation struct {
Id int64 `json:"id" orm:"id" ` // 主键ID
Iccid string `json:"iccid" orm:"iccid" ` // ICCID
Msisdn string `json:"msisdn" orm:"msisdn" ` // MSISDN/卡号
Imsi string `json:"imsi" orm:"imsi" ` // IMSI
Imei string `json:"imei" orm:"imei" ` // IMEI
RegionCode string `json:"regionCode" orm:"region_code" ` // 归属地
DeptId int64 `json:"deptId" orm:"dept_id" ` // 渠道客户ID
CurrentPackageCode string `json:"currentPackageCode" orm:"current_package_code" ` // 当前套餐编号
PackageStatus int `json:"packageStatus" orm:"package_status" ` // 套餐状态:0 无套餐,1待生效,2生效中,3已过期
AccessType int `json:"accessType" orm:"access_type" ` // 接入方式:ipv4、ipv6、ipv4_ipv6
BossCardStatus int `json:"bossCardStatus" orm:"boss_card_status" ` // 运营商卡状态 枚举
CancelBatchNo string `json:"cancelBatchNo" orm:"cancel_batch_no" ` // 系统销户批次号
CancelledAt *gtime.Time `json:"cancelledAt" orm:"cancelled_at" ` // 系统销户完成时间
CardType int `json:"cardType" orm:"card_type" ` // 卡类型 枚举
BossOpenAt *gtime.Time `json:"bossOpenAt" orm:"boss_open_at" ` // 运营商开户日期
BossActivateAt *gtime.Time `json:"bossActivateAt" orm:"boss_activate_at" ` // 运营商激活日期
IsBossActivateEnabled int `json:"isBossActivateEnabled" orm:"is_boss_activate_enabled" ` // 是否按运营商激活减去赠送时长方:1是,0否
InboundBatchNo string `json:"inboundBatchNo" orm:"inbound_batch_no" ` // 入库批次
OutboundBatchNo string `json:"outboundBatchNo" orm:"outbound_batch_no" ` // 出库批次
AllocationBatchNo string `json:"allocationBatchNo" orm:"allocation_batch_no" ` // 划拨批次
IsFlowPool int `json:"isFlowPool" orm:"is_flow_pool" ` // 是否为池卡:1是,0否
FlowPoolCode string `json:"flowPoolCode" orm:"flow_pool_code" ` // 流量池编号
FlowPkgBeginAt *gtime.Time `json:"flowPkgBeginAt" orm:"flow_pkg_begin_at" ` // 当前套餐生效时间
FlowPkgPresentAt *gtime.Time `json:"flowPkgPresentAt" orm:"flow_pkg_present_at" ` // 套餐赠送结束时间
FlowPkgRealPresentAt *gtime.Time `json:"flowPkgRealPresentAt" orm:"flow_pkg_real_present_at" ` // 实际赠送结束时间
FlowPkgEndAt *gtime.Time `json:"flowPkgEndAt" orm:"flow_pkg_end_at" ` // 当前套餐预计到期时间
DataServiceStatus int `json:"dataServiceStatus" orm:"data_service_status" ` // 数据服务状态:0启用,1停用
PackageTotalFlowMb float64 `json:"packageTotalFlowMb" orm:"package_total_flow_mb" ` // 套餐总流量MB
UsedFlowMb float64 `json:"usedFlowMb" orm:"used_flow_mb" ` // 已用流量MB
TrafficCutoffStatus int `json:"trafficCutoffStatus" orm:"traffic_cutoff_status" ` // 达量断网配置状态:0未配置,1已开启,2已关闭
TrafficCutoffThreshold float64 `json:"trafficCutoffThreshold" orm:"traffic_cutoff_threshold" ` // 达量断网阈值
SmsServiceStatus int `json:"smsServiceStatus" orm:"sms_service_status" ` // 短信服务状态:0启用,1停用
PackageTotalSms int `json:"packageTotalSms" orm:"package_total_sms" ` // 套餐短信总条数
UsedSms int `json:"usedSms" orm:"used_sms" ` // 已用短信条数
VoiceServiceStatus int `json:"voiceServiceStatus" orm:"voice_service_status" ` // 语音服务状态:0启用,1停用
PackageTotalVoice int `json:"packageTotalVoice" orm:"package_total_voice" ` // 套餐语音总分钟数
UsedVoice int `json:"usedVoice" orm:"used_voice" ` // 已用语音分钟数
RoamServiceStatus int `json:"roamServiceStatus" orm:"roam_service_status" ` // 国漫服务状态:0启用,1停用
PackageTotalRoamFlowMb float64 `json:"packageTotalRoamFlowMb" orm:"package_total_roam_flow_mb" ` // 套餐国际流量MB
UsedRoamFlowMb float64 `json:"usedRoamFlowMb" orm:"used_roam_flow_mb" ` // 已用国际流量MB
StatusSyncTime *gtime.Time `json:"statusSyncTime" orm:"status_sync_time" ` // 状态最后一次同步时间
FlowSyncTime *gtime.Time `json:"flowSyncTime" orm:"flow_sync_time" ` // 流量最后一次同步时间
SmsSyncTime *gtime.Time `json:"smsSyncTime" orm:"sms_sync_time" ` // 短信最后一次同步时间
VoiceSyncTime *gtime.Time `json:"voiceSyncTime" orm:"voice_sync_time" ` // 语音最后一次同步时间
RoamSyncTime *gtime.Time `json:"roamSyncTime" orm:"roam_sync_time" ` // 国漫最后一次同步时间
ExtraFeeEnabled int `json:"extraFeeEnabled" orm:"extra_fee_enabled" ` // 是否收取附加费:0是,1否
ExtraFeeMultiple float64 `json:"extraFeeMultiple" orm:"extra_fee_multiple" ` // 附加费用倍数
ExtraFee float64 `json:"extraFee" orm:"extra_fee" ` // 附加金额
ChanKey string `json:"chanKey" orm:"chan_key" ` // 通道编号
NetModel int `json:"netModel" orm:"net_model" ` // 网络类型 枚举
Remark string `json:"remark" orm:"remark" ` // 备注
TenantId string `json:"tenantId" orm:"tenant_id" ` // 租户ID
CreatedDept int64 `json:"createdDept" orm:"created_dept" ` // 创建部门
CreatedBy int64 `json:"createdBy" orm:"created_by" ` // 创建者
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" ` // 创建时间
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" ` // 更新者
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" ` // 更新时间
}
@@ -0,0 +1,71 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TSimCardInfo is the golang structure for table t_sim_card_info.
type TSimCardInfo struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
Iccid string `json:"iccid" orm:"iccid" description:"ICCID"`
Msisdn string `json:"msisdn" orm:"msisdn" description:"MSISDN/卡号"`
Imsi string `json:"imsi" orm:"imsi" description:"IMSI"`
Imei string `json:"imei" orm:"imei" description:"IMEI"`
RegionCode string `json:"regionCode" orm:"region_code" description:"归属地"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"渠道客户ID"`
CurrentPackageCode string `json:"currentPackageCode" orm:"current_package_code" description:"当前套餐编号"`
PackageStatus int `json:"packageStatus" orm:"package_status" description:"套餐状态:0 无套餐,1待生效,2生效中,3已过期"`
AccessType int `json:"accessType" orm:"access_type" description:"接入方式:ipv4、ipv6、ipv4_ipv6"`
BossCardStatus int `json:"bossCardStatus" orm:"boss_card_status" description:"运营商卡状态 枚举"`
CardType int `json:"cardType" orm:"card_type" description:"卡类型 枚举"`
BossOpenAt *gtime.Time `json:"bossOpenAt" orm:"boss_open_at" description:"运营商开户日期"`
BossActivateAt *gtime.Time `json:"bossActivateAt" orm:"boss_activate_at" description:"运营商激活日期"`
IsBossActivateEnabled int `json:"isBossActivateEnabled" orm:"is_boss_activate_enabled" description:"是否按运营商激活减去赠送时长方:1是,0否"`
InboundBatchNo string `json:"inboundBatchNo" orm:"inbound_batch_no" description:"入库批次"`
OutboundBatchNo string `json:"outboundBatchNo" orm:"outbound_batch_no" description:"出库批次"`
AllocationBatchNo string `json:"allocationBatchNo" orm:"allocation_batch_no" description:"划拨批次"`
IsFlowPool int `json:"isFlowPool" orm:"is_flow_pool" description:"是否为池卡:1是,0否"`
FlowPoolCode string `json:"flowPoolCode" orm:"flow_pool_code" description:"流量池编号"`
OutStockTime *gtime.Time `json:"outStockTime" orm:"out_stock_time" description:"出库时间"`
FlowPkgBeginAt *gtime.Time `json:"flowPkgBeginAt" orm:"flow_pkg_begin_at" description:"当前套餐生效时间"`
FlowPkgPresentAt *gtime.Time `json:"flowPkgPresentAt" orm:"flow_pkg_present_at" description:"套餐赠送结束时间"`
FlowPkgRealPresentAt *gtime.Time `json:"flowPkgRealPresentAt" orm:"flow_pkg_real_present_at" description:"实际赠送结束时间"`
FlowPkgEndAt *gtime.Time `json:"flowPkgEndAt" orm:"flow_pkg_end_at" description:"当前套餐预计到期时间"`
DataServiceStatus int `json:"dataServiceStatus" orm:"data_service_status" description:"数据服务状态:1启用、0禁用"`
PackageTotalFlowMb float64 `json:"packageTotalFlowMb" orm:"package_total_flow_mb" description:"套餐总流量MB"`
UsedFlowMb float64 `json:"usedFlowMb" orm:"used_flow_mb" description:"已用流量MB"`
TrafficCutoffStatus int `json:"trafficCutoffStatus" orm:"traffic_cutoff_status" description:"达量断网配置状态:0未配置,1已开启,2已关闭"`
TrafficCutoffThreshold float64 `json:"trafficCutoffThreshold" orm:"traffic_cutoff_threshold" description:"达量断网阈值"`
SmsServiceStatus int `json:"smsServiceStatus" orm:"sms_service_status" description:"短信服务状态:1启用、0禁用"`
PackageTotalSms int `json:"packageTotalSms" orm:"package_total_sms" description:"套餐短信总条数"`
UsedSms int `json:"usedSms" orm:"used_sms" description:"已用短信条数"`
VoiceServiceStatus int `json:"voiceServiceStatus" orm:"voice_service_status" description:"语音服务状态:1启用、0禁用"`
PackageTotalVoice int `json:"packageTotalVoice" orm:"package_total_voice" description:"套餐语音总分钟数"`
UsedVoice int `json:"usedVoice" orm:"used_voice" description:"已用语音分钟数"`
RoamServiceStatus int `json:"roamServiceStatus" orm:"roam_service_status" description:"国漫服务状态:1启用、0禁用"`
PackageTotalRoamFlowMb float64 `json:"packageTotalRoamFlowMb" orm:"package_total_roam_flow_mb" description:"套餐国际流量MB"`
UsedRoamFlowMb float64 `json:"usedRoamFlowMb" orm:"used_roam_flow_mb" description:"已用国际流量MB"`
StatusSyncTime *gtime.Time `json:"statusSyncTime" orm:"status_sync_time" description:"状态最后一次同步时间"`
FlowSyncTime *gtime.Time `json:"flowSyncTime" orm:"flow_sync_time" description:"流量最后一次同步时间"`
SmsSyncTime *gtime.Time `json:"smsSyncTime" orm:"sms_sync_time" description:"短信最后一次同步时间"`
VoiceSyncTime *gtime.Time `json:"voiceSyncTime" orm:"voice_sync_time" description:"语音最后一次同步时间"`
RoamSyncTime *gtime.Time `json:"roamSyncTime" orm:"roam_sync_time" description:"国漫最后一次同步时间"`
ImeiSyncTime *gtime.Time `json:"imeiSyncTime" orm:"imei_sync_time" description:"IMEI 最后一次轮询同步时间"`
ImeiUpdateTime *gtime.Time `json:"imeiUpdateTime" orm:"imei_update_time" description:"IMEI 值最后一次实际变更时间"`
ExtraFeeEnabled int `json:"extraFeeEnabled" orm:"extra_fee_enabled" description:"是否收取附加费:1是,0否"`
ExtraFeeMultiple float64 `json:"extraFeeMultiple" orm:"extra_fee_multiple" description:"附加费用倍数"`
ExtraFee float64 `json:"extraFee" orm:"extra_fee" description:"附加金额"`
ChanKey string `json:"chanKey" orm:"chan_key" description:"通道编号"`
NetModel int `json:"netModel" orm:"net_model" description:"网络类型:4G、5G、NB-IoT"`
Remark string `json:"remark" orm:"remark" description:"备注"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}
@@ -0,0 +1,35 @@
// =================================================================================
// 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"
)
// TSimFlowPool is the golang structure for table t_sim_flow_pool.
type TSimFlowPool struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
FlowPoolCode string `json:"flowPoolCode" orm:"flow_pool_code" description:"流量池编号"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"客户编号"`
PackageCodes *gjson.Json `json:"packageCodes" orm:"package_codes" description:"套餐编号列表(冗余)"`
PoolPackageCode string `json:"poolPackageCode" orm:"pool_package_code" description:"池套餐编码"`
CardCount int64 `json:"cardCount" orm:"card_count" description:"关联卡数量"`
CardFlowMb float64 `json:"cardFlowMb" orm:"card_flow_mb" description:"套餐卡流量MB"`
PoolPackageFlowMb float64 `json:"poolPackageFlowMb" orm:"pool_package_flow_mb" description:"套内总流量MB"`
AddOnFlowMb float64 `json:"addOnFlowMb" orm:"add_on_flow_mb" description:"加油包总流量MB"`
TotalFlowMb float64 `json:"totalFlowMb" orm:"total_flow_mb" description:"总流量MB(套内+加油包)"`
UsedFlowMb float64 `json:"usedFlowMb" orm:"used_flow_mb" description:"已使用流量MB"`
RemainFlowMb float64 `json:"remainFlowMb" orm:"remain_flow_mb" description:"剩余流量MB"`
LastStatTime *gtime.Time `json:"lastStatTime" orm:"last_stat_time" description:"最后流量统计时间"`
PoolStatus int `json:"poolStatus" orm:"pool_status" description:"状态:0 正常、1 停用、2 锁定"`
Remark string `json:"remark" orm:"remark" description:"备注"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}
@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TUserMessage is the golang structure for table t_user_message.
type TUserMessage struct {
MessageId uint64 `json:"messageId" orm:"message_id" description:"主键ID"`
MessageLogId uint64 `json:"messageLogId" orm:"message_log_id" description:"消息日志ID"`
UserId uint64 `json:"userId" orm:"user_id" description:"用户ID"`
IsRead uint `json:"isRead" orm:"is_read" description:"是否已读"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}
@@ -0,0 +1,36 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TWarnConfig is the golang structure for table t_warn_config.
type TWarnConfig struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
BatchNo string `json:"batchNo" orm:"batch_no" description:"批次编号"`
ItemType int `json:"itemType" orm:"item_type" description:"对象类型:1卡,2流量池"`
ItemId int64 `json:"itemId" orm:"item_id" description:"对象ID:单卡为t_sim_card_info.id,流量池为t_sim_flow_pool.id"`
ItemCode string `json:"itemCode" orm:"item_code" description:"对象编码快照:ICCID/MSISDN/流量池编码"`
WarnUnit int `json:"warnUnit" orm:"warn_unit" description:"预警单位:1MB,2百分比,3天数,4月数"`
FirstWarn float64 `json:"firstWarn" orm:"first_warn" description:"第一档预警阈值,单位由warn_unit决定"`
SecondWarn float64 `json:"secondWarn" orm:"second_warn" description:"第二档预警阈值,单位由warn_unit决定"`
ThirdWarn float64 `json:"thirdWarn" orm:"third_warn" description:"第三档预警阈值,单位由warn_unit决定"`
WarnMethods string `json:"warnMethods" orm:"warn_methods" description:"预警方式:0短信,1邮箱,2电话,3平台消息;多选逗号分隔"`
WarnPhones string `json:"warnPhones" orm:"warn_phones" description:"预警手机号,多个逗号分隔"`
WarnEmails string `json:"warnEmails" orm:"warn_emails" description:"预警邮箱,多个逗号分隔"`
AutoAction int `json:"autoAction" orm:"auto_action" description:"自动动作:0无,2断网;第一期只保存配置不自动执行"`
IsEnabled int `json:"isEnabled" orm:"is_enabled" description:"是否启用:1启用,0停用"`
WxTemplateId string `json:"wxTemplateId" orm:"wx_template_id" description:"微信订阅消息模板ID"`
Remark string `json:"remark" orm:"remark" description:"备注"`
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:"更新时间"`
AppNotifyEnabled int `json:"appNotifyEnabled" orm:"app_notify_enabled" description:"是否开启小程序预警通知:0关闭,1开启"`
}
@@ -0,0 +1,37 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TWarnLog is the golang structure for table t_warn_log.
type TWarnLog struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ConfigId int64 `json:"configId" orm:"config_id" description:"预警配置ID"`
ItemType int `json:"itemType" orm:"item_type" description:"对象类型:1单卡,2流量池"`
ItemId int64 `json:"itemId" orm:"item_id" description:"对象ID:单卡为t_sim_card_info.id,流量池为t_sim_flow_pool.id"`
ItemCode string `json:"itemCode" orm:"item_code" description:"对象编码快照:ICCID/MSISDN/流量池编码"`
WarnStage int `json:"warnStage" orm:"warn_stage" description:"触发档位:1第一档,2第二档,3第三档"`
WarnLevel int `json:"warnLevel" orm:"warn_level" description:"预警级别:1提示,2注意,3警告,4危险,5紧急"`
WarnUnit int `json:"warnUnit" orm:"warn_unit" description:"预警单位/维度:1MB,2百分比,3天数,4月数"`
ThresholdValue float64 `json:"thresholdValue" orm:"threshold_value" description:"触发阈值,单位由warn_unit决定"`
ActualValue float64 `json:"actualValue" orm:"actual_value" description:"触发时实际值,单位由warn_unit决定"`
TotalFlowMb float64 `json:"totalFlowMb" orm:"total_flow_mb" description:"触发时总流量MB;流量类预警使用"`
RemainFlowMb float64 `json:"remainFlowMb" orm:"remain_flow_mb" description:"触发时剩余流量MB;流量类预警使用"`
WarnMethods string `json:"warnMethods" orm:"warn_methods" description:"实际预警方式快照"`
WarnPhones string `json:"warnPhones" orm:"warn_phones" description:"实际预警手机号快照"`
WarnEmails string `json:"warnEmails" orm:"warn_emails" description:"实际预警邮箱快照"`
MessageLogId int64 `json:"messageLogId" orm:"message_log_id" description:"平台消息ID;聚合通知时可能为空"`
WarnTime *gtime.Time `json:"warnTime" orm:"warn_time" description:"预警时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
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:"更新时间"`
}
@@ -0,0 +1,43 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TWoMain is the golang structure for table t_wo_main.
type TWoMain struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
WoNo string `json:"woNo" orm:"wo_no" description:"工单编号"`
WoType int `json:"woType" orm:"wo_type" description:"工单类型 0卡,1模组,2设备,3订单,4余额,5提现"`
RelatedId int64 `json:"relatedId" orm:"related_id" description:"关联业务ID"`
Title string `json:"title" orm:"title" description:"工单标题"`
Content string `json:"content" orm:"content" description:"问题描述"`
Attachment string `json:"attachment" orm:"attachment" description:"附件"`
CreatorType int `json:"creatorType" orm:"creator_type" description:"创建人类型:1终端用户,2代理商"`
CreatorDeptId int64 `json:"creatorDeptId" orm:"creator_dept_id" description:"创建机构ID"`
CreatorUserId int64 `json:"creatorUserId" orm:"creator_user_id" description:"创建用户ID"`
CreatorName string `json:"creatorName" orm:"creator_name" description:"创建人姓名"`
CreatorPhone string `json:"creatorPhone" orm:"creator_phone" description:"创建人手机号"`
AssignDeptId int64 `json:"assignDeptId" orm:"assign_dept_id" description:"分派方机构ID"`
AssignUserId int64 `json:"assignUserId" orm:"assign_user_id" description:"分派人用户ID"`
CurrentStatus int `json:"currentStatus" orm:"current_status" description:"当前处理状态:1已分派,2处理中,3已解决,4已完结_关单,5已取消"`
HandlerDeptId int64 `json:"handlerDeptId" orm:"handler_dept_id" description:"处理方机构ID"`
HandlerUserId int64 `json:"handlerUserId" orm:"handler_user_id" description:"处理人用户ID"`
FirstResponseTime *gtime.Time `json:"firstResponseTime" orm:"first_response_time" description:"首次响应时间"`
ResolveTime *gtime.Time `json:"resolveTime" orm:"resolve_time" description:"确认时间"`
CloseTime *gtime.Time `json:"closeTime" orm:"close_time" description:"关闭时间"`
SatisfactionLevel int `json:"satisfactionLevel" orm:"satisfaction_level" description:"满意度:1-5分"`
EvalContent string `json:"evalContent" orm:"eval_content" description:"评价内容"`
EvalTime *gtime.Time `json:"evalTime" orm:"eval_time" description:"评价时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TWoRecord is the golang structure for table t_wo_record.
type TWoRecord struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
WoNo string `json:"woNo" orm:"wo_no" description:"工单编号"`
OperationType int `json:"operationType" orm:"operation_type" description:"操作类型:0创建,1分派,2处理,3完成,4关单,5取消"`
OperationDeptId int64 `json:"operationDeptId" orm:"operation_dept_id" description:"操作机构ID"`
OperationUserId int64 `json:"operationUserId" orm:"operation_user_id" description:"操作用户ID"`
TargetDeptId int64 `json:"targetDeptId" orm:"target_dept_id" description:"目标部门ID"`
TargetUserId int64 `json:"targetUserId" orm:"target_user_id" description:"目标用户ID"`
BeforeStatus int `json:"beforeStatus" orm:"before_status" description:"变更前状态"`
AfterStatus int `json:"afterStatus" orm:"after_status" description:"变更后状态"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
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:"更新时间"`
}