45 lines
1001 B
TypeScript
Raw Normal View History

2025-10-23 15:38:39 +08:00
import type { AddInventoryRecordParams, BatchAddInventoryParams, BindEbikeParams } from './types/operator'
2025-10-15 16:03:42 +08:00
import { http } from '@/http/http'
/**
*
*/
export function getOperatorAllListAPI() {
return http.get<any>('/staff/ebikeOperator/list')
}
/**
*
*/
export function addOperatorAPI(data: AddInventoryRecordParams) {
return http.post<any>('/operations/ebikeInventory/addInventory', data)
}
/**
*
*/
export function getInventoryOverviewAPI() {
return http.get<any>('/operations/ebikeInventory/list')
}
/**
*
*/
export function batchAddInventoryAPI(data: BatchAddInventoryParams) {
return http.post<any>('/operations/ebikeEcuInfo/batchSave', data)
}
2025-10-23 15:38:39 +08:00
/**
*
*/
export function getEcuOverviewAPI() {
return http.get<any>('/operations/ebikeEcuInfo/overview')
}
/**
*
*/
export function bindEbikeAPI(data: BindEbikeParams) {
return http.post<any>('/operations/ebikeBikeInfo/bind', data)
}