import { MainRequest } from '../../utils'

/**
 * 获取首页商品列表
 * @returns
 */

export const getIndexDataApi = (data) => MainRequest('/xxxx/xxx', data)

/**
 * @description 获取分类
 * @param {
 *  id  {String} 二级分类类目,
 *  goodsType {String}  1-家具 2-材料
 * } data
 * @returns
 */

export const getGoodsTypesApi = (data) => MainRequest('/xxxx/xxx', data)

/**
 * @description 获取当前分类下的二级类目
 */

export const getTypeDetailList = (data) => MainRequest('/xxxx/xxx', data)

/**
 *@exports 根据id查询商品
 * @param {*} data
 * @returns
 */

export const getUserCouponApi = (data) => MainRequest('/xxxx/xxx', data)

export const getAllCategoryList = (data) => MainRequest('/xxxx/xxx', data)

export const getApponitGoodsApi = (data) => MainRequest('/xxxx/xxx', data)

/**
 *@exports 根据关键字查询商品
 * @param {*} data
 * @returns
 */

export const getDtsBrandGoods = (data) => MainRequest('/xxxx/xxx', data, 'POST')

