提交
This commit is contained in:
51
pxdj-front-h5/api/withdrawal.js
Normal file
51
pxdj-front-h5/api/withdrawal.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 获取提现记录列表
|
||||
* @param {Object} params 查询参数
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export function getWithdrawalList(params) {
|
||||
return request({
|
||||
url: '/withdrawal/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请提现
|
||||
* @param {Object} data 提现数据
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export function applyWithdrawal(data) {
|
||||
return request({
|
||||
url: '/withdrawal/apply',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提现详情
|
||||
* @param {Number} id 提现记录ID
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export function getWithdrawalDetail(id) {
|
||||
return request({
|
||||
url: `/withdrawal/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消提现申请
|
||||
* @param {Number} id 提现记录ID
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export function cancelWithdrawal(id) {
|
||||
return request({
|
||||
url: `/withdrawal/cancel/${id}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user