feat: 更新仪表盘标题和描述,添加异常状态查询字段,优化管理员导航和API导出

This commit is contained in:
2026-05-11 16:57:01 +08:00
parent b539bf0660
commit d0f75fcec8
9 changed files with 887 additions and 32 deletions

19
src/api/public-draw.ts Normal file
View File

@@ -0,0 +1,19 @@
import { hasLotteryAdminApiBaseUrl, publicAdminRequest } from "@/lib/admin-http";
import type { DrawCurrentSnapshot } from "@/types/api/public-draw";
import { API_V1_PREFIX } from "@/api/paths";
/** 大厅当前期(无需 Bearer */
export async function getDrawCurrent(): Promise<DrawCurrentSnapshot | null> {
if (!hasLotteryAdminApiBaseUrl()) {
return null;
}
try {
return await publicAdminRequest<DrawCurrentSnapshot | null>({
url: `${API_V1_PREFIX}/draw/current`,
method: "GET",
});
} catch {
return null;
}
}