74 lines
1.3 KiB
JavaScript
74 lines
1.3 KiB
JavaScript
/*
|
|
* 手太欠
|
|
* 愿这世界都如故事里一样 美好而动人~
|
|
*/
|
|
|
|
import { req } from "../request"
|
|
|
|
//我的提现
|
|
const Index = data => req({
|
|
url: "withdraws/index",
|
|
data: data
|
|
})
|
|
|
|
//我的提现
|
|
const Indexcreate = data => req({
|
|
url: "withdraws/index/create",
|
|
data: data
|
|
})
|
|
|
|
//提现-提交
|
|
const Indexpost = data => req({
|
|
url: "withdraws/index",
|
|
method: "POST",
|
|
data: data
|
|
})
|
|
|
|
//我的银行账户
|
|
const Cards = data => req({
|
|
url: "withdraws/accounts",
|
|
data: data
|
|
})
|
|
|
|
//添加账户前置
|
|
const Creates = () => req({
|
|
url: "withdraws/accounts/create"
|
|
})
|
|
|
|
//添加账户
|
|
const cardBind = data => req({
|
|
url: "withdraws/accounts",
|
|
method: "POST",
|
|
data: data
|
|
})
|
|
|
|
//编辑前置
|
|
const cardEdit = (bank_account_id, data) => req({
|
|
url: "withdraws/accounts/" + bank_account_id + "/edit",
|
|
data: data
|
|
})
|
|
|
|
//编辑-提交
|
|
const Confirm = (bank_account_id, data) => req({
|
|
url: "withdraws/accounts/" + bank_account_id,
|
|
method: "PUT",
|
|
data: data
|
|
})
|
|
|
|
//删除
|
|
const cardsDel = (bank_account_id) => req({
|
|
url: "withdraws/accounts/" + bank_account_id,
|
|
method: "DELETE"
|
|
})
|
|
|
|
export default ({
|
|
Index,
|
|
Indexcreate,
|
|
Indexpost,
|
|
Cards,
|
|
Creates,
|
|
cardBind,
|
|
cardEdit,
|
|
Confirm,
|
|
cardsDel,
|
|
}) |