const prefix = '/api/channel'

const apis = {
  user: {
    current: {
      url: `${prefix}/current`,
      method: 'GET',
      action: 'channel',
    },
    login: {
      url: `${prefix}/signin`,
      method: 'POST',
      action: 'channel',
      login: true
    },
    logoff: {
      url: `${prefix}/signout`,
      method: 'POST',
      action: 'channel',
      logout: true
    },
  },
  member: {
    list: {
      url: `${prefix}/taUser`,
      method: 'GET',
      action: 'channel',
    },
    get: {
      url: `${prefix}/taUser/:id`,
      method: 'GET',
      action: 'channel',
    },
    save: {
      url: `${prefix}/taUser`,
      method: 'POST',
      action: 'channel',
    },
    update: {
      url: `${prefix}/taUser/:id`,
      method: 'PUT',
      action: 'channel',
    },
  },
  channel: {
    list: {
      url: `${prefix}/taChannel`,
      method: 'GET',
      action: 'channel',
    },
    put: {
      url: `${prefix}/taChannel/:id`,
      method: 'PUT',
      action: 'channel',
    },
    post: {
      url: `${prefix}/taChannel`,
      method: 'POST',
      action: 'channel',
    },
    get: {
      url: `${prefix}/taChannel/:id`,
      method: 'GET',
      action: 'channel',
    },
  },
  sample: {
    list: {
      url: `${prefix}/taH5Demand`,
      method: 'GET',
      action: 'channel',
    },
    put: {
      url: `${prefix}/taH5Demand/batch`,
      method: 'PUT',
      action: 'channel',
    },
    get: {
      url: `${prefix}/taH5Demand/:id`,
      method: 'GET',
      action: 'channel',
    },
    update: {
      url: `${prefix}/taH5Demand/update/:id`,
      method: 'PUT',
      action: 'channel',
    },
    h5list: {
      url: `${prefix}/h5Sample/list`,
      method: 'GET',
      action: 'channel',
    },
    addh5: {
      url: `${prefix}/h5Sample/add`,
      method: 'POST',
      action: 'channel',
    },
    geth5: {
      url: `${prefix}/get/h5Sample/:id`,
      method: 'GET',
      action: 'channel',
    },
    updateh5: {
      url: `${prefix}/update/h5Sample/:id`,
      method: 'PUT',
      action: 'channel',
    },
    puth5: {
      url: `${prefix}/put/h5Sample/:id`,
      method: 'PUT',
      action: 'channel',
    }
  },
  image: {
    uploadForAnt: {
      url: `${prefix}/antd/image`,
      method: 'POST',
      action: 'center',
    },
    upload: {
      url: `${prefix}/image`,
      method: 'POST',
      action: 'center',
    },
  },
  openScreen: {
    list: {
      url: `${prefix}/listNoticeByCondition`,
      method: 'GET',
      action: 'channel',
    },
    post: {
      url: `${prefix}/taNotice`,
      method: 'post',
      action: 'channel',
    },
    // /api/admin/taNotice/{id}
    put: {
      url: `${prefix}/taNotice/:id`,
      method: 'put',
      action: 'channel',
    },

   
    get:{
      url: `${prefix}/taNotice/:id`,
      method: 'GET',
      action: 'channel',
    },
    delete:{
      url: `${prefix}/taNotice/batchDelete`,
      method: 'put',
      action: 'channel',
    },
    getSample:{
      url: `${prefix}/listH5SampleByCondition`,
      method: 'GET',
      action: 'channel',
    }
    // /api/admin/ListH5SampleByCondition
  },
  
  contact:{
    listContactByCondition: {
      url: `${prefix}/listContactByCondition`,
      method: 'GET',
      action: 'center',
    },
    taContactAdd: {
      url: `${prefix}/taContact`,
      method: 'POST',
      action: 'center',
    },
    batchDeleteContact: {
      url: `${prefix}/taContact/batchDelete`,
      method: 'PUT',
      action: 'center',
    },
    taContactGet: {
      url: `${prefix}/taContact/:id`,
      method: 'GET',
      action: 'center',
    },
    taContactUpdate: {
      url: `${prefix}/taContact/:id`,
      method: 'PUT',
      action: 'center',
    },
    list: {
      url: `${prefix}/taContact`,
      method: 'GET',
      action: 'channel',
    },
  }
  
}

export default apis;
