import request from '@/router/axios';
// banner
// 列表
export const getCarouselList =
  (type, menuId) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/getCarouselList',
      method: 'get',
      params: {
        type,
        menuId,
      }
    })
  }
  // 新增
export const getCarouselAdd =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/add',
      method: 'post',
      data: params
    })
  }
  // 修改
export const getCarouselEdit =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/edit',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: params
    })
  }
  // 删除
export const getCarouselDel =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/delete',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: params
    })
  }
  // 上移
export const getCarouselMoveup =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/moveup',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: params
    })
  }
  // 下移
export const getCarouselMovedown =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/movedown',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: params
    })
  }
  // 置顶
export const getCarouselMoveFirst =
  (params) => {
    return request({
      url: '/api/jobslink-api/desk/carousel/moveFirst',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: params
    })
  }
