import request from '@/utils/request';

/**
 * 咨询机构合作台账 查询项目列表 以及 查询参数
 * @param {object} params 
 * @returns 
 */
export const getConsultingOrgProjectListWithSearchApi = (params) => request({
  url: "/advisory/body/getProjectList",
  method: "get",
  params
});

/**
 * 咨询机构合作台账 查询企业列表 以及 查询参数
 * @param {object} params 
 * @returns 
 */
export const getConsultingOrgEenterpriseListWithSearchApi = (params) => request({
  url: "/advisory/body/getAdvisoryBodyList",
  method: "get",
  params
});

/**
 * 咨询机构合作台账 查询企业列表 以及 查询参数
 * @param {object} params 
 * @returns 
 */
export const getConsultingOrgEenterpriseDetailWithSearchApi = (params) => request({
  url: "/advisory/body/getCooperateProjectDetailList",
  method: "get",
  params
});

/**
 * 咨询机构项目列表 项目跳转详情获取
 * @param {*} params 
 * @returns 
 */
export const getConsultingOrgProjectDetailApi = (params) => request({
  url: "/advisory/body/getProjectDetail",
  method: "get",
  params
});

/**
 * 查询咨询机构 
 * @param {*} advisoryBodyName 
 * @returns 
 */
export const searchConsultingApi = (advisoryBodyName) => request({
  url: "/advisory/body/checkAdvisoryBodyExist",
  method: "get",
  params: {
    advisoryBodyName
  }
});

/**
 * 更新咨询机构结算信息
 * @param {*} data 
 * @returns 
 */
export const updateConsultingDetailApi = (data) => request({
  url: "/advisory/body/editAdvisoryBody",
  method: "post",
  data
});