feat: 新增设备切卡模式
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m57s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m57s
This commit is contained in:
@@ -233,4 +233,19 @@ export class DeviceService extends BaseService {
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置切卡模式
|
||||
* @param identifier 设备标识(虚拟号 / IMEI / SN)
|
||||
* @param switchMode 切卡模式(0=自动切卡,1=手动切卡)
|
||||
*/
|
||||
static setSwitchMode(
|
||||
identifier: string,
|
||||
switchMode: number
|
||||
): Promise<BaseResponse<DeviceOperationResponse>> {
|
||||
return this.post<BaseResponse<DeviceOperationResponse>>(
|
||||
`/api/admin/devices/by-identifier/${identifier}/switch-mode`,
|
||||
{ switch_mode: switchMode }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user