H0-08 KnowledgeBase 增加 visibility / isPinned / ownerType / coverType 字段 #53
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
为 KnowledgeBase 模型补齐 iOS 端需要的业务字段,支撑知识库公开/置顶/分类/封面功能。
背景说明
当前 KnowledgeBase 模型只有基础字段(title、description、coverKey、status),缺少:
模块职责
1. Prisma Schema 新增字段
2. API 接口
3. 列表查询增强
禁止事项
✅ H0-08 修复完成
修改
prisma/schema.prismaknowledge-base.repository.tsknowledge-base.service.tsknowledge-base.controller.ts数据库新增字段
新增 API
增强
wangdl referenced this issue2026-06-05 19:34:43 +08:00
wangdl referenced this issue2026-06-05 19:36:08 +08:00
修复汇报 (2026-06-05)
发现
Prisma Schema、Repository、Service 的字段和方法均已实现,仅 Controller
GET /knowledge-bases缺少visibility和ownerType查询参数。修改
findAll()新增@Query visibility和@Query ownerType,透传至 service已就绪的功能
POST :id/pin/PATCH :id/visibility/POST :id/subscribe/GET discover/ 筛选+排序 均已实现。状态
✅ 完成,文件已传服务器。