From 0d2ad0aecb89d39c93c2e77f5675ee21f3dd4130 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Tue, 2 Dec 2025 16:53:44 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20RBAC1=20=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Document/11_SystemTodo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document/11_SystemTodo.md b/Document/11_SystemTodo.md index 02510ca..c0284c4 100644 --- a/Document/11_SystemTodo.md +++ b/Document/11_SystemTodo.md @@ -31,7 +31,7 @@ - [ ] 现状梳理:租户解析/过滤已具备(TenantResolutionMiddleware、TenantAwareDbContext),JWT 已写入 roles/permissions/tenant_id(JwtTokenService),PermissionAuthorize 已在 Admin API 使用,CurrentUserProfile 含角色/权限/租户;但仅有内嵌 string[] 权限存储,无角色/权限表与洞察查询,Swagger 缺少示例与多租户示例。 - [x] 差距与步骤: - [x] 增加权限/租户洞察查询(按用户、按租户分页)并确保带 tenant 过滤(TenantAwareDbContext 或 Dapper 参数化)。 - - [ ] 输出可读的角色/权限列表(基于现有种子/配置的只读查询)。【进行中:RBAC1 已落地,待补角色/权限管理 API 与 Swagger 示例】 + - [x] 输出可读的角色/权限列表(基于现有种子/配置的只读查询)。【已落地:RBAC1 模型 + 角色/权限管理 API;Swagger 示例后续补充】 - [x] 为洞察接口和 /auth/profile 增加 Swagger 示例,包含 tenant_id、roles、permissions,展示 Bearer 示例与租户 Header 示例。 - [ ] 若用 Dapper 读侧,SQL 必须参数化并显式过滤 tenant_id。 - [x] 计划顺序:Step A 设计应用层洞察 DTO/Query;Step B Admin API 只读端点(Authorize/PermissionAuthorize);Step C Swagger 示例扩展;Step D 校验租户过滤与忽略路径配置。