From cdbb0fcfc7cd8dd2e77de3e317b0ecbbcb051cc8 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Mon, 19 Aug 2024 15:20:38 +0800 Subject: [PATCH] =?UTF-8?q?8.19=20=20=E7=94=B5=E6=B1=A0=E5=9E=8B=E5=8F=B7A?= =?UTF-8?q?PI=20=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../batteryManagement/batteryModel/index.ts | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/api/batteryManagement/batteryModel/index.ts b/src/api/batteryManagement/batteryModel/index.ts index 346cdf5..5bbfe6c 100644 --- a/src/api/batteryManagement/batteryModel/index.ts +++ b/src/api/batteryManagement/batteryModel/index.ts @@ -1,52 +1,52 @@ -import request from '@/config/axios' - -// 电池型号管理 VO -export interface BatteryTypeVO { - // 索引编号 - id: number - // 运营商id - operatorId: number - // 电池型号代码 - btyTypeCode: string - // 电池型号名称 - btyTypeName: string - // 电池型号等级 - btyTypeLevel: string - // 电池型号状态 - btyTypeState: number - // 电池型号描述 - btyTypeDesc: string -} - -// 电池型号管理 API -export const BatteryTypeApi = { - // 查询电池型号管理分页 - getBatteryTypePage: async (params: any) => { - return await request.get({ url: `/cloud/battery-type/page`, params }) - }, - - // 查询电池型号管理详情 - getBatteryType: async (id: number) => { - return await request.get({ url: `/cloud/battery-type/get?id=` + id }) - }, - - // 新增电池型号管理 - createBatteryType: async (data: BatteryTypeVO) => { - return await request.post({ url: `/cloud/battery-type/create`, data }) - }, - - // 修改电池型号管理 - updateBatteryType: async (data: BatteryTypeVO) => { - return await request.put({ url: `/cloud/battery-type/update`, data }) - }, - - // 删除电池型号管理 - deleteBatteryType: async (id: number) => { - return await request.delete({ url: `/cloud/battery-type/delete?id=` + id }) - }, - - // 导出电池型号管理 Excel - exportBatteryType: async (params) => { - return await request.download({ url: `/cloud/battery-type/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 电池型号管理 VO +export interface BatteryTypeVO { + // 索引编号 + id: number + // 运营商id + operatorId: number + // 电池型号代码 + btyTypeCode: string + // 电池型号名称 + btyTypeName: string + // 电池型号等级 + btyTypeLevel: string + // 电池型号状态 + btyTypeState: number + + btyTypeDesc: string +} + +// 电池型号管理 API +export const BatteryTypeApi = { + // 查询电池型号管理分页 + getBatteryTypePage: async (params: any) => { + return await request.get({ url: `/cloud/battery-type/page`, params }) + }, + + // 查询电池型号管理详情 + getBatteryType: async (id: number) => { + return await request.get({ url: `/cloud/battery-type/get?id=` + id }) + }, + + // 新增电池型号管理 + createBatteryType: async (data: BatteryTypeVO) => { + return await request.post({ url: `/cloud/battery-type/create`, data }) + }, + + // 修改电池型号管理 + updateBatteryType: async (data: BatteryTypeVO) => { + return await request.put({ url: `/cloud/battery-type/update`, data }) + }, + + // 删除电池型号管理 + deleteBatteryType: async (id: number) => { + return await request.delete({ url: `/cloud/battery-type/delete?id=` + id }) + }, + + // 导出电池型号管理 Excel + exportBatteryType: async (params) => { + return await request.download({ url: `/cloud/battery-type/export-excel`, params }) + }, +}