parent
519eea16ad
commit
2e754d65e5
@ -0,0 +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 })
|
||||
},
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电价模型月份 VO
|
||||
export interface ElectricityDateVO {
|
||||
// 电网电价月份模型 ID
|
||||
id: number
|
||||
// 电网电价模型id
|
||||
priceId: number
|
||||
// 计费模型名称
|
||||
name: string
|
||||
// 时段数量
|
||||
periodsAmount: number
|
||||
// 序列
|
||||
no: number
|
||||
// 开始日期
|
||||
startDate: string
|
||||
// 结束日期
|
||||
endDate: string
|
||||
// 尖电价
|
||||
theTipPrice: number
|
||||
// 峰电价
|
||||
peakPrice: number
|
||||
// 平电价
|
||||
flatPrice: number
|
||||
// 谷电价
|
||||
theValleyPrice: number
|
||||
// 是否启用:0启用;1禁用
|
||||
status: number
|
||||
// 备注
|
||||
remark: string
|
||||
// 数据来源:0:云平台;1;三方运营商
|
||||
source: number
|
||||
// 唯一编码
|
||||
code: string
|
||||
}
|
||||
|
||||
// 电价模型月份 API
|
||||
export const ElectricityDateApi = {
|
||||
// 查询电价模型月份分页
|
||||
getElectricityDatePage: async (params: any) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/page`, params })
|
||||
},
|
||||
|
||||
// 查询电价模型月份详情
|
||||
getElectricityDate: async (id: number) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电价模型月份
|
||||
createElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.post({ url: `/cloud/electricity-date/create`, data })
|
||||
},
|
||||
|
||||
// 修改电价模型月份
|
||||
updateElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.put({ url: `/cloud/electricity-date/update`, data })
|
||||
},
|
||||
|
||||
// 删除电价模型月份
|
||||
deleteElectricityDate: async (id: number) => {
|
||||
return await request.delete({ url: `/cloud/electricity-date/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电价模型月份 Excel
|
||||
exportElectricityDate: async (params) => {
|
||||
return await request.download({ url: `/cloud/electricity-date/export-excel`, params })
|
||||
},
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电价模型小时 VO
|
||||
export interface ElectricityTimeVO {
|
||||
// 电网电价分时模型 ID
|
||||
id: number
|
||||
// 分时模型(月日)id
|
||||
dateId: number
|
||||
// 计费模型名称
|
||||
name: string
|
||||
// 1尖2峰3平4谷
|
||||
type: number
|
||||
// 尖电价开始时刻
|
||||
startTime: string
|
||||
// 尖电价结束时刻
|
||||
endTime: string
|
||||
// 电价模型id
|
||||
electricityModelId: number
|
||||
}
|
||||
|
||||
// 电价模型小时 API
|
||||
export const ElectricityTimeApi = {
|
||||
// 查询电价模型小时分页
|
||||
getElectricityTimePage: async (params: any) => {
|
||||
return await request.get({ url: `/cloud/electricity-time/page`, params })
|
||||
},
|
||||
|
||||
// 查询电价模型小时详情
|
||||
getElectricityTime: async (id: number) => {
|
||||
return await request.get({ url: `/cloud/electricity-time/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电价模型小时
|
||||
createElectricityTime: async (data: ElectricityTimeVO) => {
|
||||
return await request.post({ url: `/cloud/electricity-time/create`, data })
|
||||
},
|
||||
|
||||
// 修改电价模型小时
|
||||
updateElectricityTime: async (data: ElectricityTimeVO) => {
|
||||
return await request.put({ url: `/cloud/electricity-time/update`, data })
|
||||
},
|
||||
|
||||
// 删除电价模型小时
|
||||
deleteElectricityTime: async (id: number) => {
|
||||
return await request.delete({ url: `/cloud/electricity-time/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电价模型小时 Excel
|
||||
exportElectricityTime: async (params) => {
|
||||
return await request.download({ url: `/cloud/electricity-time/export-excel`, params })
|
||||
},
|
||||
}
|
Loading…
Reference in new issue