forked from baron/baron-sso
adminFront에 Audit Log 기능 추가
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user