import {
  QueryGoodsInfoByCategorySub,
  GetAppCategoryInfo,
} from '@/api/interface/mall';
import request from '../request';

export class MallAPI {
  // 小程序分类信息--含一二级分类
  static getAppCategoryInfo: GetAppCategoryInfo = (params) =>
    request.get('/pms/category/appCategoryInfo', {
      params,
      baseURL: 'https://test.iuav.com',
    });

  // 根据子分类查询商品信息
  static queryGoodsInfoByCategorySub: QueryGoodsInfoByCategorySub = (params) =>
    request.post('/pms/app/goods/queryGoodsInfoByCategorySub', params);
}
