import request from '@/utils/request'

export function getAchievementList(params) {
  return request({
    url: '/portal/achievement/list',
    method: 'get',
    params: params,
    headers: {
      isToken: false
    }
  })
}

export function getPaperList(params) {
  return request({
    url: '/portal/achievement/papers',
    method: 'get',
    params: params,
    headers: {
      isToken: false
    }
  })
}

export function getPatentList() {
  return request({
    url: '/portal/achievement/patents',
    method: 'get',
    headers: {
      isToken: false
    }
  })
}

export function getAwardList() {
  return request({
    url: '/portal/achievement/awards',
    method: 'get',
    headers: {
      isToken: false
    }
  })
}

export function getAchievementStats() {
  return request({
    url: '/portal/achievement/stats',
    method: 'get',
    headers: {
      isToken: false
    }
  })
}

export function getSdgsat1AchievementList(params) {
  return request({
    url: '/portal/achievement/sdgsat1',
    method: 'get',
    params: params,
    headers: {
      isToken: false
    }
  })
}

export function getAchievementDetail(id) {
  return request({
    url: `/portal/achievement/${id}`,
    method: 'get',
    headers: {
      isToken: false
    }
  })
}

export function getAchievementOverview() {
  return request({
    url: '/achievement/overview/1',
    method: 'get',
    headers: {
      isToken: false
    }
  })
}
