takeGood.js 522 Bytes
import { http } from '@/main'

const defaultPath = 'scrm.api.shopmall.goods.'

const getListApi = params => {
  params.method = `${defaultPath}supplyPage`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const takeGookApi = params => {
  params.method = `${defaultPath}batchTake`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

export default { getListApi, takeGookApi }