| 123456789101112131415161718192021222324252627282930313233 |
- import { get } from '@/utils/request'
- const chartApi = {
- examCountApi: '/api/content/chart/exam/count',
- examPassRateApi: '/api/content/chart/exam/rate',
- lineChartDataApi: '/api/content/chart/exam/linechart',
- videoWatchApi: '/api/content/chart/video/watch',
- videoWatchRegionApi: '/api/content/chart/video/region'
- }
- // *********************************************************************************************************************
- // 考试数据接口
- export function getExamCount() {
- return get(chartApi.examCountApi)
- }
- export function getExamPassRate() {
- return get(chartApi.examPassRateApi)
- }
- export function getLineChartData() {
- return get(chartApi.lineChartDataApi)
- }
- // *********************************************************************************************************************
- // 用户视频观看数据接口
- export function getUserWatch() {
- return get(chartApi.videoWatchApi)
- }
- export function getUserWatchRegion() {
- return get(chartApi.videoWatchRegionApi)
- }
|