mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-05 10:30:12 +08:00
commit
This commit is contained in:
74
jsowell-ui/src/api/pile/station.js
Normal file
74
jsowell-ui/src/api/pile/station.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from "@/utils/request";
|
||||
import {parseTime} from "@/utils/common";
|
||||
|
||||
// 查询充电站信息列表
|
||||
export function listStation(query) {
|
||||
return request({
|
||||
url: "/pile/station/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询充电站信息详细
|
||||
export function getStation(id) {
|
||||
return request({
|
||||
url: "/pile/station/" + id,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 查询充电站信息详细
|
||||
export function getStationInfo(stationId) {
|
||||
return request({
|
||||
url: "/pile/station/getStationInfo/" + stationId,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 根据运营商id 查询充电站列表
|
||||
export function getStationListByMerchantId(merchantId) {
|
||||
return request({
|
||||
url: "/pile/station/selectStationListByMerchantId",
|
||||
method: "post",
|
||||
data: {
|
||||
merchantId: merchantId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增充电站信息
|
||||
export function addStation(data) {
|
||||
return request({
|
||||
url: "/pile/station",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改充电站信息
|
||||
export function updateStation(data) {
|
||||
console.log("修改充电站信息data", data)
|
||||
return request({
|
||||
url: "/pile/station",
|
||||
method: "put",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除充电站信息
|
||||
export function delStation(id) {
|
||||
return request({
|
||||
url: "/pile/station/" + id,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
// 快速建站接口
|
||||
export function fastCreateStation(data) {
|
||||
return request({
|
||||
url: "/pile/station/fastCreateStation",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user