feat: 更新仪表盘标题和描述,添加异常状态查询字段,优化管理员导航和API导出
This commit is contained in:
@@ -21,6 +21,7 @@ export type TransferOrderListQuery = {
|
||||
created_from?: string;
|
||||
created_to?: string;
|
||||
status?: string;
|
||||
/** 仅异常:processing / failed / pending_reconcile */
|
||||
abnormal?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -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
19
src/api/public-draw.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user