feat: init

This commit is contained in:
ygx
2026-03-05 23:45:39 +08:00
commit 8fab91c5c7
214 changed files with 33682 additions and 0 deletions

22
src/api/dashboard.ts Normal file
View File

@@ -0,0 +1,22 @@
import type { TableData } from '@arco-design/web-vue/es/table/interface'
import axios from 'axios'
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 })
}