xiaoqu-agent-service P2 权限层:自有库 7 表 + svc 数据源,/mcp ak 鉴权(401/ThreadLocal),tool 表启动同步 + scope 强制校验,行级数据权限引擎(移植 getByIsAgent),agent.list.query 基础版,audit_log 审计,种子数据与 curl 全流程实测通过

This commit is contained in:
xiaoqu
2026-09-03 12:01:09 +08:00
parent 7a9ea1e888
commit 70a45cf3b9
41 changed files with 1796 additions and 48 deletions
@@ -17,6 +17,11 @@ app:
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_franchisee_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: ${M2_DB_PASSWORD:kaixinjiuhao}
svc: # 自有库 xiaoqu_agent_svc_d(token/scope/tool/audit,读写)
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_agent_svc_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: ${SVC_DB_PASSWORD:kaixinjiuhao}
spring:
data: