|
|
f658b7e76e
|
fix(social): 关注与取关改为幂等写入
SocialRepository.Follow 和 Unfollow 返回本次是否真的写入。判重交给唯一索引 idx_social_follower_vlogger。
因此重复关注和重复取关返回 200。重复请求不再落成 500。
缓存失效与通知只在真的变更时发生。自关注返回 400。响应体新增 created 与 deleted 字段。
SocialWorker 的调用只适配新签名,职责不变。删除它由后续提交完成。
验证:go build ./... 通过,go test -count=1 ./internal/social/... ./internal/worker/... 全绿。
|
2026-11-11 16:18:49 +08:00 |
|
leonincs
|
732e284369
|
style: 统一代码格式和行尾
|
2026-05-20 16:34:19 +08:00 |
|
Sisyphus
|
ec56c73016
|
feat(P2): 粉丝/关注数 + 用户主页统计 (getProfile/getCounts)
|
2026-04-25 19:58:16 +08:00 |
|
Sisyphus
|
15f86f08ae
|
fix(P2): 修复 import cycle — 将 apierror 移出 internal/http 避免循环依赖
|
2026-04-25 16:18:57 +08:00 |
|
Sisyphus
|
025be6dd78
|
refactor(P2): Handler 错误码精确化 — service 层引入哨兵错误,handler 层用 ClassifyHTTPStatus 分类
|
2026-04-25 16:03:29 +08:00 |
|
leonincs
|
d7a0e2a6b7
|
fix feed empty list rendering
|
2026-04-23 19:05:44 +08:00 |
|
Leon
|
fbd0cd38ec
|
refactor: 将redis提取到middleware文件夹
|
2025-12-28 18:38:14 +08:00 |
|
Leon
|
9ba916643e
|
move: 后端
|
2025-12-25 22:40:20 +08:00 |
|