feat: add user group management

This commit is contained in:
shinya
2025-08-21 13:05:46 +08:00
parent 27adc7c848
commit 431e4eb90a
4 changed files with 733 additions and 55 deletions
+6 -1
View File
@@ -22,7 +22,12 @@ export interface AdminConfig {
username: string;
role: 'user' | 'admin' | 'owner';
banned?: boolean;
enabledApis?: string[]; // 为空则允许全部
enabledApis?: string[]; // 优先级高于tags限制
tags?: string[]; // 多 tags 取并集限制
}[];
Tags?: {
name: string;
enabledApis: string[];
}[];
};
SourceConfig: {