国标级联通道共享支持自定义通道编号和名称

This commit is contained in:
648540858
2024-08-29 16:47:46 +08:00
parent e55cd08b08
commit 8dc27d1353
9 changed files with 680 additions and 311 deletions

View File

@@ -279,4 +279,12 @@ public class PlatformController {
Assert.notEmpty(param.getDeviceIds(), "设备ID不可为空");
platformChannelService.removeChannelByDevice(param.getPlatformId(), param.getDeviceIds());
}
@Operation(summary = "自定义共享通道信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
@PostMapping("/channel/custom/update")
@ResponseBody
public void updateCustomChannel(@RequestBody PlatformChannel channel) {
Assert.isTrue(channel.getId() > 0, "共享通道ID必须存在");
platformChannelService.updateCustomChannel(channel);
}
}