权限定义设计
This commit is contained in:
parent
0f3bc34f97
commit
e16ad2d166
18
notes/helloshop/permission-definition.md
Normal file
18
notes/helloshop/permission-definition.md
Normal file
@ -0,0 +1,18 @@
|
||||
# 设计权限定义终结点
|
||||
|
||||
## 权限定义
|
||||
|
||||
每个微服务是自治的,权限定义也是在微服务内进行,各自定义自己的权限。
|
||||
|
||||
## 架构设计
|
||||
|
||||

|
||||
|
||||
|
||||
## 权限扩展方法
|
||||
|
||||
```csharp
|
||||
IServiceCollection AddPermissionDefinitions(this IServiceCollection services)
|
||||
|
||||
EndpointRouteBuilder MapPermissionDefinitions(this IEndpointRouteBuilder endpoints, params string[] tags)
|
||||
```
|
Loading…
Reference in New Issue
Block a user