File tree Expand file tree Collapse file tree 5 files changed +33
-5
lines changed Expand file tree Collapse file tree 5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export default defineUserConfig({
40
40
watermark : true ,
41
41
markdownPower : {
42
42
icons : true ,
43
+ bilibili : true ,
43
44
} ,
44
45
}
45
46
} ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const mySidebar: SidebarMulti = {
6
6
{
7
7
text : '简介' ,
8
8
collapsed : false ,
9
- prefix : '/guide/ summary/' ,
9
+ prefix : 'summary/' ,
10
10
items : [
11
11
{ text : '为什么选择我们?' , link : 'why' } ,
12
12
{ text : '快速开始' , link : 'quick-start' } ,
@@ -16,7 +16,7 @@ export const mySidebar: SidebarMulti = {
16
16
{
17
17
text : '参考' ,
18
18
collapsed : false ,
19
- prefix : '/guide/ reference/' ,
19
+ prefix : 'reference/' ,
20
20
items : [
21
21
{ text : '登录' , link : 'login' } ,
22
22
{ text : '权限' , link : 'permission' } ,
@@ -25,7 +25,7 @@ export const mySidebar: SidebarMulti = {
25
25
{
26
26
text : '部署' ,
27
27
collapsed : false ,
28
- prefix : '/guide/ deploy/' ,
28
+ prefix : 'deploy/' ,
29
29
items : [
30
30
{ text : 'Docker' , link : 'Docker' } ,
31
31
{ text : '传统' , link : 'legacy' }
Original file line number Diff line number Diff line change 1
1
---
2
+ title : 登录
2
3
createTime : 2024/09/16 22:46:47
3
4
---
4
- # TODO
5
+
6
+ ## TODO
Original file line number Diff line number Diff line change 1
1
---
2
+ title : 权限
2
3
createTime : 2024/09/16 22:48:13
3
4
---
4
- # TODO
5
+
6
+ ## JWT
7
+
8
+ TODO
9
+
10
+ ## RBAC
11
+
12
+ RBAC 提供了两种解决方案,第一种【角色菜单】可能更加常见,它可以设置按钮级别的控制规则,另外一种是【Casbin】,它非常灵活,可以通过模型定义多种
13
+ 控制规则(我认为它很好,性能也很出色),这种设计在 Go 语言中应用更加广泛, 我们在最初架构设计时,参考了 go-admin,gin-vue-admin... 等优秀
14
+ 的开源项目,同时引入了 Casbin,它在众多 python web 开源项目中可能是极为罕见的,并且,它的学习成本相对较高,如果你对此感兴趣,可以通过
15
+ [ Casbin 官网] ( https://casbin.org/docs/get-started ) 进行学习,另外,这两个视频教程 (
16
+ [ 半小时彻底弄懂Casbin基础模型] ( https://www.bilibili.com/video/BV1qz4y167XP/?spm_id_from=333.999.0.0&vd_source=958c4d7f9243c68a0ec9dcd327bad930 ) 、
17
+ [ Casbin的代码使用、api调用、自定义比较方法] ( https://www.bilibili.com/video/BV13r4y1M7AC/?spm_id_from=333.999.0.0&vd_source=958c4d7f9243c68a0ec9dcd327bad930 )
18
+ ) 可能起到画龙点睛之笔
19
+
20
+ ### 角色菜单
21
+
22
+ TODO
23
+
24
+ ### Casbin
25
+
26
+ TODO
Original file line number Diff line number Diff line change @@ -26,5 +26,8 @@ createTime: 2024/09/14 21:24:14
26
26
27
27
## 框架历程
28
28
29
+ TODO
29
30
30
31
## 质量与规范
32
+
33
+ TODO
You can’t perform that action at this time.
0 commit comments