mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 01:20:15 +08:00
后管新增 用户鉴权卡界面
This commit is contained in:
44
jsowell-ui/src/api/pile/card.js
Normal file
44
jsowell-ui/src/api/pile/card.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充电站鉴权卡列表
|
||||
export function listCard(query) {
|
||||
return request({
|
||||
url: '/pile/card/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充电站鉴权卡详细
|
||||
export function getCard(id) {
|
||||
return request({
|
||||
url: '/pile/card/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充电站鉴权卡
|
||||
export function addCard(data) {
|
||||
return request({
|
||||
url: '/pile/card',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充电站鉴权卡
|
||||
export function updateCard(data) {
|
||||
return request({
|
||||
url: '/pile/card',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充电站鉴权卡
|
||||
export function delCard(id) {
|
||||
return request({
|
||||
url: '/pile/card/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user