Files
sionrui/yudao-ui-admin/src/api/pay/channel.js
YunaiV 5d2d52020e mall + pay:简化 pay 的复杂度
1. 移除 merchant 表设计
2. 移除 app 和 channel 的导出
2023-07-09 12:40:26 +08:00

51 lines
856 B
JavaScript

import request from '@/utils/request'
// 创建支付渠道
export function createChannel(data) {
return request({
url: '/pay/channel/create',
method: 'post',
data: data
})
}
// 更新支付渠道
export function updateChannel(data) {
return request({
url: '/pay/channel/update',
method: 'put',
data: data
})
}
// 删除支付渠道
export function deleteChannel(id) {
return request({
url: '/pay/channel/delete?id=' + id,
method: 'delete'
})
}
// 获得支付渠道分页
export function getChannelPage(query) {
return request({
url: '/pay/channel/page',
method: 'get',
params: query
})
}
// 获得支付渠道
export function getChannel(appId,code) {
return request({
url: '/pay/channel/get-channel',
params:{
appId:appId,
code:code
},
method: 'get'
})
}