import request from '@/services'

// 获取职位类型
export const getPosition = () => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SePositionInfo,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc'
  )
}

// 发布、修改职位
export const postPosition = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.PostJobs,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 更新职位开发状态
export const updatePositionStatus = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.UpPositionStatus,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 企业查询企业信息
export const getCompanyInfo = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SeEnterpriseInfo,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 企业修改企业信息
export const editCompanyInfo = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.UpdateEnterprise,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 企业端岗位管理列表
export const getCompanyPositionList = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SeJobListQY,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 企业端岗位管理列表
export const getCompanyPositionDetail = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SeJobContent,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 个人用户查询详细岗位列表
export const getUserPostionList = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SeUserJobsList,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

// 个人用户查询详细岗位
export const getUserPostionDetail = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiService.SeJobDetails,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}
// 企业添加管理员
export const addAdmin = (data: any) => {
  return request.post(
    '/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.AddAdmin,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}
