// 智库概览信息
import request from "@/api/request.js";


// 获取新闻资讯
/**
 * @param {moduleId} 
 */
export function getNews(moduleId = "0105") {
  return request({
    method: 'GET',
    url: `/api/commonFeature/news/${moduleId}`,
  })
}


/**
 * 社交媒体
 */
export function getSocialMediaInfo(moduleId = "0105") {
  return request({
    method: "GET",
    url: `/api/commonFeature/remarks/${moduleId}`
  })
}

// 获取法案风险信号
/**
 * @param {moduleId} 
 */
export function getBillRiskSignal(moduleId = "0105") {
  return request({
    method: 'GET',
    url: `/api/commonFeature/riskSignal/${moduleId}`,
  })
}


//创新主体主页:统计不同创新主体类型对应的主体数量
export function getCountSubjectType() {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/countSubjectType`,
  })
}
// 创新主体主页:统计不同地理对应的主体数量
export function getCountGeography() {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/countGeography`,
  })
}

//创新主体主页:类型列表
export function getSubjectTypeList() {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/subjectTypeList`,
  })
}

//创新主体主页:通过类型分页查询创新主体列表
export function findListBySubjectTypeId(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/findListBySubjectTypeId`,
    params
  })
}

//创新主体主页:综合排名
export function getOverallRanking(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/overallRanking`,
    params
  })
}

//创新主体主页:领域布局
export function getResearchField(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/researchField`,
    params
  })
}

//创新主体主页:主体类型分类领域布局
export function getResearchFieldSubjectType(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/researchFieldSubjectType`,
    params
  })
}
/***********详情页 */
//创新主体详情:基本信息
export function getInfo(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/info/${params.id}`,
    params
  })
}

//最新动态
export function getDynamics(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/dynamics/${params.orgId}`,
    params
  })
}

//创新主体详情:历史事件轴
export function getEventList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/eventList/${params.id}`,
    params
  })
}

//创新主体详情:重点人物
export function getPersonList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/personList/${params.id}`,
    params
  })
}

//创新主体科研实力:专利数量统计
export function getPatentList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/patentList/${params.id}`,
    params
  })
}


// 创新主体科研实力:论文数量统计
export function getPaperList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/paperList/${params.id}`,
    params
  })
}

//创新主体科研实力:经费增长情况
export function getFundGrowth(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/fundGrowth/${params.id}`,
    params
  })
}

//创新主体科研实力:经费来源
export function getFundFromList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/fundFromList/${params.id}`,
    params
  })
}

//创新主体科研实力:经费分配
export function getFundToList(params) {
  return request({
    method: 'GET',
    url: `/api/innovateSubject/fundToList/${params.id}`,
    params
  })
}

