This commit is contained in:
@@ -230,4 +230,12 @@ export class DeviceService extends BaseService {
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动停用设备
|
||||
* @param id 设备ID
|
||||
*/
|
||||
static deactivateDevice(id: number): Promise<BaseResponse> {
|
||||
return this.patch<BaseResponse>(`/api/admin/devices/${id}/deactivate`, {})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user