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
58 lines
2.3 KiB
Go
58 lines
2.3 KiB
Go
package v1
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model"
|
|
)
|
|
|
|
type SimSubscribeReq struct {
|
|
g.Meta `path:"/sim-subscribe" method:"POST" tags:"V3 Change API" summary:"Single SIM subscription renewal"`
|
|
AppId string `json:"appId" v:"required#appId is required"`
|
|
Iccid string `json:"iccid,omitempty"`
|
|
Msisdn string `json:"msisdn,omitempty"`
|
|
Imsi string `json:"imsi,omitempty"`
|
|
PackageId string `json:"packageId" v:"required#packageId is required"`
|
|
Validity int `json:"validity" v:"required|min:1#validity is required|validity must be greater than 0"`
|
|
Remark string `json:"remark,omitempty"`
|
|
}
|
|
|
|
type BatchSimSubscribeReq struct {
|
|
g.Meta `path:"/batch-sim-subscribe" method:"POST" tags:"V3 Change API" summary:"Batch SIM subscription renewal"`
|
|
AppId string `json:"appId" v:"required#appId is required"`
|
|
Cards []model.CommonRenewCard `json:"cards,omitempty"`
|
|
Iccid []string `json:"iccid,omitempty"`
|
|
PackageId string `json:"packageId" v:"required#packageId is required"`
|
|
Validity int `json:"validity" v:"required|min:1#validity is required|validity must be greater than 0"`
|
|
Remark string `json:"remark,omitempty"`
|
|
}
|
|
|
|
type RenewReq struct {
|
|
g.Meta `path:"/renew" method:"POST" tags:"V3 Common API" summary:"Renewal compatibility endpoint"`
|
|
model.CommonRenewParam
|
|
}
|
|
|
|
type RenewRes struct{ model.CommonRenewRes }
|
|
type SingleRenewRes struct{ model.CommonSingleRenewRes }
|
|
type TrafficCutoffConfigRes struct {
|
|
model.CommonTrafficCutoffConfigRes
|
|
}
|
|
type SingleTrafficCutoffRes struct {
|
|
model.CommonSingleTrafficCutoffRes
|
|
}
|
|
|
|
type SimTrafficCutoffReq struct {
|
|
g.Meta `path:"/sim-traffic-cutoff" method:"POST" tags:"V3 Change API" summary:"Single traffic cutoff configuration"`
|
|
model.CommonTrafficCutoffSingleParam
|
|
}
|
|
|
|
type BatchSimTrafficCutoffReq struct {
|
|
g.Meta `path:"/batch-sim-traffic-cutoff" method:"POST" tags:"V3 Change API" summary:"Batch traffic cutoff configuration"`
|
|
model.CommonTrafficCutoffConfigParam
|
|
}
|
|
|
|
type TrafficCutoffConfigReq struct {
|
|
g.Meta `path:"/traffic-cutoff-config" method:"POST" tags:"V3 Common API" summary:"Batch traffic cutoff compatibility endpoint"`
|
|
model.CommonTrafficCutoffConfigParam
|
|
}
|