import request from '@/router/axios';
export const getContentList =
  (current, size, params) => {
  return request({
    url: '/api/jobslink-api/desk/content/getContentList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const contentSave = (params) => {
  return request({
    url: '/api/jobslink-api/desk/content/save',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}

export const contentEdit = (params) => {
  return request({
    url: '/api/jobslink-api/desk/content/edit',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}

export const contentDel = (params) => {
  return request({
    url: '/api/jobslink-api/desk/content/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}
