package model import ( "git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request" "github.com/gogf/gf/v2/os/gtime" ) type TSimCardOutboundSubmitParam struct { CustomerAgentId int64 `json:"customerAgentId" v:"required|min:1#客户不能为空|客户不能为空" dc:"客户/机构ID"` PackageCode string `json:"packageCode" v:"required#套餐不能为空" dc:"套餐编码"` PackageBeginTime *gtime.Time `json:"packageBeginTime" v:"required#套餐开始时间不能为空" dc:"套餐开始时间"` DurationYears int `json:"durationYears" dc:"套餐购买时长(年)"` DurationMonthPart int `json:"durationMonthPart" dc:"套餐购买时长(月部分)"` DurationMonths int `json:"durationMonths" dc:"套餐购买时长(月)"` GiftDurationYears int `json:"giftDurationYears" dc:"赠送时长(年)"` GiftDurationMonthPart int `json:"giftDurationMonthPart" dc:"赠送时长(月部分)"` GiftDurationMonths int `json:"giftDurationMonths" v:"min:0#赠送时长不能小于0" dc:"赠送时长(月)"` HasTestPeriod int `json:"hasTestPeriod" dc:"是否有测试期(global_yes_or_no)"` TestPeriodDays int `json:"testPeriodDays" dc:"测试期天数"` TestPeriodLatestExpiryDate *gtime.Time `json:"testPeriodLatestExpiryDate" dc:"测试期最晚过期日期"` HasSilentPeriod int `json:"hasSilentPeriod" dc:"是否有沉默期(global_yes_or_no)"` SilentPeriodDays int `json:"silentPeriodDays" dc:"沉默期天数"` SilentPeriodLatestExpiryDate *gtime.Time `json:"silentPeriodLatestExpiryDate" dc:"沉默期最晚过期日期"` Amount string `json:"amount" dc:"订单金额"` OfflineContractCompleted bool `json:"offlineContractCompleted" dc:"线下合同/销售/走账已完成"` Remark string `json:"remark" dc:"备注"` BuyerNote string `json:"buyerNote" dc:"买家备注"` AdminNote string `json:"adminNote" dc:"后台备注"` } type TSimCardOutboundExcelSubmitParam struct { } type TSimCardOutboundRangeSubmitParam struct { TSimCardOutboundSubmitParam RangeCodeType string `json:"rangeCodeType" dc:"连号号码类型:iccid/msisdn/imsi"` StartIccid string `json:"startIccid" dc:"起始ICCID卡号"` EndIccid string `json:"endIccid" dc:"结束ICCID卡号"` StartMsisdn string `json:"startMsisdn" dc:"起始MSISDN号码"` EndMsisdn string `json:"endMsisdn" dc:"结束MSISDN号码"` StartImsi string `json:"startImsi" dc:"起始IMSI号码"` EndImsi string `json:"endImsi" dc:"结束IMSI号码"` } type TSimCardOutboundInputSubmitParam struct { TSimCardOutboundSubmitParam Input string `json:"input" v:"required#批量输入内容不能为空" dc:"批量输入ICCID文本"` } type TSimCardOutboundInboundBatchListParam struct { request.PageInfo BatchNo string `json:"batchNo" form:"batchNo" dc:"入库批次号"` ChanName string `json:"chanName" form:"chanName" dc:"通道名称"` CardType string `json:"cardType" form:"cardType" dc:"卡类型"` UpPkgKeyword string `json:"upPkgKeyword" form:"upPkgKeyword" dc:"上游套餐关键字"` AgreementExpiryMonths int `json:"agreementExpiryMonths" form:"agreementExpiryMonths" dc:"协议到期快捷筛选(月)"` } type TSimCardOutboundInboundBatchListItem struct { BatchNo string `json:"batchNo" orm:"batch_no" dc:"入库批次号"` ChanKey string `json:"chanKey" orm:"chan_key" dc:"通道编号"` ChanName string `json:"chanName" dc:"通道名称"` CardType string `json:"cardType" dc:"卡类型"` UpPkgCode string `json:"upPkgCode" dc:"上游套餐编码"` UpPkgName string `json:"upPkgName" dc:"上游套餐名称"` AgreementExpiryDate string `json:"agreementExpiryDate" dc:"协议到期时间"` StockCount int `json:"stockCount" orm:"stock_count" dc:"当前库存卡数量"` FirstCreatedAt *gtime.Time `json:"firstCreatedAt" orm:"first_created_at" dc:"最早库存创建时间"` LastCreatedAt *gtime.Time `json:"lastCreatedAt" orm:"last_created_at" dc:"最近库存创建时间"` } type TSimCardOutboundInboundBatchListRes struct { Items []*TSimCardOutboundInboundBatchListItem `json:"items" dc:"数据列表"` Total int `json:"total" dc:"总数量"` } type TSimCardOutboundInboundBatchCardsParam struct { request.PageInfo BatchNo string `json:"batchNo" form:"batchNo" v:"required#批次号不能为空" dc:"入库批次号"` Iccid string `json:"iccid" form:"iccid" dc:"ICCID卡号"` Msisdn string `json:"msisdn" form:"msisdn" dc:"MSISDN号码"` Imsi string `json:"imsi" form:"imsi" dc:"IMSI号码"` } type TSimCardOutboundInboundBatchCardItem struct { Iccid string `json:"iccid" orm:"iccid" dc:"ICCID卡号"` Msisdn string `json:"msisdn" orm:"msisdn" dc:"MSISDN号码"` Imsi string `json:"imsi" orm:"imsi" dc:"IMSI号码"` Imei string `json:"imei" orm:"imei" dc:"IMEI号码"` ChanKey string `json:"chanKey" orm:"chan_key" dc:"通道标识"` ChanName string `json:"chanName" dc:"通道名称"` CardType string `json:"cardType" dc:"卡类型"` UpPkgCode string `json:"upPkgCode" dc:"上游套餐编码"` UpPkgName string `json:"upPkgName" dc:"上游套餐名称"` AgreementExpiryDate string `json:"agreementExpiryDate" dc:"协议到期时间"` BatchNo string `json:"batchNo" orm:"batch_no" dc:"入库批次号"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" dc:"创建时间"` } type TSimCardOutboundInboundBatchCardsRes struct { Items []*TSimCardOutboundInboundBatchCardItem `json:"items" dc:"数据列表"` Total int `json:"total" dc:"总数量"` } type TSimCardOutboundBatchSubmitParam struct { TSimCardOutboundSubmitParam BatchNo string `json:"batchNo" v:"required#批次号不能为空" dc:"入库批次号"` } type TSimCardOutboundCustomerBalanceParam struct { CustomerAgentId int64 `json:"customerAgentId" form:"customerAgentId" v:"required|min:1#客户不能为空|客户不能为空" dc:"客户/机构ID"` } type TSimCardOutboundCustomerBalanceRes struct { CustomerAgentId int64 `json:"customerAgentId" dc:"客户/机构ID"` CustomerName string `json:"customerName" dc:"客户/机构名称"` AccountExists bool `json:"accountExists" dc:"余额账户是否存在"` Balance float64 `json:"balance" dc:"账户余额"` Status int `json:"status" dc:"账户状态:0正常,1禁用"` StatusText string `json:"statusText" dc:"账户状态说明"` } type TSimCardOutboundSubmitRes struct { BatchNo string `json:"batchNo" dc:"批次号"` BatchType int `json:"batchType" dc:"批次类型"` BatchAsyncStatus int `json:"batchAsyncStatus" dc:"异步处理状态"` OrderSn string `json:"orderSn" dc:"订单编号"` Status string `json:"status" dc:"导入状态"` Quantity int `json:"quantity" dc:"出库数量"` Total int `json:"total" dc:"解析总行数"` ValidCount int `json:"validCount" dc:"校验通过行数"` FailCount int `json:"failCount" dc:"失败行数"` ResultDownloadId int64 `json:"resultDownloadId" dc:"结果下载任务ID"` ResultFileOssId int64 `json:"resultFileOssId" dc:"结果文件OSS ID"` } type TSimCardOutboundExcelSubmitRes = TSimCardOutboundSubmitRes type TSimCardOutboundRangeSubmitRes = TSimCardOutboundSubmitRes type TSimCardOutboundInputSubmitRes = TSimCardOutboundSubmitRes type TSimCardOutboundBatchSubmitRes = TSimCardOutboundSubmitRes