Skip to content

Commit 9711e08

Browse files
committed
update docs
1 parent cc1ab33 commit 9711e08

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

docs/.vuepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default defineUserConfig({
4040
watermark: true,
4141
markdownPower: {
4242
icons: true,
43+
bilibili: true,
4344
},
4445
}
4546
}),

docs/.vuepress/sidebar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'}

docs/guide/reference/login.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
title: 登录
23
createTime: 2024/09/16 22:46:47
34
---
4-
# TODO
5+
6+
## TODO

docs/guide/reference/permission.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
---
2+
title: 权限
23
createTime: 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

docs/guide/summary/why.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ createTime: 2024/09/14 21:24:14
2626

2727
## 框架历程
2828

29+
TODO
2930

3031
## 质量与规范
32+
33+
TODO

0 commit comments

Comments
 (0)