import request from '@/utils/request' /** * 获取站点配置 * @returns {*} */ export function fetchSiteConfig() { return request({ url: '/v1/config/base', method: 'get' }) } /** * 更新站点配置 * @param data * @returns {*} */ export function updateSiteConfig(data) { return request({ url: '/v1/config/base', method: 'post', data }) } /** * 获取汇率配置 * @returns {*} */ export function fetchExchangeRateConfig() { return request({ url: '/v1/config/exchange-rate', method: 'get' }) } /** * 更新汇率配置 * @param data * @returns {*} */ export function updateExchangeRateConfig(data) { return request({ url: '/v1/config/exchange-rate', method: 'post', data }) } /** * 获取报单中心配置 * @returns {*} */ export function fetchStockistConfig() { return request({ url: '/v1/config/dec-role', method: 'get' }) } /** * 更新报单中心配置 * @param data * @param id * @returns {*} */ export function updateStockistConfig(data, id) { return request({ url: `/v1/config/dec-role-edit/${id}`, method: 'post', data }) } /** * 获取奖金配置 * @returns {*} */ export function fetchBonusConfig() { return request({ url: '/v1/config/bonus-opt', method: 'get' }) } /** * 更新奖金配置 * @param data * @returns {*} */ export function updateBonusConfig(data) { return request({ url: '/v1/config/bonus', method: 'post', data }) } /** * 更新会员等级配置 * @param data * @returns {*} */ export function updateBonusDecLevelConfig(data) { return request({ url: '/v1/config/bonus-dec-level', method: 'post', data }) } /** * 更新管理星级配置 * @param data * @returns {*} */ export function updateBonusEmpLevelConfig(data) { return request({ url: '/v1/config/bonus-emp-level', method: 'post', data }) } /** * 更新皇冠星级配置 * @param data * @returns {*} */ export function updateBonusCrownLevelConfig(data) { return request({ url: '/v1/config/bonus-crown-level', method: 'post', data }) } /** * 查询转账配置 * @returns {*} */ export function fetchTransferConfig() { return request({ url: '/v1/config/transfer', method: 'get' }) } /** * 更新转账配置 * @param data * @returns {*} */ export function updateTransferConfig(data) { return request({ url: '/v1/config/transfer', method: 'post', data }) } /** * 查询观察月份限制 * @returns {*} */ export function fetchMonthLimit() { return request({ url: '/v1/config/month-limit', method: 'get' }) } /** * 更新观察月份限制 * @param data * @returns {*} */ export function updateMonthLimit(data) { return request({ url: '/v1/config/month-limit', method: 'post', data }) } /** * 查询会员级别配置 * @returns {*} */ export function fetchDecLevelConfig() { return request({ url: '/v1/config/dec-level', method: 'get' }) } /** * 更新会员级别配置 * @param data * @param id * @returns {*} */ export function updateDecLevel(data, id) { return request({ url: `/v1/config/dec-level-edit/${id}`, method: 'post', data }) } /** * 更新转账配置 * @param data * @returns {*} */ export function updateDecLevelConfig(data) { return request({ url: '/v1/config/transfer', method: 'post', data }) } /** * 切换开关 * @param data * @returns {*} */ export function updateOpenUpgradeConfig(data) { return request({ url: '/v1/config/open-upgrade', method: 'post', data }) } /** * 查询其他配置 * @returns {*} */ export function fetchOtherConfig() { return request({ url: '/v1/config/other', method: 'get' }) } /** * 更新其他配置 * @param data * @returns {*} */ export function updateOtherConfig(data) { return request({ url: '/v1/config/other', method: 'post', data }) }