Commit Graph

11 Commits

Author SHA1 Message Date
zty 3da1fb1282 refactor(material): 健康档定格到 health_level, 去掉实时 health_tier
- 新增一次性迁移脚本 migrate-health-level.ts: 按当前全库三分位写入 health_level(覆盖手动值, 公共材料补齐)
- rankAndPaginate 改为只注解 ypt(排序用), 分组改按持久化 health_level; 移除 loadTierClassifier
- annotate -> annotateYpt; 单测同步更新
2026-07-12 21:48:08 -04:00
zty 8de82ee86d fix(material): pub/self 数组式 sort_key 移除 ypt, 防非法多列排序崩溃 2026-07-10 02:58:41 -04:00
zty 8f6002b8bb feat(material): 管理端 /api/mtrl/pub|self 接入 ypt 排序与分组 2026-07-10 02:53:48 -04:00
zty d065ec21fa fix(material): rankAndPaginate 尊重 sort_val 方向, 保留 null 末位与分档顺序; 删无用 import
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCShKevM5prWZhp1kk1iGh
2026-07-10 02:48:23 -04:00
zty f5ec58031a feat(material): /api/mtrl 注解 ypt/health_tier 并支持 ypt 排序与分组 2026-07-10 02:38:10 -04:00
zty 7027a7748f feat(material): Ypt 计算与全库三分位健康档工具 + 单测 2026-07-10 02:26:03 -04:00
zty e4ccbf733d feat(material): public GET /eco endpoint for eco-friendly materials 2026-07-07 03:28:11 -04:00
zty 94c9b0c060 feat(forum): like toggle, like status, author soft-delete 2026-07-07 03:26:32 -04:00
zty b2dd9d3bd6 feat(forum): create thread and reply with floor increment 2026-07-07 03:24:42 -04:00
zty 9048a5a389 feat(forum): public read endpoints (boards/threads/detail) 2026-07-07 03:22:29 -04:00
zty 8cfa20d3aa feat(forum): add forum prisma models and board constant 2026-07-07 03:21:01 -04:00