text: import request from '@/api/index'
  
  // 直播房间列表
  export function getChannelRoomsList(params) {
    return request.get('/channelRooms', params)
  }
  
  // 房间修改
  export function editChannelRooms(params) {
    return request.putJson(`/channelRoom/${params.id}`, params)
  }
  
  // 房间排序
  export function sortChannelRoom(params) {
    return request.patch(`/channelRoom/sort`, params)
  }
  
  // 房间详情
  export function getChannelRoomDetail(params) {
    return request.get(`/channelRoom/${params.id}`, params)
  }
  
  // 房间删除
  export function delChannelRoom(params) {
    return request.delete(`/channelRoom/${params.id}`, params)
  }
  
  // 创建房间
  export function createChannelRoom(params) {
    return request.postJson(`/channelRoom`, params)
  }
  
  // 频道列表
  export function getChannelsList(params) {
    return request.get('/channels', params)
  }
  
  // 频道创建
  export function createChannels(params) {
    return request.postJson('/channel', params)
  }
  
  // 分类列表
  export function getChannelCategories(params) {
    return request.get('/channelCategories', params)
  }
  
  // 分类创建
  export function addChannelCategory(params) {
    return request.postJson('/channelCategory', params)
  }
  
  // 分类删除
  export function delChannelCategory(params) {
    return request.delete(`/channelCategory/${params.id}`, params)
  }
  
  // 分类修改
  export function editChannelCategory(params) {
    return request.putJson(`/channelCategory/${params.id}`, params)
  }
  
  // 频道删除
  export function delChannel(params) {
    return request.delete(`/channel/${params.id}`, params)
  }
  
  // 频道修改
  export function editChannel(params) {
    return request.putJson(`/channel/${params.id}`, params)
  }
  
  // // 场次列表
  export function getRoomSessionsList(params) {
    return request.get(`/roomSessions`, params)
  }
  
  // 场次删除
  export function delSession(params) {
    return request.delete(`/roomSession/${params.id}`, params)
  }
  
  // 场次新增
  export function addSession(params) {
    return request.postJson('/roomSession', params)
  }
  
  // 分类排序
  export function sortCamps(params) {
    return request.postJson('/channelCategory/sort', params)
  }
  