feat(web): 前端逻辑骨架——http/router/stores/queries 与薄壳路由
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { LogItem, Paginated } from "@new-api-key-usage/core";
|
||||
import { adminHttp } from "../http.ts";
|
||||
|
||||
export async function fetchLogs(
|
||||
range: { from: string; to: string; page: number; page_size: number },
|
||||
): Promise<Paginated<LogItem>> {
|
||||
const { data } = await adminHttp.get<Paginated<LogItem>>("/logs", {
|
||||
params: range,
|
||||
});
|
||||
return data;
|
||||
}
|
||||
Reference in New Issue
Block a user