【修复】IoT 网关调用 biz 的设备注册 / 子设备注册 RPC URL 缺前缀,导致动态注册失败
parent
f5f53d59ca
commit
c3125dbc92
|
|
@ -64,12 +64,12 @@ public class IotDeviceApiImpl implements IotDeviceCommonApi {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CommonResult<IotDeviceRegisterRespDTO> registerDevice(IotDeviceRegisterReqDTO reqDTO) {
|
public CommonResult<IotDeviceRegisterRespDTO> registerDevice(IotDeviceRegisterReqDTO reqDTO) {
|
||||||
return doPost("/register", reqDTO, new ParameterizedTypeReference<>() { });
|
return doPost("/rpc-api/iot/device/register", reqDTO, new ParameterizedTypeReference<>() { });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CommonResult<List<IotSubDeviceRegisterRespDTO>> registerSubDevices(IotSubDeviceRegisterFullReqDTO reqDTO) {
|
public CommonResult<List<IotSubDeviceRegisterRespDTO>> registerSubDevices(IotSubDeviceRegisterFullReqDTO reqDTO) {
|
||||||
return doPost("/register-sub", reqDTO, new ParameterizedTypeReference<>() { });
|
return doPost("/rpc-api/iot/device/register-sub", reqDTO, new ParameterizedTypeReference<>() { });
|
||||||
}
|
}
|
||||||
|
|
||||||
private <T, R> CommonResult<R> doPost(String url, T body,
|
private <T, R> CommonResult<R> doPost(String url, T body,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue