import request from '@/utils/request'

export function listPublicCourseSearchKeywordStat(query) {
  return request({
    url: '/course/publicCourse/courseLink/list',
    method: 'get',
    params: query
  })
}

export function exportPublicCourseSearchKeywordStat(query) {
  return request({
    url: '/course/publicCourse/courseLink/export',
    method: 'get',
    params: query
  })
}

/** 手动刷新搜索统计聚合数据 */
export function refreshPublicCourseSearchKeywordStat() {
  return request({
    url: '/course/publicCourse/courseLink/refresh',
    method: 'post'
  })
}
