import request from '@/router/axios';
// 一级分类列表
// 获取
export const getContentCategoryFirstList = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategoryFirst/getContentCategoryFirstList',
    method: 'get',
    params: params
  })
}
// 新增一级分类
export const contentCategoryAdd = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategoryFirst/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}
// 修改
export const contentCategoryFirstEdit = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategoryFirst/edit',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}
// 删除
export const contentCategoryFirstDel = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategoryFirst/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}


// 二级列表
// 新增
export const contentCategorySecondAdd = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategorySecond/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}
// 编辑
export const contentCategorySecondEdit = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategorySecond/edit',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}
// 删除
export const contentCategorySecondDel = (params) => {
  return request({
    url: '/api/jobslink-api/desk/contentCategorySecond/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: params
  })
}

