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({
4040 watermark : true ,
4141 markdownPower : {
4242 icons : true ,
43+ bilibili : true ,
4344 } ,
4445 }
4546 } ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const mySidebar: SidebarMulti = {
66 {
77 text : '简介' ,
88 collapsed : false ,
9- prefix : '/guide/ summary/' ,
9+ prefix : 'summary/' ,
1010 items : [
1111 { text : '为什么选择我们?' , link : 'why' } ,
1212 { text : '快速开始' , link : 'quick-start' } ,
@@ -16,7 +16,7 @@ export const mySidebar: SidebarMulti = {
1616 {
1717 text : '参考' ,
1818 collapsed : false ,
19- prefix : '/guide/ reference/' ,
19+ prefix : 'reference/' ,
2020 items : [
2121 { text : '登录' , link : 'login' } ,
2222 { text : '权限' , link : 'permission' } ,
@@ -25,7 +25,7 @@ export const mySidebar: SidebarMulti = {
2525 {
2626 text : '部署' ,
2727 collapsed : false ,
28- prefix : '/guide/ deploy/' ,
28+ prefix : 'deploy/' ,
2929 items : [
3030 { text : 'Docker' , link : 'Docker' } ,
3131 { text : '传统' , link : 'legacy' }
Original file line number Diff line number Diff line change 11---
2+ title : 登录
23createTime : 2024/09/16 22:46:47
34---
4- # TODO
5+
6+ ## TODO
Original file line number Diff line number Diff line change 11---
2+ title : 权限
23createTime : 2024/09/16 22:48:13
34---
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
2626
2727## 框架历程
2828
29+ TODO
2930
3031## 质量与规范
32+
33+ TODO
You can’t perform that action at this time.
0 commit comments