fix: 套餐

This commit is contained in:
sexygoat
2026-04-29 11:29:53 +08:00
parent 686bddad79
commit 1dc4701540
44 changed files with 3912 additions and 150 deletions

View File

@@ -241,11 +241,11 @@ export class DeviceService extends BaseService {
*/
static setSwitchMode(
identifier: string,
switchMode: number
data: { iot_card_id: number; switch_mode: 0 | 1 }
): Promise<BaseResponse<DeviceOperationResponse>> {
return this.post<BaseResponse<DeviceOperationResponse>>(
`/api/admin/devices/by-identifier/${identifier}/switch-mode`,
{ switch_mode: switchMode }
data
)
}
}