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
+71 -65
View File
@@ -1,7 +1,7 @@
// Package genin
// @Link https://github.com/xiujiecn/xiu-admin
// @Copyright Copyright (c) 2026 LiXiujie
// @Author Lxj <li@xiujie.cn>
// @Author Lxj <xxx@example.com>
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
// @AutoGenerate Version
package model
@@ -184,6 +184,11 @@ type TSimCardInfoViewModel struct {
// TSimCardInfoListParam 获取卡信息表列表
type TSimCardInfoListParam struct {
request.PageInfo
// ExportColumnsJson 导出列(仅导出接口使用,JSON 字符串形式):前端传当前列表显示列
ExportColumnsJson string `json:"exportColumnsJson" dc:"导出列(JSON字符串)"`
// ExportColumns 导出列对象形式,兼容直接传数组的调用
ExportColumns []ExportColumn `json:"exportColumns" dc:"导出列"`
BossCardStatus *int `json:"bossCardStatus" dc:"运营商卡状态"`
TimeType *int `json:"timeType" dc:"时间类型"`
Time []*gtime.Time `json:"time" dc:"时间段"`
@@ -198,6 +203,7 @@ type TSimCardInfoListParam struct {
ChanKey *string `json:"chanKey" dc:"通道编号"`
CurrentPackageCode *string `json:"currentPackageCode" dc:"当前套餐编码"`
CardValue string `json:"cardValue" dc:"卡号"`
BatchInput *string `json:"batchInput" dc:"批量查询卡号(每行一个号码或 ICCID MSISDN IMSI)"`
Remark string `json:"remark" dc:"备注"`
Imei string `json:"imei" dc:"IMEI"`
DeptId int64 `json:"deptId" dc:"渠道客户ID"`
@@ -220,70 +226,70 @@ func (in *TSimCardInfoListParam) Filter(ctx context.Context) (err error) {
}
type TSimCardInfoListModel struct {
TrafficCutoffCrossMonthHold int `json:"trafficCutoffCrossMonthHold" dc:"cross-month traffic cutoff hold: 0 disabled, 1 enabled"`
Id int64 `json:"id" dc:"主键ID"`
Iccid string `json:"iccid" dc:"ICCID"`
Msisdn string `json:"msisdn" dc:"MSISDN/卡号"`
Imsi string `json:"imsi" dc:"IMSI"`
Imei string `json:"imei" dc:"IMEI"`
RegionCode string `json:"regionCode" dc:"归属地"`
DeptId int64 `json:"deptId" dc:"渠道客户ID"`
DeptName string `json:"deptName" dc:"渠道客户名称"`
CurrentPackageCode string `json:"currentPackageCode" dc:"当前套餐编号"`
PackageName string `json:"packageName" dc:"当前套餐名称"`
PackageStatus int `json:"packageStatus" dc:"套餐状态:0 无套餐,1待生效,2生效中,3已过期"`
AccessType int `json:"accessType" dc:"接入方式:ipv4、ipv6、ipv4_ipv6"`
BossCardStatus int `json:"bossCardStatus" dc:"运营商卡状态 枚举"`
CardType int `json:"cardType" dc:"卡类型 枚举"`
BossOpenAt *gtime.Time `json:"bossOpenAt" dc:"运营商开户日期"`
BossActivateAt *gtime.Time `json:"bossActivateAt" dc:"运营商激活日期"`
IsBossActivateEnabled int `json:"isBossActivateEnabled" dc:"是否按运营商激活减去赠送时长方:1是,0否"`
InboundBatchNo string `json:"inboundBatchNo" dc:"入库批次"`
OutboundBatchNo string `json:"outboundBatchNo" dc:"出库批次"`
AllocationBatchNo string `json:"allocationBatchNo" dc:"划拨批次"`
IsFlowPool int `json:"isFlowPool" dc:"是否为池卡:1是,0否"`
FlowPoolCode string `json:"flowPoolCode" dc:"流量池编号"`
OutStockTime *gtime.Time `json:"outStockTime" dc:"出库时间"`
FlowPkgBeginAt *gtime.Time `json:"flowPkgBeginAt" dc:"当前套餐生效时间"`
FlowPkgPresentAt *gtime.Time `json:"flowPkgPresentAt" dc:"套餐赠送结束时间"`
FlowPkgRealPresentAt *gtime.Time `json:"flowPkgRealPresentAt" dc:"实际赠送结束时间"`
FlowPkgEndAt *gtime.Time `json:"flowPkgEndAt" dc:"当前套餐预计到期时间"`
DataServiceStatus int `json:"dataServiceStatus" dc:"数据服务状态:1启用、0禁用"`
PackageTotalFlowMb float64 `json:"packageTotalFlowMb" dc:"套餐总流量MB"`
UsedFlowMb float64 `json:"usedFlowMb" dc:"已用流量MB"`
ReminFlowMb float64 `json:"reminFlowMb" dc:"剩余流量MB"`
TrafficCutoffStatus int `json:"trafficCutoffStatus" dc:"达量断网配置状态:0未配置,1已开启,2已关闭"`
TrafficCutoffThreshold float64 `json:"trafficCutoffThreshold" dc:"达量断网阈值"`
SmsServiceStatus int `json:"smsServiceStatus" dc:"短信服务状态:1启用、0禁用"`
PackageTotalSms int `json:"packageTotalSms" dc:"套餐短信总条数"`
UsedSms int `json:"usedSms" dc:"已用短信条数"`
VoiceServiceStatus int `json:"voiceServiceStatus" dc:"语音服务状态:1启用、0禁用"`
PackageTotalVoice int `json:"packageTotalVoice" dc:"套餐语音总分钟数"`
UsedVoice int `json:"usedVoice" dc:"已用语音分钟数"`
RoamServiceStatus int `json:"roamServiceStatus" dc:"国漫服务状态:1启用、0禁用"`
PackageTotalRoamFlowMb float64 `json:"packageTotalRoamFlowMb" dc:"套餐国际流量MB"`
UsedRoamFlowMb float64 `json:"usedRoamFlowMb" dc:"已用国际流量MB"`
StatusSyncTime *gtime.Time `json:"statusSyncTime" dc:"状态最后一次同步时间"`
FlowSyncTime *gtime.Time `json:"flowSyncTime" dc:"流量最后一次同步时间"`
SmsSyncTime *gtime.Time `json:"smsSyncTime" dc:"短信最后一次同步时间"`
VoiceSyncTime *gtime.Time `json:"voiceSyncTime" dc:"语音最后一次同步时间"`
RoamSyncTime *gtime.Time `json:"roamSyncTime" dc:"国漫最后一次同步时间"`
ExtraFeeEnabled int `json:"extraFeeEnabled" dc:"是否收取附加费:1是,0否"`
ExtraFeeMultiple float64 `json:"extraFeeMultiple" dc:"附加费用倍数"`
ExtraFee float64 `json:"extraFee" dc:"附加金额"`
ChanKey string `json:"chanKey" dc:"通道编号"`
ChanName string `json:"chanName" dc:"通道名称"`
ChanAlias string `json:"chanAlias" dc:"通道别名"`
Remark string `json:"remark" dc:"备注"`
NetModel int `json:"netModel" dc:"网络类型:4G、5G、NB-IoT"`
TenantId string `json:"tenantId" dc:"租户ID"`
CreatedDept int64 `json:"createdDept" dc:"创建部门"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
TrafficCutoffCrossMonthHold int `json:"trafficCutoffCrossMonthHold" dc:"cross-month traffic cutoff hold: 0 disabled, 1 enabled"`
Id int64 `json:"id" dc:"主键ID"`
Iccid string `json:"iccid" dc:"ICCID"`
Msisdn string `json:"msisdn" dc:"MSISDN/卡号"`
Imsi string `json:"imsi" dc:"IMSI"`
Imei string `json:"imei" dc:"IMEI"`
RegionCode string `json:"regionCode" dc:"归属地"`
DeptId int64 `json:"deptId" dc:"渠道客户ID"`
DeptName string `json:"deptName" dc:"渠道客户名称"`
CurrentPackageCode string `json:"currentPackageCode" dc:"当前套餐编号"`
PackageName string `json:"packageName" dc:"当前套餐名称"`
PackageStatus int `json:"packageStatus" dc:"套餐状态:0 无套餐,1待生效,2生效中,3已过期"`
AccessType int `json:"accessType" dc:"接入方式:ipv4、ipv6、ipv4_ipv6"`
BossCardStatus int `json:"bossCardStatus" dc:"运营商卡状态 枚举"`
CardType int `json:"cardType" dc:"卡类型 枚举"`
BossOpenAt *gtime.Time `json:"bossOpenAt" dc:"运营商开户日期"`
BossActivateAt *gtime.Time `json:"bossActivateAt" dc:"运营商激活日期"`
IsBossActivateEnabled int `json:"isBossActivateEnabled" dc:"是否按运营商激活减去赠送时长方:1是,0否"`
InboundBatchNo string `json:"inboundBatchNo" dc:"入库批次"`
OutboundBatchNo string `json:"outboundBatchNo" dc:"出库批次"`
AllocationBatchNo string `json:"allocationBatchNo" dc:"划拨批次"`
IsFlowPool int `json:"isFlowPool" dc:"是否为池卡:1是,0否"`
FlowPoolCode string `json:"flowPoolCode" dc:"流量池编号"`
OutStockTime *gtime.Time `json:"outStockTime" dc:"出库时间"`
FlowPkgBeginAt *gtime.Time `json:"flowPkgBeginAt" dc:"当前套餐生效时间"`
FlowPkgPresentAt *gtime.Time `json:"flowPkgPresentAt" dc:"套餐赠送结束时间"`
FlowPkgRealPresentAt *gtime.Time `json:"flowPkgRealPresentAt" dc:"实际赠送结束时间"`
FlowPkgEndAt *gtime.Time `json:"flowPkgEndAt" dc:"当前套餐预计到期时间"`
DataServiceStatus int `json:"dataServiceStatus" dc:"数据服务状态:1启用、0禁用"`
PackageTotalFlowMb float64 `json:"packageTotalFlowMb" dc:"套餐总流量MB"`
UsedFlowMb float64 `json:"usedFlowMb" dc:"已用流量MB"`
ReminFlowMb float64 `json:"reminFlowMb" dc:"剩余流量MB"`
TrafficCutoffStatus int `json:"trafficCutoffStatus" dc:"达量断网配置状态:0未配置,1已开启,2已关闭"`
TrafficCutoffThreshold float64 `json:"trafficCutoffThreshold" dc:"达量断网阈值"`
SmsServiceStatus int `json:"smsServiceStatus" dc:"短信服务状态:1启用、0禁用"`
PackageTotalSms int `json:"packageTotalSms" dc:"套餐短信总条数"`
UsedSms int `json:"usedSms" dc:"已用短信条数"`
VoiceServiceStatus int `json:"voiceServiceStatus" dc:"语音服务状态:1启用、0禁用"`
PackageTotalVoice int `json:"packageTotalVoice" dc:"套餐语音总分钟数"`
UsedVoice int `json:"usedVoice" dc:"已用语音分钟数"`
RoamServiceStatus int `json:"roamServiceStatus" dc:"国漫服务状态:1启用、0禁用"`
PackageTotalRoamFlowMb float64 `json:"packageTotalRoamFlowMb" dc:"套餐国际流量MB"`
UsedRoamFlowMb float64 `json:"usedRoamFlowMb" dc:"已用国际流量MB"`
StatusSyncTime *gtime.Time `json:"statusSyncTime" dc:"状态最后一次同步时间"`
FlowSyncTime *gtime.Time `json:"flowSyncTime" dc:"流量最后一次同步时间"`
SmsSyncTime *gtime.Time `json:"smsSyncTime" dc:"短信最后一次同步时间"`
VoiceSyncTime *gtime.Time `json:"voiceSyncTime" dc:"语音最后一次同步时间"`
RoamSyncTime *gtime.Time `json:"roamSyncTime" dc:"国漫最后一次同步时间"`
ExtraFeeEnabled int `json:"extraFeeEnabled" dc:"是否收取附加费:1是,0否"`
ExtraFeeMultiple float64 `json:"extraFeeMultiple" dc:"附加费用倍数"`
ExtraFee float64 `json:"extraFee" dc:"附加金额"`
ChanKey string `json:"chanKey" dc:"通道编号"`
ChanName string `json:"chanName" dc:"通道名称"`
ChanAlias string `json:"chanAlias" dc:"通道别名"`
Remark string `json:"remark" dc:"备注"`
NetModel int `json:"netModel" dc:"网络类型:4G、5G、NB-IoT"`
TenantId string `json:"tenantId" dc:"租户ID"`
CreatedDept int64 `json:"createdDept" dc:"创建部门"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
}
// TSimCardInfoExportModel 导出卡信息表