This commit is contained in:
@@ -170,7 +170,7 @@ export class DeviceService extends BaseService {
|
||||
*/
|
||||
static rebootDevice(imei: string): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.post<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-imei/${imei}/reboot`,
|
||||
`/api/admin/devices/by-identifier/${imei}/reboot`,
|
||||
{}
|
||||
)
|
||||
}
|
||||
@@ -181,7 +181,7 @@ export class DeviceService extends BaseService {
|
||||
*/
|
||||
static resetDevice(imei: string): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.post<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-imei/${imei}/reset`,
|
||||
`/api/admin/devices/by-identifier/${imei}/reset`,
|
||||
{}
|
||||
)
|
||||
}
|
||||
@@ -196,7 +196,7 @@ export class DeviceService extends BaseService {
|
||||
data: SetSpeedLimitRequest
|
||||
): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.put<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-imei/${imei}/speed-limit`,
|
||||
`/api/admin/devices/by-identifier/${imei}/speed-limit`,
|
||||
data
|
||||
)
|
||||
}
|
||||
@@ -211,7 +211,7 @@ export class DeviceService extends BaseService {
|
||||
data: SwitchCardRequest
|
||||
): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.post<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-imei/${imei}/switch-card`,
|
||||
`/api/admin/devices/by-identifier/${imei}/switch-card`,
|
||||
data
|
||||
)
|
||||
}
|
||||
@@ -226,7 +226,7 @@ export class DeviceService extends BaseService {
|
||||
data: SetWiFiRequest
|
||||
): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.put<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-imei/${imei}/wifi`,
|
||||
`/api/admin/devices/by-identifier/${imei}/wifi`,
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user