96b1edff45
iotlcm-upstream-chan:运营商上游通道适配服务(统一 /sim/* 协议)。 - 内联原私有依赖:yunze-public → internal/pub/(10 包 18 文件), yunze-pb/pb → internal/pb/(9 文件);Consul 注册改用官方 gogf/gf/contrib/registry/consul/v2(API 兼容) - Go module:yz-svr → git.5iot.com/iotlcm-public/iotlcm-upstream-chan - 修复 mingqian 包测试:实现重构后 `adapter.operations` 字段已移除, 测试断言按当前实现语义重写(不改产品行为) - 凭据与内部标识脱敏:MySQL/Redis/Consul 凭据、私网与生产 IP、 内网域名、真实手机号、注释里的真实 token/transid - 移除内部资产:CI 触发器、生产通道种子 SQL、真实凭据测试资源文档 - Dockerfile 改用公共基础镜像,移除写死的 registry 凭据 - 补 Apache-2.0 LICENSE,重写 README,LF 行尾 + .gitattributes
165 lines
5.8 KiB
Go
165 lines
5.8 KiB
Go
package v1
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/model"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
// 物联网卡基本信息查询 请求参数
|
|
type SimBasicInfoReq struct {
|
|
g.Meta `path:"/sim/query/sim-basic-info" tags:"CardQuery" method:"GET,POST" summary:"物联网卡基本信息查询"`
|
|
model.SimBasicInfoInput
|
|
}
|
|
|
|
// 物联网卡基本信息查询 响应参数
|
|
type SimBasicInfoRes = model.SimBasicInfoOutput
|
|
|
|
// 物联网卡在线信息实时查询 请求参数
|
|
type SimSessionReq struct {
|
|
g.Meta `path:"/sim/query/sim-session" tags:"CardQuery" method:"GET,POST" summary:"物联网卡在线信息实时查询"`
|
|
model.SimSessionInput
|
|
}
|
|
|
|
type SimSessionRes = model.SimSessionOutput
|
|
|
|
// 物联网卡卡状态查询 请求参数
|
|
type SimCardStatusReq struct {
|
|
g.Meta `path:"/sim/query/sim-status" tags:"CardQuery" method:"GET,POST" summary:"物联网卡卡状态查询"`
|
|
model.SimCardStatusInput
|
|
}
|
|
|
|
type SimCardStatusRes = model.SimCardStatusOutput
|
|
|
|
type SimStopReasonReq struct {
|
|
g.Meta `path:"/sim/query/sim-stop-reason" tags:"CardQuery" method:"GET,POST" summary:"SIM card stop reason query"`
|
|
model.SimStopReasonInput
|
|
}
|
|
|
|
type SimStopReasonRes = model.SimStopReasonOutput
|
|
|
|
type SimFrozenStateReq struct {
|
|
g.Meta `path:"/sim/query/sim-frozen-state" tags:"CardQuery" method:"GET,POST" summary:"SIM card frozen state query"`
|
|
model.SimFrozenStateInput
|
|
}
|
|
|
|
type SimFrozenStateRes = model.SimFrozenStateOutput
|
|
|
|
// 物联网卡批量状态查询 请求参数
|
|
type SimCardStatusBatchReq struct {
|
|
g.Meta `path:"/sim/query/sim-status-batch" tags:"CardQuery" method:"GET,POST" summary:"电信-物联网卡批量状态查询"`
|
|
model.SimCardStatusInput
|
|
}
|
|
|
|
type SimCardStatusBatchRes = model.SimCardStatusOutput
|
|
|
|
// 物联网卡机卡绑定状态查询 请求参数
|
|
type SimCardBindStatusReq struct {
|
|
g.Meta `path:"/sim/query/sim-card-bind-status" tags:"CardQuery" method:"GET,POST" summary:"物联网卡机卡绑定状态查询"`
|
|
model.SimCardBindStatusInput
|
|
}
|
|
|
|
// 物联网卡机卡绑定状态查询 响应参数
|
|
type SimCardBindStatusRes = model.SimCardBindStatusOutput
|
|
|
|
// 物联网卡设备状态查询 请求参数
|
|
type SimDeviceStatusReq struct {
|
|
g.Meta `path:"/sim/query/sim-device-status" tags:"CardQuery" method:"GET,POST" summary:"物联网卡设备状态查询"`
|
|
model.SimDeviceStatusInput
|
|
}
|
|
|
|
// 物联网卡设备状态查询 响应参数
|
|
type SimDeviceStatusRes = model.SimDeviceStatusOutput
|
|
|
|
// 物联网卡地域限制状态查询 请求参数
|
|
type SimRegionLimitStatusReq struct {
|
|
g.Meta `path:"/sim/query/sim-region-limit-status" tags:"CardQuery" method:"GET,POST" summary:"物联网卡地域限制状态查询"`
|
|
model.SimRegionLimitStatusInput
|
|
}
|
|
|
|
// 物联网卡地域限制状态查询 响应参数
|
|
type SimRegionLimitStatusRes = model.SimRegionLimitStatusOutput
|
|
|
|
// 物联网卡设备标识码查询 请求参数
|
|
type SimImeiReq struct {
|
|
g.Meta `path:"/sim/query/sim-imei" tags:"CardQuery" method:"GET,POST" summary:"物联网卡设备标识码查询"`
|
|
model.SimImeiInput
|
|
}
|
|
|
|
type SimImeiRes = model.SimImeiOutput
|
|
|
|
// 物联网卡数据流量查询 请求参数
|
|
type SimDataUsageReq struct {
|
|
g.Meta `path:"/sim/query/sim-datausage" tags:"CardQuery" method:"GET,POST" summary:"物联网卡数据流量查询"`
|
|
model.SimDataUsageInput
|
|
}
|
|
|
|
type SimDataUsageRes = model.SimDataUsageOutput
|
|
|
|
// 物联网卡达量限速档位查询 请求参数
|
|
type SimDataDiagnosisReq struct {
|
|
g.Meta `path:"/sim/query/sim-data-diagnosis" tags:"CardQuery" method:"GET,POST" summary:"物联网卡达量限速档位查询"`
|
|
model.SimDataDiagnosisInput
|
|
}
|
|
|
|
type SimDataDiagnosisRes = model.SimDataDiagnosisOutput
|
|
|
|
// 物联网卡数据流量查询 月查询 请求参数
|
|
type SimDataUsageMonthlyReq struct {
|
|
g.Meta `path:"/sim/query/sim-datausage-monthly" tags:"CardQuery" method:"GET,POST" summary:"物联网卡数据流量查询 月查询"`
|
|
model.SimDataUsageMonthlyInput
|
|
}
|
|
|
|
type SimDataUsageMonthlyRes = model.SimDataUsageMonthlyOutput
|
|
|
|
// 物联网卡数据流量查询 月批量查询 请求参数
|
|
type SimDataUsageMonthlyBatchReq struct {
|
|
g.Meta `path:"/sim/query/sim-datausage-monthly-batch" tags:"CardQuery" method:"GET,POST" summary:"电信-物联网卡数据流量查询 月批量查询"`
|
|
model.SimDataUsageMonthlyInput
|
|
}
|
|
|
|
type SimDataUsageMonthlyBatchRes = model.SimDataUsageMonthlyOutput
|
|
|
|
// 物联网卡数据流量查询 日查询 请求参数
|
|
type SimDataUsageDailyReq struct {
|
|
g.Meta `path:"/sim/query/sim-datausage-daily" tags:"CardQuery" method:"GET,POST" summary:"物联网卡数据流量查询 日查询"`
|
|
model.SimDataUsageDailyInput
|
|
}
|
|
|
|
// 物联网卡数据流量查询 日查询 响应参数
|
|
type SimDataUsageDailyRes = model.SimDataUsageDailyOutput
|
|
|
|
// 物联网卡数据流量查询 日批量查询 请求参数
|
|
type SimDataUsageDailyBatchReq struct {
|
|
g.Meta `path:"/sim/query/sim-datausage-daily-batch" tags:"CardQuery" method:"GET,POST" summary:"电信-物联网卡数据流量查询 日批量查询"`
|
|
model.SimDataUsageDailyInput
|
|
}
|
|
|
|
type SimDataUsageDailyBatchRes = model.SimDataUsageDailyOutput
|
|
|
|
// 物联网卡已开通APN信息查询 请求参数
|
|
type SimApnInfoReq struct {
|
|
g.Meta `path:"/sim/query/sim-apn-info" tags:"CardQuery" method:"GET,POST" summary:"物联网卡已开通APN信息查询"`
|
|
model.SimApnInfoInput
|
|
}
|
|
|
|
type SimApnInfoRes = model.SimApnInfoOutput
|
|
|
|
// 物联网卡状态变更 请求参数
|
|
type SimStatusChangeReq struct {
|
|
g.Meta `path:"/sim/change/sim-status" tags:"CardChange" method:"GET,POST" summary:"物联网卡状态变更"`
|
|
model.SimCardStatusChangeInput
|
|
}
|
|
|
|
// 物联网卡状态变更 响应参数
|
|
type SimStatusChangeRes = model.SimCardStatusChangeOutput
|
|
|
|
// 物联网卡APN变更 请求参数
|
|
type SimApnChangeReq struct {
|
|
g.Meta `path:"/sim/change/sim-apn" tags:"CardChange" method:"GET,POST" summary:"物联网卡APN变更"`
|
|
model.SimCardOperateChangeApnInput
|
|
}
|
|
|
|
// 物联网卡APN变更 响应参数
|
|
type SimApnChangeRes = model.SimCardOperateChangeApnOutput
|