88dfe5c640
iotlcm-openapi:对外 OpenAPI 网关(V3 接口 + 旧版兼容接口)。
- Go module:iotlcm-openapi → git.5iot.com/iotlcm-public/iotlcm-openapi(178 文件)
- 凭据与地址脱敏:JWT signingKey、MySQL DSN、Redis 口令、
RabbitMQ DSN 全部改为 ${*} 占位;私网 IP → 文档地址段
- 7 处真实手机号 → 合法 11 位编造号
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- 移除内部资产:CI 触发器
- Dockerfile 改用公共基础镜像,移除 GOPRIVATE 内网设置
- README 重写(原为 GoFrame 模板占位文案),补 Apache-2.0 LICENSE,
LF 行尾 + .gitattributes
435 lines
32 KiB
Go
435 lines
32 KiB
Go
// Package genin
|
|
// @Link https://github.com/xiujiecn/xiu-admin
|
|
// @Copyright Copyright (c) 2026 LiXiujie
|
|
// @Author Lxj <li@xiujie.cn>
|
|
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
|
// @AutoGenerate Version
|
|
package model
|
|
|
|
import (
|
|
"context"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/library/xgorm/hook"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model/entity"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model/request"
|
|
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
)
|
|
|
|
// TSimCardInfoUpdateFields 修改卡信息表字段过滤
|
|
type TSimCardInfoUpdateFields struct {
|
|
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"`
|
|
CurrentPackageCode string `json:"currentPackageCode" 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:"流量池编号"`
|
|
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"`
|
|
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:"通道编号"`
|
|
NetModel int `json:"netModel" dc:"网络类型:4G、5G、NB-IoT"`
|
|
Remark string `json:"remark" dc:"备注"`
|
|
TenantId string `json:"tenantId" dc:"租户ID"`
|
|
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
|
}
|
|
|
|
// TSimCardInfoInsertFields 新增卡信息表字段过滤
|
|
type TSimCardInfoInsertFields struct {
|
|
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"`
|
|
CurrentPackageCode string `json:"currentPackageCode" 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:"流量池编号"`
|
|
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"`
|
|
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:"通道编号"`
|
|
NetModel int `json:"netModel" dc:"网络类型:4G、5G、NB-IoT"`
|
|
Remark string `json:"remark" dc:"备注"`
|
|
TenantId string `json:"tenantId" dc:"租户ID"`
|
|
CreatedDept int64 `json:"createdDept" dc:"创建部门"`
|
|
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
}
|
|
|
|
// TSimCardInfoEditParam 修改/新增卡信息表
|
|
type TSimCardInfoEditParam struct {
|
|
//entity.TSimCardInfo
|
|
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"`
|
|
CurrentPackageCode *string `json:"currentPackageCode" 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:"流量池编号"`
|
|
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"`
|
|
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:"通道编号"`
|
|
NetModel *int `json:"netModel" dc:"网络类型:4G、5G、NB-IoT"`
|
|
Remark *string `json:"remark" dc:"备注"`
|
|
TenantId *string `json:"tenantId" dc:"租户ID"`
|
|
CreatedDept *int64 `json:"createdDept" dc:"创建部门"`
|
|
CreatedBy *int64 `json:"createdBy" dc:"创建者"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
UpdatedBy *int64 `json:"updatedBy" dc:"更新者"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
|
}
|
|
|
|
func (in *TSimCardInfoEditParam) Filter(ctx context.Context) (err error) {
|
|
|
|
return
|
|
}
|
|
|
|
type TSimCardInfoEditModel struct{}
|
|
|
|
// TSimCardInfoDeleteParam 删除卡信息表
|
|
type TSimCardInfoDeleteParam struct {
|
|
Id interface{} `json:"id" v:"required#主键ID不能为空" dc:"主键ID"`
|
|
}
|
|
|
|
func (in *TSimCardInfoDeleteParam) Filter(ctx context.Context) (err error) {
|
|
return
|
|
}
|
|
|
|
type TSimCardInfoDeleteModel struct{}
|
|
|
|
// TSimCardInfoViewParam 获取指定卡信息表信息
|
|
type TSimCardInfoViewParam struct {
|
|
Id int64 `json:"id" dc:"主键ID"`
|
|
}
|
|
|
|
func (in *TSimCardInfoViewParam) Filter(ctx context.Context) (err error) {
|
|
return
|
|
}
|
|
|
|
type TSimCardInfoViewModel struct {
|
|
ChanAlias string `json:"chanAlias" dc:"通道别名"`
|
|
DeptName string `json:"deptName" dc:"部门名称"`
|
|
PackageName string `json:"packageName" dc:"套餐名称"`
|
|
ReminFlowMb float64 `json:"reminFlowMb" dc:"剩余流量MB"`
|
|
entity.TSimCardInfo
|
|
|
|
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
|
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
|
|
}
|
|
|
|
// TSimCardInfoListParam 获取卡信息表列表
|
|
type TSimCardInfoListParam struct {
|
|
request.PageInfo
|
|
BossCardStatus *int `json:"bossCardStatus" dc:"运营商卡状态"`
|
|
TimeType *int `json:"timeType" dc:"时间类型"`
|
|
Time []*gtime.Time `json:"time" dc:"时间段"`
|
|
Condition *string `json:"condition" dc:"查询条件"`
|
|
StartNum *string `json:"startNum" dc:"起始号段"`
|
|
EndNum *string `json:"endNum" dc:"结束号段"`
|
|
Dimension *int `json:"dimension" dc:"维度"`
|
|
DimensionStatus *string `json:"dimensionStatus" dc:"维度状态"`
|
|
DimensionValue *string `json:"dimensionValue" dc:"维度值"`
|
|
SortValue *int `json:"sortValue" dc:"排序值"`
|
|
SortType *int `json:"sortType" dc:"排序类型"`
|
|
ChanKey *string `json:"chanKey" dc:"通道编号"`
|
|
CurrentPackageCode *string `json:"currentPackageCode" dc:"当前套餐编码"`
|
|
CardValue string `json:"cardValue" dc:"卡号"`
|
|
Remark string `json:"remark" dc:"备注"`
|
|
Imei string `json:"imei" dc:"IMEI"`
|
|
DeptId int64 `json:"deptId" dc:"渠道客户ID"`
|
|
Id int64 `json:"id" dc:"主键ID"`
|
|
Iccid string `json:"iccid" dc:"ICCID"`
|
|
Msisdn string `json:"msisdn" dc:"MSISDN/卡号"`
|
|
Imsi string `json:"imsi" dc:"IMSI"`
|
|
PackageStatus int `json:"packageStatus" dc:"套餐状态:0 无套餐,1待生效,2生效中,3已过期"`
|
|
|
|
DataServiceStatus int `json:"dataServiceStatus" dc:"数据服务状态:1启用、0禁用"`
|
|
SmsServiceStatus int `json:"smsServiceStatus" dc:"短信服务状态:1启用、0禁用"`
|
|
VoiceServiceStatus int `json:"voiceServiceStatus" dc:"语音服务状态:1启用、0禁用"`
|
|
RoamServiceStatus int `json:"roamServiceStatus" dc:"国漫服务状态:1启用、0禁用"`
|
|
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
}
|
|
|
|
func (in *TSimCardInfoListParam) Filter(ctx context.Context) (err error) {
|
|
return
|
|
}
|
|
|
|
type TSimCardInfoListModel struct {
|
|
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:"流量池编号"`
|
|
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"`
|
|
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 导出卡信息表
|
|
type TSimCardInfoExportModel struct {
|
|
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"`
|
|
CurrentPackageCode string `json:"currentPackageCode" 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:"流量池编号"`
|
|
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"`
|
|
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:"通道编号"`
|
|
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:"创建者"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
|
}
|
|
|
|
// 同步SIM卡流量
|
|
type SyncSimCardFlowInput struct {
|
|
Iccid string `json:"iccid" dc:"sim卡ID"`
|
|
}
|
|
|
|
// 同步SIM卡状态
|
|
type SyncSimCardStatusInput struct {
|
|
Iccid string `json:"iccid" dc:"sim卡ID"`
|
|
}
|
|
|
|
// 查询SIM卡状态
|
|
type QuerySimStatusInput = SimKey
|
|
|
|
type QuerySimStatusOutput = SimCardStatusItem
|
|
|
|
// 查询SIM卡会话
|
|
type QuerySimSessionInput = SimKey
|
|
|
|
// 查询SIM卡会话输出
|
|
type QuerySimSessionOutput = SimSessionItem
|
|
|
|
// GetCardPackageOptionsReq 获取卡套餐下拉选项
|
|
type GetCardPackageOptionsReq struct{}
|
|
|
|
// GetCardPackageOptionsRes 获取卡套餐下拉选项响应
|
|
type GetCardPackageOptionsRes struct {
|
|
CurrentPackageCode string `json:"currentPackageCode" dc:"当前套餐编码"`
|
|
}
|
|
|
|
// PackageStatisticsReq 套餐统计请求
|
|
type PackageStatisticsReq struct {
|
|
PackageCodes []string `json:"packageCodes" dc:"套餐编码列表"`
|
|
}
|
|
|
|
// PackageStatisticsRes 套餐统计响应
|
|
type PackageStatisticsRes struct {
|
|
Type102 PackageStatisticsItem `json:"type102" dc:"102池套餐统计"`
|
|
Type104 PackageStatisticsItem `json:"type104" dc:"104池套餐统计"`
|
|
TotalUsedFlowMb float64 `json:"totalUsedFlowMb" dc:"总已用流量MB"`
|
|
RemainUsedFlowMb float64 `json:"remainUsedFlowMb" dc:"剩余已用流量MB"`
|
|
}
|
|
|
|
// PackageStatisticsItem 套餐统计项
|
|
type PackageStatisticsItem struct {
|
|
CardCount int64 `json:"cardCount" dc:"卡数量"`
|
|
TotalFlowMb float64 `json:"totalFlowMb" dc:"套餐总流量MB"`
|
|
TotalFlowGb float64 `json:"totalFlowGb" dc:"套餐总流量GB"`
|
|
UsedFlowMb float64 `json:"usedFlowMb" dc:"已用流量MB"`
|
|
}
|