mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 站点白名单
This commit is contained in:
44
jsowell-ui/src/api/pile/whitelist.js
Normal file
44
jsowell-ui/src/api/pile/whitelist.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询站点白名单列表
|
||||
export function listWhitelist(query) {
|
||||
return request({
|
||||
url: '/pile/whitelist/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询站点白名单详细
|
||||
export function getWhitelist(id) {
|
||||
return request({
|
||||
url: '/pile/whitelist/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增站点白名单
|
||||
export function addWhitelist(data) {
|
||||
return request({
|
||||
url: '/pile/whitelist',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改站点白名单
|
||||
export function updateWhitelist(data) {
|
||||
return request({
|
||||
url: '/pile/whitelist',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除站点白名单
|
||||
export function delWhitelist(id) {
|
||||
return request({
|
||||
url: '/pile/whitelist/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user