import request from '@/sheep/request'; import { t } from '@/locale'; const SaleApi = { // 申请成为商户 createMerchant: (data) => { return request({ url: '/sale/merchant-apply/create', method: 'POST', data, custom: { showSuccess: true, successMsg: t('common.apply_success') }, }); }, // 获取商户信息 getMerchant: () => { return request({ url: '/sale/merchant-apply/get', method: 'GET', }); }, // 变动商户信息 updateMerchant: (data) => { return request({ url: '/sale/merchant-apply/update', method: 'PUT', data, custom: { showSuccess: true, successMsg: t('common.change_success') }, }); }, getMerchantPage: (params) => { return request({ url: '/sale/merchant-apply-log/page', method: 'GET', params, custom: { showLoading: true, }, }); }, checkContactNumber: (params) => { return request({ url: '/system/users/getUserMobile', method: 'GET', params, custom: { showLoading: true, }, }); }, checkSystemUser: (params) => { return request({ url: '/sale/merchant-apply/isSystemUserByMobile', method: 'GET', params, custom: { showLoading: true, }, }); }, }; export default SaleApi;