feat: 新增设备切卡模式
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m57s

This commit is contained in:
sexygoat
2026-04-18 16:40:41 +08:00
parent fd583e81e0
commit c5ee690ccd
16 changed files with 557 additions and 55 deletions

View File

@@ -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 }
)
}
}