xiaoqu-agent-service P2 权限层:自有库 7 表 + svc 数据源,/mcp ak 鉴权(401/ThreadLocal),tool 表启动同步 + scope 强制校验,行级数据权限引擎(移植 getByIsAgent),agent.list.query 基础版,audit_log 审计,种子数据与 curl 全流程实测通过
This commit is contained in:
@@ -14,6 +14,7 @@ import java.util.Arrays;
|
||||
* 表白名单制:
|
||||
* m0(xiaoqu_comples_d): user, agent, authority, properyt, agent_manage_district_auth
|
||||
* m2(xiaoqu_franchisee_d): warehouse_agent_auth
|
||||
* svc(xiaoqu_agent_svc_d): agent_api_key, agent_scope, tool, scope_tool, token_scope, audit_log, admin_user
|
||||
*
|
||||
* 生成物直接落到 src/main/java 对应分包(entity.m0/mapper.m0 等),生成后提交进仓库。
|
||||
*
|
||||
@@ -34,6 +35,8 @@ public class CodeGenerator {
|
||||
"user", "agent", "authority", "properyt", "agent_manage_district_auth");
|
||||
generate("xiaoqu_franchisee_d", "m2",
|
||||
"warehouse_agent_auth");
|
||||
generate("xiaoqu_agent_svc_d", "svc",
|
||||
"agent_api_key", "agent_scope", "tool", "scope_tool", "token_scope", "audit_log", "admin_user");
|
||||
}
|
||||
|
||||
private static void generate(String schema, String module, String... tables) {
|
||||
|
||||
Reference in New Issue
Block a user