45 lines
801 B
JavaScript
45 lines
801 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询充值渠道列表
|
|
export function listChannel(query) {
|
|
return request({
|
|
url: '/system/channel/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询充值渠道详细
|
|
export function getChannel(channelId) {
|
|
return request({
|
|
url: '/system/channel/' + channelId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增充值渠道
|
|
export function addChannel(data) {
|
|
return request({
|
|
url: '/system/channel',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改充值渠道
|
|
export function updateChannel(data) {
|
|
return request({
|
|
url: '/system/channel',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除充值渠道
|
|
export function delChannel(channelId) {
|
|
return request({
|
|
url: '/system/channel/' + channelId,
|
|
method: 'delete'
|
|
})
|
|
}
|