import service from '@/utils/service'

const baseUrl = process.env.VUE_APP_HOST + '/manage/api';

const appControlApi = {};

appControlApi.baseUrl = baseUrl;


appControlApi.getAppControlList = () => {
  return service({
    url: `${baseUrl}/appControl/list`,
    method: 'get',
  })
};

appControlApi.updateAppControlList = data => {
  return service({
    url: `${baseUrl}/appControl/v1`,
    method: 'put',
    data:data
  })
};

appControlApi.addAppControlList = data =>{
  return service({
    url: `${baseUrl}/appControl/v1`,
    method: 'post',
    data:data
  })
}

appControlApi.getGameList = () => {
  return service({
    url: process.env.VUE_APP_HOST  + `/manager/api/feedback/game/list`,
    method: 'get'
  })
};

appControlApi.getChannelList = () => {
  return service({
    url: `${baseUrl}/appControl/channel/list`,
    method: 'get'
  })
};


// miniTestApi.getMiniClassList = () => {
//   return service({
//     url: `${baseUrl}/miniTest/v1/list`,
//     method: 'get',
//   })
// };


export default appControlApi
