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

View File

@@ -21,6 +21,7 @@ export type TransferOrderListQuery = {
created_from?: string;
created_to?: string;
status?: string;
/** 仅异常processing / failed / pending_reconcile */
abnormal?: boolean;
};

View File

@@ -1,4 +1,6 @@
export { API_V1_PREFIX } from "@/api/paths";
export { getDrawCurrent } from "@/api/public-draw";
export { getAdminRiskPools } from "@/api/admin-risk";
export { getAdminCaptcha, postAdminLogin } from "@/api/admin-auth";
export { getAdminPing } from "@/api/admin-ping";
export {

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;
}
}