zerosaturation
|
b7022d2dc1
|
fix(backend): auth boundary — trusted identity from ctx (batch 2)
- 新增 pkg/authctx: 从 Dubbo attachment/gRPC metadata 提取可信 user_id/star_id,
统一覆盖 req 同名字段, 缺身份返 Unauthenticated。
- 各 provider 接入(堵身份伪造/越权):
* moderation SubmitReport 等 6 RPC(举报人伪造)
* asset CheckAssetLike/GetAssetQrcode/TrackShare(点赞/分享归因伪造)
* social CheckFriendship(修 starID=0 隐私预言机)
* activity PurchaseItem/BatchPurchaseItem(水晶扣费伪造)等 5 RPC
* gallery/aiChat/task/notification 迁移 authctx, 删散落 extractUserInfo*
- social 正确性: GetUserLikedAssets OR 显式分组(防御); GetRandomUsersByStar 真随机(去 rand.Seed)。
- gateway: /auth/validate 移入 AuthMiddleware 保护组(/refresh 保留,依赖注入身份)。
- 删 userService 已迁移死函数; notification 缺身份错误码统一为 Unauthenticated。
- 各 provider 单测(伪造身份被覆盖 + 缺身份拒绝)。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-23 01:12:35 +08:00 |
|
zerosaturation
|
271e0350c7
|
feat:重构code状态码
|
2026-06-15 16:28:35 +08:00 |
|
zerosaturation
|
dd34def217
|
feat:修改点赞接口bug
|
2026-05-26 21:32:37 +08:00 |
|
zerosaturation
|
ce4fd85926
|
fea: 修改下架移除点赞记录删除
|
2026-05-22 18:49:34 +08:00 |
|
zerosaturation
|
4d42d9a6d0
|
feat: 新增历史点赞查询和修改点赞规则
|
2026-05-22 18:06:33 +08:00 |
|
zerosaturation
|
a671cb7a89
|
fix:修改查询他人展示页面的bug
|
2026-05-11 20:17:38 +08:00 |
|
zerosaturation
|
852b02f014
|
feat :新增查看他人的在展作品
|
2026-05-09 16:05:02 +08:00 |
|
zerosaturation
|
844402e673
|
feat: 增加的接口
|
2026-05-06 10:51:07 +08:00 |
|
zerosaturation
|
ca3eeb8b5a
|
feat: 实现我的作品统计接口(点赞/展出)
- 新增 GET /api/v1/me/liked-assets 接口
- 新增 GET /api/v1/me/exhibited-assets 接口
- 新增 GetMyLikedAssets 和 GetMyExhibitedAssets RPC 方法
- 新增 ExhibitedAssetItemDTO 和 GetMyExhibitedAssetsResponseDTO
- 前端新增 getUserLikedAssetsApi 和 getUserExhibitedAssetsApi(暂不实现)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-06 10:51:06 +08:00 |
|
zerosaturation
|
06f4038a75
|
提交后端代码
|
2026-04-07 22:29:48 +08:00 |
|