feat(M08-D): 补审计日志与系统配置

This commit is contained in:
Codex
2026-08-10 13:28:54 +08:00
parent bd00aa6275
commit 7e170e8743
13 changed files with 794 additions and 3 deletions
+36
View File
@@ -539,6 +539,42 @@ export interface FranchiseApplicationDetail {
followUps: FranchiseFollowUp[];
}
export interface AuditLog {
id: string;
tenantId: string;
actorType: string;
actorId: string | null;
actorName: string | null;
action: string;
resourceType: string;
resourceId: string | null;
traceId: string;
ip: string;
userAgent: string;
metadata: unknown;
createdAt: string;
}
export interface SystemOverview {
tenant: {
id: string;
code: string;
name: string;
status: 'ACTIVE' | 'DISABLED';
timezone: string;
createdAt: string;
updatedAt: string;
};
counts: {
storeCount: number;
userCount: number;
activeSessionCount: number;
appBindingCount: number;
auditTodayCount: number;
};
latestMigration: null | { version: string; name: string; appliedAt: string };
}
export interface CleaningTask {
id: string;
taskNo: string;