Files
iotlcm/server/internal/model/batch_detail_list.go
T
MiFaZhan 59eb34976a chore: 初始开源发布
iotlcm-admin-svr:管理后台服务。

- Go module:iotlcm → git.5iot.com/iotlcm-public/iotlcm-admin-svr(729 文件)
- 凭据与地址脱敏:JWT signingKey(含代码里的 MustGet 默认值)、
  MySQL DSN、Redis 口令、告警邮件发件人邮箱全部改为占位;
  私网 IP → 文档地址段;库名 xiujie_admin → iotlcm
- 真实手机号/邮箱 → 合法 11 位编造号 / example.com
- 移除内部资产:CI 触发器、过时 DDL(sql/db_iotlcm.sql)、
  私有依赖 go get 行、明文 registry 登录口令
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- Dockerfile 改用公共基础镜像
- 拼错的 RADEME.md → README.md,README 重写
- 需要真实数据库的用例改为可用 IOTLCM_TEST_WITH_DB=1 显式启用
- 补 Apache-2.0 LICENSE,LF 行尾 + .gitattributes

数据库 schema 不随本仓发布(生产 DDL 已过时),README 已说明。
2026-10-23 14:48:30 +08:00

72 lines
3.5 KiB
Go

package model
import (
"context"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/allocationunits"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request"
)
type BatchCardListParam struct {
request.PageInfo
BatchNo string `json:"batchNo" v:"required#批次号不能为空" dc:"批次编号"`
BatchType *int `json:"batchType" dc:"批次类型"`
Iccid string `json:"iccid" dc:"ICCID"`
Msisdn string `json:"msisdn" dc:"MSISDN"`
CurrentStockOnly bool `json:"currentStockOnly" form:"currentStockOnly" dc:"仅显示当前库存卡"`
}
func (in *BatchCardListParam) Filter(ctx context.Context) (err error) {
return
}
type BatchCardListModel struct {
allocationunits.Fields
RowNo int `json:"rowNo" dc:"行号"`
Iccid string `json:"iccid" dc:"ICCID"`
Msisdn string `json:"msisdn" dc:"MSISDN"`
Imsi string `json:"imsi" dc:"IMSI"`
DetailStatus int `json:"detailStatus" dc:"明细状态"`
}
type BatchDetailListParam struct {
request.PageInfo
BatchNo string `json:"batchNo" v:"required#批次号不能为空" dc:"批次编号"`
BatchType *int `json:"batchType" dc:"批次类型"`
DetailStatus *int `json:"detailStatus" dc:"明细状态"`
Iccid string `json:"iccid" dc:"ICCID"`
Keyword string `json:"keyword" dc:"关键字"`
}
func (in *BatchDetailListParam) Filter(ctx context.Context) (err error) {
return
}
type BatchDetailErrorModel struct {
Reason string `json:"reason" dc:"异常原因"`
}
type BatchDetailListModel struct {
allocationunits.Fields
RowNo int `json:"rowNo" dc:"行号"`
Iccid string `json:"iccid" dc:"ICCID"`
Msisdn string `json:"msisdn" dc:"MSISDN"`
Imsi string `json:"imsi" dc:"IMSI"`
Imei string `json:"imei" dc:"IMEI"`
ChanKey string `json:"chanKey" dc:"通道编号"`
CardType string `json:"cardType" dc:"卡类型"`
UpPkgCode string `json:"upPkgCode" dc:"上游套餐编码"`
SuppliersCode string `json:"suppliersCode" dc:"供应商编码"`
UpstreamActivationTime string `json:"upstreamActivationTime" dc:"上游激活时间"`
InsertToPlugEnabled string `json:"insertToPlugEnabled" dc:"是否贴片转插拔"`
CarrierTrafficCutoffEnabled string `json:"carrierTrafficCutoffEnabled" dc:"是否运营商达量断网"`
AgreementExpiryDate string `json:"agreementExpiryDate" dc:"协议到期时间"`
HasTestPeriod string `json:"hasTestPeriod" dc:"是否有测试期"`
TestPeriodDays string `json:"testPeriodDays" dc:"测试期天数"`
TestPeriodLatestExpiryDate string `json:"testPeriodLatestExpiryDate" dc:"测试期最晚过期日期"`
HasSilentPeriod string `json:"hasSilentPeriod" dc:"是否有沉默期"`
SilentPeriodDays string `json:"silentPeriodDays" dc:"沉默期天数"`
SilentPeriodLatestExpiryDate string `json:"silentPeriodLatestExpiryDate" dc:"沉默期最晚过期日期"`
DetailStatus int `json:"detailStatus" dc:"明细状态"`
Error *BatchDetailErrorModel `json:"error" dc:"错误信息"`
}