feat: 对接银行模块接口,即将上线功能

This commit is contained in:
橙子
2024-03-14 00:29:01 +08:00
parent 9dc72ef3ee
commit 069e411dc4
10 changed files with 387 additions and 66 deletions

View File

@@ -0,0 +1,43 @@
import request from "@/config/axios/service";
//得到利息趋势
export function getInterestList() {
return request({
url: "/bank/interest",
method: "get"
});
}
// 获取用户的银行卡
export function getBankCardList() {
return request({
url: "/bank",
method: "get",
});
}
// 申请银行卡
export function applyingBankCard() {
return request({
url: "/bank/applying",
method: "post"
});
}
// 提款
export function drawMoney(cardId) {
return request({
url: `/bank/draw/${cardId}`,
method: "put",
data: data,
});
}
// 存款
export function delUser(cardId,moneyNum) {
return request({
url: `/bank/deposit/${cardId}/${moneyNum}`,
method: "put"
});
}