Files
iotlcm/server/internal/model/t_sim_card_allocate.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

53 lines
2.7 KiB
Go

package model
type TSimCardAllocateTargetListParam struct {
Keyword string `json:"keyword" dc:"目标客户名称、编码或ID"`
}
type TSimCardAllocateTargetModel struct {
DeptId int64 `json:"deptId" dc:"目标客户部门ID"`
ParentId int64 `json:"parentId" dc:"上级部门ID"`
DeptKey string `json:"deptKey" dc:"客户编码"`
DeptName string `json:"deptName" dc:"客户名称"`
DeptCategory string `json:"deptCategory" dc:"部门类别"`
}
type TSimCardAllocatePrepareParam struct {
Input string `json:"input" dc:"每行填写ICCID,或ICCID MSISDN IMSI"`
TargetDeptId int64 `json:"targetDeptId" v:"required|min:1#请选择划拨目标客户|请选择划拨目标客户" dc:"目标客户部门ID"`
}
type TSimCardAllocateExcelSubmitParam struct {
TargetDeptId int64 `json:"targetDeptId" dc:"目标客户部门ID;兼容旧入口,Excel优先读取文件内目标客户字段"`
Remark string `json:"remark" dc:"划拨备注"`
}
type TSimCardAllocateBatchSubmitParam struct {
BatchNo string `json:"batchNo" v:"required#预处理批次号不能为空" dc:"预处理批次号"`
TargetDeptId int64 `json:"targetDeptId" dc:"目标客户部门ID"`
Remark string `json:"remark" dc:"划拨备注"`
}
type TSimCardAllocateBatchDetailModel struct {
RowNo int `json:"rowNo" dc:"行号"`
ItemId string `json:"itemId" dc:"ICCID"`
TargetDeptId int64 `json:"targetDeptId" dc:"目标客户部门ID"`
TargetDeptKey string `json:"targetDeptKey" dc:"目标客户编码"`
TargetDeptName string `json:"targetDeptName" dc:"目标客户名称"`
Status string `json:"status" dc:"校验状态"`
ErrorReason string `json:"errorReason,omitempty" dc:"失败原因"`
}
type TSimCardAllocateBatchModel struct {
BatchNo string `json:"batchNo" dc:"划拨批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
BatchAsyncStatus int `json:"batchAsyncStatus" dc:"异步处理状态"`
Target *TSimCardAllocateTargetModel `json:"target" dc:"目标客户"`
TotalCount int `json:"totalCount" dc:"总数量"`
ValidCount int `json:"validCount" dc:"有效数量"`
FailCount int `json:"failCount" dc:"失败数量"`
FailReason string `json:"failReason,omitempty" dc:"失败原因"`
Status string `json:"status" dc:"处理状态"`
Details []*TSimCardAllocateBatchDetailModel `json:"details" dc:"逐卡校验结果"`
}