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

55 lines
3.1 KiB
Go

package model
type TSimWarningConfigApplyOptions struct {
ItemType int `json:"itemType" dc:"对象类型:1单卡,2流量池;默认1"`
WarnUnit int `json:"warnUnit" v:"required#预警类型不能为空" dc:"预警单位:1MB,2百分比,3天数,4月数"`
FirstWarn float64 `json:"firstWarn" dc:"第一档预警阈值;Excel和完整批量输入由每行填写"`
SecondWarn float64 `json:"secondWarn" dc:"第二档预警阈值"`
ThirdWarn float64 `json:"thirdWarn" dc:"第三档预警阈值"`
WarnMethods string `json:"warnMethods" dc:"预警方式:默认3平台消息;多选逗号分隔"`
WarnPhones string `json:"warnPhones" dc:"预警手机号,多个逗号分隔"`
WarnEmails string `json:"warnEmails" dc:"预警邮箱,多个逗号分隔"`
WarnEmailCode string `json:"warnEmailCode" dc:"预警邮箱验证码;兼容旧参数,当前配置不校验"`
AutoAction int `json:"autoAction" dc:"第三次是否断网:0否,3是"`
IsEnabled *int `json:"isEnabled" dc:"是否启用:1启用,0停用"`
Remark string `json:"remark" dc:"备注"`
}
type TSimWarningConfigEmailCodeParam struct {
Email string `json:"email" v:"required#邮箱不能为空" dc:"预警邮箱"`
CaptchaID string `json:"captchaId" v:"required#图片验证码不能为空" dc:"图片验证码ID"`
CaptchaValue string `json:"captchaValue" v:"required#图片验证码不能为空" dc:"图片验证码值"`
}
type TSimWarningConfigExcelSubmitParam struct {
TSimWarningConfigApplyOptions
}
type TSimWarningConfigInputSubmitParam struct {
Input string `json:"input" v:"required#批量输入内容不能为空" dc:"预警配置批量输入;完整格式使用|分隔,每行包含对象编号、阈值、提醒方式及联系方式"`
TSimWarningConfigApplyOptions
}
type TSimWarningConfigRangeSubmitParam struct {
StartIccid string `json:"startIccid" v:"required#起始ICCID不能为空" dc:"起始ICCID卡号"`
EndIccid string `json:"endIccid" v:"required#结束ICCID不能为空" dc:"结束ICCID卡号"`
StartMsisdn string `json:"startMsisdn" v:"required#起始MSISDN不能为空" dc:"起始MSISDN号码"`
EndMsisdn string `json:"endMsisdn" v:"required#结束MSISDN不能为空" dc:"结束MSISDN号码"`
StartImsi string `json:"startImsi" v:"required#起始IMSI不能为空" dc:"起始IMSI号码"`
EndImsi string `json:"endImsi" v:"required#结束IMSI不能为空" dc:"结束IMSI号码"`
TSimWarningConfigApplyOptions
}
type TSimWarningConfigSubmitRes struct {
BatchNo string `json:"batchNo" dc:"批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
BatchAsyncStatus int `json:"batchAsyncStatus" dc:"批次异步状态"`
Total int `json:"total" dc:"解析总行数"`
ValidCount int `json:"validCount" dc:"校验通过行数"`
FailCount int `json:"failCount" dc:"失败行数"`
}
type TSimWarningConfigExcelSubmitRes = TSimWarningConfigSubmitRes
type TSimWarningConfigInputSubmitRes = TSimWarningConfigSubmitRes
type TSimWarningConfigRangeSubmitRes = TSimWarningConfigSubmitRes