import Request from '../common/request.js';
let request = new Request().http

// 提交提现申请
export function submitWithdraw(data) {
	return request('/app/dockerInfo/launchCreditWithdraw', data, 'POST', 'application/json;charset=UTF-8');
}

// 获取提现信息（可提现金额等）
export function getWithdrawInfo() {
	return request('/store/app/withdraw/getInfo', null, 'GET');
}

// 获取提现记录列表
export function getWithdrawList(data) {
	return request('/store/app/withdraw/getList', data, 'GET');
}

// 获取提现详情
export function getWithdrawDetail(data) {
	return request('/store/app/withdraw/getDetail', data, 'GET');
}

// 取消提现申请
export function cancelWithdraw(data) {
	return request('/store/app/withdraw/cancel', data, 'POST', 'application/json;charset=UTF-8');
}

// 获取提现状态列表
export function getWithdrawStatusList() {
	return request('/store/app/withdraw/getStatusList', null, 'GET');
}
