1
0
forked from baron/baron-sso

adminFront에 Audit Log 기능 추가

This commit is contained in:
Lectom C Han
2026-01-28 16:15:44 +09:00
parent f33f417045
commit 3e95650024
7 changed files with 633 additions and 133 deletions

View File

@@ -1,6 +1,7 @@
import apiClient from "./apiClient";
export type AuditLog = {
event_id: string;
timestamp: string;
user_id: string;
event_type: string;
@@ -14,7 +15,8 @@ export type AuditLog = {
export type AuditLogListResponse = {
items: AuditLog[];
limit: number;
offset: number;
cursor?: string;
next_cursor?: string;
};
export type TenantSummary = {
@@ -48,9 +50,9 @@ export type TenantUpdateRequest = {
status?: string;
};
export async function fetchAuditLogs(limit = 50, offset = 0) {
export async function fetchAuditLogs(limit = 50, cursor?: string) {
const { data } = await apiClient.get<AuditLogListResponse>("/v1/audit", {
params: { limit, offset },
params: { limit, cursor },
});
return data;
}