12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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;
|