2025-11-05 16:48:52 +08:00
|
|
|
import type { IExecuteCommand } from '@/api/types/centerControl'
|
2025-10-31 11:29:01 +08:00
|
|
|
import { http } from '@/http/http'
|
|
|
|
|
|
|
|
|
|
/**
|
2025-11-05 16:48:52 +08:00
|
|
|
* 设备是否在线
|
2025-10-31 11:29:01 +08:00
|
|
|
*/
|
|
|
|
|
export function checkSnOrBikeCodeAPI(query: { ecuSn: string, bikeCode: string }) {
|
2025-11-05 16:48:52 +08:00
|
|
|
return http.get<any>('/operations/ebikeEcuInfo/online', query)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 中控执行命令
|
|
|
|
|
*/
|
|
|
|
|
export function executeCommandAPI(query: IExecuteCommand) {
|
2025-12-02 11:03:41 +08:00
|
|
|
return http.get<any>('/operations/ebikeEcuInfo/executeCommand', query, {}, {
|
|
|
|
|
hideErrorToast: true,
|
|
|
|
|
})
|
2025-10-31 11:29:01 +08:00
|
|
|
}
|