🟢 P2 | KnowledgeItem 新增 fileSize 字段 #66
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?
背景
排序功能需要按文件大小排序,当前 KnowledgeItem 模型无文件大小字段。
需求
KnowledgeItem 新增:
fileSize: Int? // 文件字节数,导入时写入
关联
排序 sortBy=fileSize
修复汇报 (2026-06-05)
实现
KnowledgeItem新增fileSize BigInt?字段create()DTO 新增fileSize?headObject获取真实文件大小和 contentType,自动填充fileSize和sourceType状态
✅ 代码完成,文件已传服务器。需
npx prisma migrate deploy+ 重启 NestJS。