This commit is contained in:
toom1996
2026-09-16 00:56:15 +08:00
parent 5e4803b97f
commit 7dd3fda73c
10 changed files with 184 additions and 54 deletions

View File

@ -4,8 +4,8 @@ package model
//
// 2026-09-02 收敛为「文章级」记录:点开某篇走秀/街拍详情(/item/xxx)时记一条,
// 进入列表页不再记。仅存三要素:user_id + target_uid + viewed_at。
// target_uid 为带类型前缀的对外编码串(runway r=xxx / street s=xxx,见 hashid.EncodeTyped),
// 前缀本身携带类型,无需 kind / target_type 列;title/cover/brand 快照也已移除,
// target_uid 为对外编码串(类型进密码、无前缀,见 hashid.EncodeWithType);类型由账户页
// 存储的 kind / target_type 或回查详情接口决定,串本身不含类型字母。title/cover/brand 快照已移除,
// 账户页展示时按 target_uid 回查公开详情接口(保持表最简、数据新鲜)。
// 唯一键 (user_id, target_uid) 保证同一篇文章反复打开只刷新 viewed_at、不新增行。
type History struct {