feat: 初始化
This commit is contained in:
60
services/capital/deposit.ts
Normal file
60
services/capital/deposit.ts
Normal file
@ -0,0 +1,60 @@
|
||||
import { UserLanguage } from '@/utils/const';
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
export function getPayChannel() {
|
||||
return request({ url: '/api/app/capital/getPayChannel', method: 'GET', data: { qcc_language: UserLanguage } });
|
||||
}
|
||||
|
||||
export function getGoldRange(data: { mt4_server: number; mt4_login: number }) {
|
||||
return request({ url: '/api/app/capital/queryByMt4Login', method: 'GET', data });
|
||||
}
|
||||
|
||||
export function getCurrencyByPay(data: { pay_id: number }) {
|
||||
return request({ url: '/api/app/capital/getCurrencyByPay', method: 'GET', data });
|
||||
}
|
||||
|
||||
interface GetExchangeRateParams {
|
||||
mt4_server: string;
|
||||
mt4_login: string;
|
||||
exchange_currency: string;
|
||||
type: string;
|
||||
io: string;
|
||||
}
|
||||
export function getExchangeRate(data: GetExchangeRateParams) {
|
||||
return request({ url: '/api/app/capital/getExchangeRate', method: 'GET', data });
|
||||
}
|
||||
|
||||
interface GetIbMtLoginBankParams {
|
||||
qcc_language: string;
|
||||
id: number;
|
||||
currency_type: string;
|
||||
}
|
||||
export function getIbMtLoginBank(data: GetIbMtLoginBankParams) {
|
||||
return request({ url: '/api/app/capital/getIbMtLoginBankAsGoldInPage', method: 'GET', data });
|
||||
}
|
||||
|
||||
export function getSubsidyById(id: number) {
|
||||
return request({ url: `/api/app/capital//in/getSubsidyById?id=${id}`, method: 'GET' });
|
||||
}
|
||||
|
||||
export function saveDeposit(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/capital/goldIn/save', method: 'POST', data });
|
||||
}
|
||||
export function getDepositSign(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/remittance/getSign', method: 'GET', data });
|
||||
}
|
||||
export function getDepositDataById(id: number) {
|
||||
return request({ url: `/api/app/remittance/query?id=${id}`, method: 'GET' });
|
||||
}
|
||||
export function saveDepositData(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/remittance/save', method: 'POST', data });
|
||||
}
|
||||
export function getActInfo(actId: string) {
|
||||
return request({ url: '/api/app/activity/getActInfo', method: 'GET', data: { actId, qcc_language: UserLanguage } });
|
||||
}
|
||||
export function getPresentedCredit(data: { act_id: string; usd_amount: number }) {
|
||||
return request({ url: '/api/app/capital/goldIn/calculatePresentedCredit', method: 'GET', data });
|
||||
}
|
||||
export function getBankImg(id: number) {
|
||||
return request({ url: '/api/app/remittance/getBankImg', method: 'GET', data: { id }, responseType: 'arraybuffer' });
|
||||
}
|
12
services/capital/transfer.ts
Normal file
12
services/capital/transfer.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
export function saveTransfer(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/capital/transfer/save', method: 'POST', data });
|
||||
}
|
||||
export function saveIBTransfer(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/ibHome/transfer/save', method: 'POST', data });
|
||||
}
|
||||
|
||||
export function getIfOTParams(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/capital/getIfOTParams', method: 'GET', data });
|
||||
}
|
11
services/capital/withDraw.ts
Normal file
11
services/capital/withDraw.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
export function saveWithdraw(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/capital/goldOut/save', method: 'POST', data });
|
||||
}
|
||||
export function saveIBWithdraw(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/ibHome/fundOut/save', method: 'POST', data });
|
||||
}
|
||||
export function sendBankMail(data: Record<string, any>) {
|
||||
return request({ url: '/api/app/personal/sendBankMail', method: 'POST', data });
|
||||
}
|
Reference in New Issue
Block a user