sale.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/sheep/request';
  2. const SaleApi = {
  3. // 申请成为商户
  4. createMerchant: (data) => {
  5. return request({
  6. url: '/sale/merchant-apply/create',
  7. method: 'POST',
  8. data,
  9. custom: {
  10. showSuccess: true,
  11. successMsg: '申请成功'
  12. },
  13. });
  14. },
  15. // 获取商户信息
  16. getMerchant: () => {
  17. return request({
  18. url: '/sale/merchant-apply/get',
  19. method: 'GET',
  20. });
  21. },
  22. // 变动商户信息
  23. updateMerchant: (data) => {
  24. return request({
  25. url: '/sale/merchant-apply/update',
  26. method: 'PUT',
  27. data,
  28. custom: {
  29. showSuccess: true,
  30. successMsg: '变动成功'
  31. },
  32. });
  33. },
  34. getMerchantPage: (params) => {
  35. return request({
  36. url: '/sale/merchant-apply-log/page',
  37. method: 'GET',
  38. params,
  39. custom: {
  40. showLoading: true,
  41. },
  42. });
  43. },
  44. checkContactNumber: (params) => {
  45. return request({
  46. url: '/system/users/getUserMobile',
  47. method: 'GET',
  48. params,
  49. custom: {
  50. showLoading: true,
  51. },
  52. });
  53. },
  54. };
  55. export default SaleApi;