shop.js 499 B

123456789101112131415161718
  1. import request from './request.js';
  2. const listTagByDistrict = async ({district}) => {
  3. const res = await request.get({ url: `/shop/listTagByDistrict/${district}` });
  4. return res.data;
  5. }
  6. const getShopList = async data => {
  7. const res = await request.get({ url: `/shop/list`, data });
  8. return res.data;
  9. }
  10. const getShopInfo = async ({ shopId }) => {
  11. const res = await request.get({ url: `/shop/info/${shopId }`});
  12. return res.data;
  13. }
  14. export default { listTagByDistrict, getShopList, getShopInfo };