Showing
1 changed file
with
5 additions
and
2 deletions
| ... | ... | @@ -264,13 +264,16 @@ export const getGATEWAYdevice = async (params: { |
| 264 | 264 | ); |
| 265 | 265 | }; |
| 266 | 266 | |
| 267 | -export const getGatewayDevice = (params: Record<'organizationId' | 'transportType', string>) => { | |
| 268 | - const { organizationId, transportType } = params; | |
| 267 | +export const getGatewayDevice = ( | |
| 268 | + params: Record<'organizationId' | 'transportType' | 'gatewayId', string> | |
| 269 | +) => { | |
| 270 | + const { organizationId, transportType, gatewayId } = params; | |
| 269 | 271 | return defHttp.get<DeviceRecord[]>({ |
| 270 | 272 | url: DeviceManagerApi.GATEWAY_DEVICE, |
| 271 | 273 | params: { |
| 272 | 274 | organizationId, |
| 273 | 275 | transportType, |
| 276 | + gatewayId, | |
| 274 | 277 | }, |
| 275 | 278 | }); |
| 276 | 279 | }; | ... | ... |