ebike-plus-wx-maintenance/src/api/centerControl.ts

19 lines
484 B
TypeScript
Raw Normal View History

import type { IExecuteCommand } from '@/api/types/centerControl'
2025-10-31 11:29:01 +08:00
import { http } from '@/http/http'
/**
* 线
2025-10-31 11:29:01 +08:00
*/
export function checkSnOrBikeCodeAPI(query: { ecuSn: string, bikeCode: string }) {
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
}