import type { AddInventoryRecordParams, BatchAddInventoryParams, BindEbikeParams } from './types/operator' import { http } from '@/http/http' /** * 获取运营商列表 */ export function getOperatorAllListAPI() { return http.get('/staff/ebikeOperator/list') } /** * 添加库存 */ export function addOperatorAPI(data: AddInventoryRecordParams) { return http.post('/operations/ebikeInventory/addInventory', data) } /** * 库存总览 */ export function getInventoryOverviewAPI() { return http.get('/operations/ebikeInventory/list') } /** * 批量入库 */ export function batchAddInventoryAPI(data: BatchAddInventoryParams) { return http.post('/operations/ebikeEcuInfo/batchSave', data) } /** * 中控总览 */ export function getEcuOverviewAPI() { return http.get('/operations/ebikeEcuInfo/overview') } /** * 整车绑定 */ export function bindEbikeAPI(data: BindEbikeParams) { return http.post('/operations/ebikeBikeInfo/bind', data) } /** * 用户获取车辆详情 */ export function getEbikeDetailAPI(bikeCode: string) { return http.get(`/operations/ebikeBikeInfo/api/bikeInfo`, { bikeCode }) } /** * 更换电池(换电工单用) */ export function postOperatoringChangeBatteryAPI(data: { bikeCode: string batteryCode: string }) { return http.post('/operations/ebikeBikeOrder/batteryChange', data) }