Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(docs): 更新文档指南模块
- 修复文档中部分文字性小问题
- 更新指南模块内容
  • Loading branch information
CorePig committed Aug 29, 2025
commit 9e978eafdda81b5277eae421d17d130968bcdb8a
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ fastapi_vue3_amdin/devops/devops/nginx/nginx.conf

### 后端部分

1. **编写实体类层**:在 `backend/app/v1/models/demo/example_model.py` 中创建 example 的 ORM 模型(对应 Spring Boot 中的实体类层)
2. **编写数据模型层**:在 `backend/app/v1/schemas/demo/example_schema.py` 中创建 example 数据模型(对应 Spring Boot 中的 DTO 层)
3. **编写查询参数模型层**:在 `backend/app/v1/params/demo/example_param.py` 中创建 example 的查询参数模型(对应 Spring Boot 中的 DTO 层)
4. **编写持久化层**:在 `backend/app/v1/cruds/demo/example_crud.py` 中创建 example 数据层(对应 Spring Boot 中的 Mapper 或 DAO 层)
5. **编写业务层**:在 `backend/app/v1/services/demo/example_service.py` 中创建 example 数据层(对应 Spring Boot 中的 Service 层)
6. **编写接口层**:在 `backend/app/v1/controllers/demo/example_controller.py` 中创建 example 数据层(对应 Spring Boot 中的 Controller 层)
7. **注册后端路由**:在 `backend/app/v1/urls/demo_url.py` 中注册 example 路由
1. **编写实体类层**:在 `backend/app/api/v1/models/demo/example_model.py` 中创建 example 的 ORM 模型(对应 Spring Boot 中的实体类层)
2. **编写数据模型层**:在 `backend/app/api/v1/schemas/demo/example_schema.py` 中创建 example 数据模型(对应 Spring Boot 中的 DTO 层)
3. **编写查询参数模型层**:在 `backend/app/api/v1/params/demo/example_param.py` 中创建 example 的查询参数模型(对应 Spring Boot 中的 DTO 层)
4. **编写持久化层**:在 `backend/app/api/v1/cruds/demo/example_crud.py` 中创建 example 数据层(对应 Spring Boot 中的 Mapper 或 DAO 层)
5. **编写业务层**:在 `backend/app/api/v1/services/demo/example_service.py` 中创建 example 数据层(对应 Spring Boot 中的 Service 层)
6. **编写接口层**:在 `backend/app/api/v1/controllers/demo/example_controller.py` 中创建 example 数据层(对应 Spring Boot 中的 Controller 层)
7. **注册后端路由**:在 `backend/app/api/v1/urls/demo_url.py` 中注册 example 路由
8. **注册路由到 FastAPI 服务中**:在 `backend/plugin/init_app.py` 中注册路由
9. **将 demo 模块添加至系统初始化脚本**:在 `backend/app/scripts/initialize.py` 中添加(如果需要可以把 demo 的菜单权限,配置到 `backend/app/scripts/data/system_menu.json` 和 `backend/app/scripts/data/system_role_menus.json` 或从前端页面菜单中新增)
10. **将 demo 模块添加至数据库迁移脚本中**:在 `backend/app/alembic/env.py` 中添加
Expand Down
13 changes: 12 additions & 1 deletion fastdocs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ export default defineConfig({
collapsed: false, // 默认不折叠(展开状态)
items: [
{ text: '项目介绍', link: '/guide_info' },
{ text: '快速开始', link: '/guide_start' }
{ text: '快速开始', link: '/guide_start' },
{ text: '为什么是FastapiAdmin?', link: '/guide_why' }
]
},
{
text: '二次开发权威指南',
collapsible: true, // 开启折叠功能
collapsed: false, // 默认不折叠(展开状态)
items: [
{ text: '前端开发指南', link: '/guide_develop_frontend' },
// { text: '后端开发', link: '/guide_start' },
// { text: '官网工程', link: '/guide_why' }
]
},
{
Expand Down
Empty file.
Loading