feat: generate docs

This commit is contained in:
2026-01-11 12:24:46 +08:00
parent 14aa3436cf
commit cd50716dc6
12 changed files with 32 additions and 107 deletions

View File

@@ -7,7 +7,6 @@
1.`controllers/` 对应模块下创建/修改 `dto.ts` 定义输入。
2.`index.ts` 中编写类,使用 `@Controller``@Post/Get` 等装饰器。
3. 如果涉及数据库,修改 `schema.prisma` 并运行 `npx prisma db push`
4. 在前端 `pages/` 对应的 `service.ts` 中添加调用方法。
## 2. 核心逻辑位置
@@ -17,6 +16,6 @@
## 3. 交互规范
- 前端请求请使用 `@shared` 别名导入 `net` 实例
- 前端 `import` 代码优先使用路径别名,例如:`import {net} from '@utils'`
- 始终保持代码简洁,优先使用现有的 `libs` 工具类。
- 修改代码后,务必确认 `pnpm dev` 是否能正常编译通过。