live.js 814 Bytes
import { http } from '@/main'

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

const getListApi = params => {
  params.method = `${defaultPath}page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
/**新增或编辑直播间 */
const addOrUpdataLiveRoomApi = params => {
  params.method = `${defaultPath}add.or.update`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}
/** 直播间详情 */
const LiveRoomDetailApi = params => {
  params.method = `${defaultPath}detail`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
  })
}
export default { getListApi, addOrUpdataLiveRoomApi, LiveRoomDetailApi }