case.js 1.63 KB
import { http } from '@/main'

const url = 'rop-scrm-shopmall/router'
// 分页查询频道列表
const getCaseListApi = params => {
  params.method = `scrm.api.shopmall.discover.case.page`
  return http({
    url,
    method: 'post',
    data: params,
    sign: true
  })
}

const getVideoListApi = params => { 
    params.method = `scrm.api.shopmall.tencentcloudmedia.page`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}

const delCaseApi = params => { 
    params.method = `scrm.api.shopmall.discover.case.delete`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}

const addCaseApi = params => { 
    params.method = `scrm.api.shopmall.discover.case.insert.or.update`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}


const getCarSeriesApi= params => {
    params.method = 'scrm.api.carlife.common.getCarBrandList'
    return http({
      url: 'rop-scrm-carlife/router',
      method: 'GET',
      data: params,
      sign: true
    })
}

const getCaseDetailApi = params => {
    params.method = 'scrm.api.shopmall.discover.case.detail'
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}


const topCaseApi = params => {
    params.method = 'scrm.api.shopmall.discover.case.updateToTop'
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}
export default { 
    getCaseListApi,
    getVideoListApi,
    delCaseApi,
    addCaseApi,
    getCarSeriesApi,
    getCaseDetailApi,
    topCaseApi
}