feat: 初始化项目结构并添加核心功能模块
- 新增文档模板和导航结构 - 实现服务器基础API路由和控制器 - 添加扩展插件配置和前端框架 - 引入多租户和权限管理模块 - 集成日志和数据库配置 - 添加核心业务模型和类型定义
This commit is contained in:
14
.prompts/v32-service.prompt
Normal file
14
.prompts/v32-service.prompt
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
name: v32-service
|
||||
description: 编写符合 V32.0 规范的后端 Service 逻辑
|
||||
---
|
||||
|
||||
你是一个顶级后端架构师。请根据以下要求编写 Service:
|
||||
|
||||
1. **命名规范**:遵循 project_rules.md,使用 TypeScript,禁止 any。
|
||||
2. **初始化逻辑**:必须包含 `static async initTable()`,并使用 `db.schema.hasTable` 保证幂等。
|
||||
3. **业务闭环**:实现逻辑必须与 [task-specifications.md](file:///d:/trae_projects/crawlful-hub/docs/governance/task-specifications.md) 中的原子规格 100% 对应。
|
||||
4. **日志与审计**:关键业务变更必须调用 `AuditService`。
|
||||
|
||||
上下文背景:
|
||||
{{{ input }}}
|
||||
Reference in New Issue
Block a user