From e16ad2d1669e47eb78d901c9bf29cf8c4ee59b5c Mon Sep 17 00:00:00 2001 From: hello Date: Sat, 16 Mar 2024 21:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E5=AE=9A=E4=B9=89=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/permission-definition.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 notes/helloshop/permission-definition.md diff --git a/notes/helloshop/permission-definition.md b/notes/helloshop/permission-definition.md new file mode 100644 index 0000000..e3545dd --- /dev/null +++ b/notes/helloshop/permission-definition.md @@ -0,0 +1,18 @@ +# 设计权限定义终结点 + +## 权限定义 + +每个微服务是自治的,权限定义也是在微服务内进行,各自定义自己的权限。 + +## 架构设计 + +![权限定义](https://oss.xcode.me/notes/helloshop/permission-definition.svg) + + +## 权限扩展方法 + +```csharp +IServiceCollection AddPermissionDefinitions(this IServiceCollection services) + +EndpointRouteBuilder MapPermissionDefinitions(this IEndpointRouteBuilder endpoints, params string[] tags) +``` \ No newline at end of file