merchant.ts 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * 店铺分类列表
  3. */
  4. export function getShopCategory() {
  5. return request.get(`shop/web/shop_apply/shop_category`)
  6. }
  7. /**
  8. * 店铺套餐列表
  9. */
  10. export function getSiteGroup() {
  11. return request.get(`shop/web/shop_apply/site_group`)
  12. }
  13. /**
  14. * 添加店铺申请
  15. */
  16. export function setShopApply(params: Record<string, any>) {
  17. return request.post(`shop/web/shop_apply`, params, { showSuccessMessage: true })
  18. }
  19. /**
  20. * 编辑店铺申请
  21. */
  22. export function editShopApply(params: Record<string, any>) {
  23. return request.put(`shop/web/shop_apply/${ params.apply_id }`, params, { showSuccessMessage: true })
  24. }
  25. /**
  26. * 店铺申请列表
  27. */
  28. export function getShopApplyList() {
  29. return request.get(`shop/web/shop_apply`)
  30. }
  31. /**
  32. * 店铺申请列表详情
  33. */
  34. export function getShopApply(apply_id: number) {
  35. return request.get(`shop/web/shop_apply/${ apply_id }`)
  36. }
  37. /**
  38. * 店铺申请协议
  39. */
  40. export function getShopApplyAgreement() {
  41. return request.get(`shop/web/shop_apply/agreement`)
  42. }