add username for ai analysis
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-07 07:34:18 -06:00
parent f38af4f1fe
commit fa1d166a48
3 changed files with 34 additions and 14 deletions

View File

@@ -287,16 +287,16 @@ export function getTutorials() {
return http.get("tutorials")
}
export function getAIDetailData(start: string, end: string) {
return http.get("ai/detail", { params: { start, end } })
export function getAIDetailData(start: string, end: string, username?: string) {
return http.get("ai/detail", { params: { start, end, username } })
}
export function getAIDurationData(end: string, duration: string) {
return http.get("ai/duration", { params: { end, duration } })
export function getAIDurationData(end: string, duration: string, username?: string) {
return http.get("ai/duration", { params: { end, duration, username } })
}
export function getAIHeatmapData() {
return http.get("ai/heatmap")
export function getAIHeatmapData(username?: string) {
return http.get("ai/heatmap", { params: username ? { username } : {} })
}
export function getAILoginSummary() {