liveRoom.js 758 Bytes
import { http } from '@/main'

const defaultPath = 'scrm.api.live.'

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

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

const getLiveRoomInfoApi = params => {
  params.method = `${defaultPath}get.live.room.by.id`
  return http({
    url: 'rop-scrm-live/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

export { getLiveRoomListApi, insertLiveRoomApi, getLiveRoomInfoApi }