diff --git a/src/api/modules/account/client.ts b/src/api/modules/account/client.ts index d8e3e03..98abb0f 100644 --- a/src/api/modules/account/client.ts +++ b/src/api/modules/account/client.ts @@ -8,17 +8,17 @@ export async function getClientListApi(params: searchParams): Promise { //获取用户杠杆选项 export const getLeverOptionsApi = () => { - return request.get('/user/getLeverOptions') + return request.get('/user/getLeverOptions', undefined, { showMessage: false }) } //编辑账户名称 diff --git a/src/api/modules/capital/currency.ts b/src/api/modules/capital/currency.ts index 17bf676..fac7f25 100644 --- a/src/api/modules/capital/currency.ts +++ b/src/api/modules/capital/currency.ts @@ -2,7 +2,7 @@ import { request } from '@/api' // 获取入金货币列表 export const getCurrencyList = () => { - return request.get('/currency/getCurrencyList') + return request.get('/currency/getCurrencyList', undefined, { showMessage: false }) } // 创建入金货币 export const createCurrency = (params: any) => { diff --git a/src/api/modules/capital/rechangeChanl.ts b/src/api/modules/capital/rechangeChanl.ts index 596c100..9e73122 100644 --- a/src/api/modules/capital/rechangeChanl.ts +++ b/src/api/modules/capital/rechangeChanl.ts @@ -2,7 +2,7 @@ import { request } from '@/api' // 获取入金渠道列表 export const getChannelList = () => { - return request.get('/channel/getChannelList') + return request.get('/channel/getChannelList', undefined, { showMessage: false }) } // 创建入金渠道列表 export const createChannel = (params: any) => { @@ -19,7 +19,7 @@ export const delChannel = (params: any) => { // 获取用户充值渠道列表 export const getRechargeChannelList = () => { - return request.get('/user/regchargeChannel') + return request.get('/user/regchargeChannel', undefined, { showMessage: false }) } // 用户充值 diff --git a/src/api/modules/capital/withdrawChanl.ts b/src/api/modules/capital/withdrawChanl.ts index 8a16d45..769a4d7 100644 --- a/src/api/modules/capital/withdrawChanl.ts +++ b/src/api/modules/capital/withdrawChanl.ts @@ -2,7 +2,7 @@ import { request } from '@/api' // 获取取款渠道列表 export const getChannelWithdrawList = () => { - return request.get('/channel/getChannelWithdrawList') + return request.get('/channel/getChannelWithdrawList', undefined, { showMessage: false }) } // 创建取款渠道 export const createChannelWithdraw = (params: any) => { @@ -19,5 +19,5 @@ export const delChannelWithdraw = (params: any) => { // 获取货币列表(用于下拉框) export const getChannelList = () => { - return request.get('/currency/getCurrencyList') + return request.get('/currency/getCurrencyList', undefined, { showMessage: false }) } \ No newline at end of file diff --git a/src/api/modules/dashboard.ts b/src/api/modules/dashboard.ts index 3fdddb1..123a7f0 100644 --- a/src/api/modules/dashboard.ts +++ b/src/api/modules/dashboard.ts @@ -3,11 +3,11 @@ import { request } from '@/api' // 获取账户列表 export async function getAllAccount(params: any): Promise { - return await request.get('/user/getAllAccount', params) + return await request.get('/user/getAllAccount', params, { showMessage: false }) } // 获取用户钱包资金 export async function getWalletCapital(): Promise { - return await request.get('/user/getWalletCapital') + return await request.get('/user/getWalletCapital', undefined, { showMessage: false }) } //重置密码 diff --git a/src/api/modules/funding/transfer.ts b/src/api/modules/funding/transfer.ts index 3983f91..c048b6d 100644 --- a/src/api/modules/funding/transfer.ts +++ b/src/api/modules/funding/transfer.ts @@ -2,7 +2,7 @@ import { request } from '@/api'; //获取钱包选项 export const getTransferWalletOptionsApi = () => { - return request.get('/user/getWalletOptions') + return request.get('/user/getWalletOptions', undefined, { showMessage: false }) } // 转账 export const transferApi = (params: any) => { diff --git a/src/api/modules/livenessVerification.ts b/src/api/modules/livenessVerification.ts index cf53b8c..8376aa7 100644 --- a/src/api/modules/livenessVerification.ts +++ b/src/api/modules/livenessVerification.ts @@ -4,7 +4,7 @@ import { request } from '@/api' * 获取照片 */ export async function getCardInfo(): Promise { - return request.get('/aws/getInfo') + return request.get('/aws/getInfo', { showMessage: false }) } /** diff --git a/src/api/modules/mould/handleFee.ts b/src/api/modules/mould/handleFee.ts index 8c1f84d..5047e4c 100644 --- a/src/api/modules/mould/handleFee.ts +++ b/src/api/modules/mould/handleFee.ts @@ -2,7 +2,7 @@ import { request } from '@/api' //获取手续费模板 export const getFeeSettingList = () => { - return request.get('/feeHandl/getFeeSettingList') + return request.get('/feeHandl/getFeeSettingList', undefined, { showMessage: false }) } //获取手续费模板详情 export const getFeeSettingDetail = (params: any) => { diff --git a/src/api/modules/profile/personalCenter.ts b/src/api/modules/profile/personalCenter.ts index d1188e3..622eacd 100644 --- a/src/api/modules/profile/personalCenter.ts +++ b/src/api/modules/profile/personalCenter.ts @@ -10,7 +10,7 @@ import type { // 获取用户信息 export async function getUserInfoApi(): Promise { - return request.get('/user/getUserInfo'); + return request.get('/user/getUserInfo', undefined, { showMessage: false }); } // 修改语言类型 diff --git a/src/api/modules/risk/index.ts b/src/api/modules/risk/index.ts index 1b2c537..667c142 100644 --- a/src/api/modules/risk/index.ts +++ b/src/api/modules/risk/index.ts @@ -2,7 +2,7 @@ import { request } from '@/api'; //获取风险列表 export const getRiskListApi = () => { - return request.get('/riskControl/getRiskControlList') + return request.get('/riskControl/getRiskControlList', undefined, { showMessage: false }) } //添加风险控制 export const addRiskApi = (params: any) => { diff --git a/src/api/modules/system/role.ts b/src/api/modules/system/role.ts index 27ff165..c7f6258 100644 --- a/src/api/modules/system/role.ts +++ b/src/api/modules/system/role.ts @@ -13,7 +13,7 @@ import type { * @returns Promise 角色列表数据 */ export async function getRoleApi(): Promise { - return request.get('/roles/list'); + return request.get('/roles/list', undefined, { showMessage: false }); } /** diff --git a/src/api/modules/trade/variety.ts b/src/api/modules/trade/variety.ts index 1e661af..5e289bb 100644 --- a/src/api/modules/trade/variety.ts +++ b/src/api/modules/trade/variety.ts @@ -6,7 +6,7 @@ export async function getVarietyListApi(params: any): Promise { } //获取交易组列表 export async function getTradeGroupListApi(): Promise { - return request.get('/contractVariety/getGroupList') + return request.get('/contractVariety/getGroupList', undefined, { showMessage: false }) } //创建合约品种 @@ -26,5 +26,5 @@ export async function syncVarietyApi(): Promise { //获取品种枚举 export async function getVarietyEnumsApi(): Promise { - return request.get('/contractVariety/getVarietyEnums') + return request.get('/contractVariety/getVarietyEnums', undefined, { showMessage: false }) } \ No newline at end of file diff --git a/src/api/modules/user.ts b/src/api/modules/user.ts index 95a1e34..0148e0b 100644 --- a/src/api/modules/user.ts +++ b/src/api/modules/user.ts @@ -91,7 +91,7 @@ export async function editUserApi(params: { * 检查账号是否为子账号的交易账户 */ export async function checkAccountIdIsSonForUser(params: { account_id: string }) { - return request.get('/user/checkAccountIdIsSonForUser', params) + return request.get('/user/checkAccountIdIsSonForUser', params, { showMessage: false }) } /** * 获取用户信息