Files
pj_h5_cloud/src/sheep/api/wallet.ts
T
2025-01-06 19:09:03 +08:00

94 lines
1.8 KiB
TypeScript

import request from "@/sheep/utils/request";
export default {
all: () =>
request({
url: "/wallet/wallet-manage/app/get-all",
method: "GET",
custom: {
showLoading: false,
},
}),
getQrCode: (params: any) =>
request({
url: "pay/wallet/get-qr-code",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
detail: (params: any) =>
request({
url: "wallet/wallet-manage/app/detail",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
bind: (data: any) =>
request({
url: "pay/wallet/bind-card",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
freeze: (data: any) =>
request({
url: "pay/wallet/apply-freeze",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
balanceDetail: (params: any) =>
request({
url: "pay/wallet/get-id",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
transaction: (params: any) =>
request({
url: "wallet/wallet-transaction/page",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
summary: (params: any) =>
request({
url: "pay/wallet-transaction/get-summary-by-id",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
rechargeList: (params: any) =>
request({
url: "wallet/wallet-recharge-package/app/list",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
recharge: (data: any) =>
request({
url: "pay/wallet-recharge/create",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
};