yinbangzhong
2024-08-27 dab148db45747a730eda82963cd9ea24da16c2ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import axios from 'axios';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
 
export interface ContentDataRecord {
  x: string;
  y: number;
}
 
export function queryContentData() {
  return axios.get<ContentDataRecord[]>('/api/content-data');
}
 
export interface PopularRecord {
  key: number;
  clickNumber: string;
  title: string;
  increases: number;
}
 
export function queryPopularList(params: { type: string }) {
  return axios.get<TableData[]>('/api/popular/list', { params });
}