import request from '@/router/axios';

export const getList =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/list',
      method: 'get',
      params,
    })
  }
export const getInfo =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/queryById',
      method: 'get',
      params,
    })
  }

export const addEmploymentSurveyManage =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/add',
      method: 'post',
      data: params,
    })
  }
export const deleteEmploymentSurveyManage =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/delete',
      method: 'delete',
      params,
    })
  }

export const getQueryEmploymentSurveyUserBySurveyId =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/queryEmploymentSurveyUserBySurveyId',
      method: 'get',
      params,
    })
  }

export const publishEmploymentSurveyManage =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/publish',
      method: 'post',
      data: params,
    })
  }

export const disposeEmploymentSurveyManage =
  (params) => {
    return request({
      url: '/api/jobslink-api/content/employmentSurveyManage/dispose',
      method: 'post',
      data: params,
    })
  }
