// 关于登录
import { useRequest } from '@/use/useHttp'

export { LoginApi } from './login/index'

export {
  ProductAbsorbContrast,
  SelectProductListApi,
  ColorListApi,
  ColorDetailedApi,
  ColorSamplingSaveApi,
  TextureSaveApi,
  FindColorListApi,
} from './product/index'

// 关于购物页面
export { ShoppingCartDeleteApi, ShoppingCartListApi } from './shopping/index'

// 关于发货列表
export {
  DeliverNoticeOrderList,
  DeliverNoticeOrder,
  DeliveryNoticeOrderUpload,
  DeliveryNoticeOrderAudit,
  DeliveryNoticeOrderRejection,
  EnumDeliveryNoticeTypeList,
  EnumSaleorderStatus,
} from './delivery/index'

// 关于提货列表
export {
  EnumTakeGoodsOrderStatus,
  EnumTakeGoodsOrderTypeList,
  TakeGoodsOrderList,
  TakeGoodsOrderRefuse,
  TakeGoodsOrderAudit,
  TakeGoodsOrder,
} from './takeDelivery/index'

// 关于销售统计
export {
  EnumMarketingDepartmentApi,
  EnumSalesTypeApi,
  SalesmanRankApi,
  ProductRankApi,
  PurchaserRankApi,
  SupplierRankApi,
  SaleOrderDataFormdataFormStatus,
  SaleOrderDataFormApi,
} from './statistic/index'
// 邀请码
export {
  GetInvitationInfo,
  GenBarCodeOrQrCode,
  GetInvitationList,
} from './inviteCode/index'
/**
 *  系列列表
 * @returns
 */
export const KindListApi = () => {
  return useRequest({
    url: '/v2/mp/product/kind/list',
    method: 'get',
  })
}

/**
 *  面料列表
 * @returns
 */
export const ProductListApi = () => {
  return useRequest({
    url: '/v2/mp/product/list',
    method: 'get',
  })
}

/**
 * 获取面料种类子分类
 */
export const GetClassList = () => {
  return useRequest({
    url: '/v2/mp/product/kind/sub/list',
    method: 'get',
  })
}
