七月迭代短暂完结,还有很多后端的关键东西没有弄,这是一版赶时间做的东西
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s
This commit is contained in:
@@ -21,6 +21,15 @@ func registerIotCardRoutes(router fiber.Router, handler *admin.IotCardHandler, i
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Register(iotCards, doc, groupPath, "POST", "/batch-update-realname-policy", handler.BatchUpdateRealnamePolicy, RouteSpec{
|
||||
Summary: "批量更新卡实名认证策略",
|
||||
Description: "单次最多500条;先校验整批资产及数据权限,再在单事务内全成全败更新。",
|
||||
Tags: []string{"IoT卡管理"},
|
||||
Input: new(dto.BatchUpdateAssetRealnamePolicyRequest),
|
||||
Output: new(dto.BatchUpdateAssetRealnamePolicyResponse),
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Register(iotCards, doc, groupPath, "POST", "/import", importHandler.Import, RouteSpec{
|
||||
Summary: "批量导入IoT卡(ICCID+MSISDN)",
|
||||
Description: `仅平台用户可操作。
|
||||
@@ -118,4 +127,13 @@ func registerIotCardRoutes(router fiber.Router, handler *admin.IotCardHandler, i
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Register(iotCards, doc, groupPath, "PUT", "/:iccid/speed-tier", handler.SetSpeedTier, RouteSpec{
|
||||
Summary: "设置卡固定限速档位",
|
||||
Description: "仅对有权限的 IoT 卡按 ICCID 设置固定 Gateway 限速档位;-1 表示恢复不限速。不支持设备限速,也不会通过设备绑定关系间接限速。",
|
||||
Tags: []string{"IoT卡管理"},
|
||||
Input: new(dto.SetIotCardSpeedTierRequest),
|
||||
Output: new(dto.SetIotCardSpeedTierResponse),
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user