store.js 466 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * 店铺相关API
  3. */
  4. import {http, Method} from '@/utils/request.js';
  5. /**
  6. * 获取店铺列表
  7. * @param params
  8. */
  9. export function getstoreList(params) {
  10. return http.request({
  11. url: '/store',
  12. method: Method.GET,
  13. params,
  14. });
  15. }
  16. /**
  17. * 获取店铺基本信息
  18. * @param storeId
  19. */
  20. export function getstoreBaseInfo(storeId) {
  21. return http.request({
  22. url: `/store/get/detail/${storeId}`,
  23. method: Method.GET,
  24. loading: false,
  25. });
  26. }