feat(admin): 新增收藏与点赞只读查询接口

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-27 12:32:23 +08:00
1 parent 23321a0b0c
commit 7a2ff3f80e
14 files changed
+686

No files matched your search

+15
View File
@@ -868,10 +868,25 @@ GET /app/notices?pageIndex=1&pageSize=20
| GET | `/admin/app-users/{id}/ban-records` | `app-user:list` | 封禁与申诉记录 |
| GET | `/admin/app-users/{id}/watch-history` | `app-user:list` | 观看流水明细(带剧名/集号,客服核对用) |
| GET | `/admin/watch-history/page` | `watch-history:list` | 跨用户观看记录分页:keyword、userId、dramaTitle、dramaId、episodeId、source、finished、startTime、endTime |
| GET | `/admin/favorites/page` | `favorite:list` | 收藏只读分页,含游客 |
| GET | `/admin/likes/page` | `like:list` | 点赞只读分页,含游客及多态目标 |
| PUT | `/admin/app-users/{id}/status` | `app-user:update` | 改状态:normal/limited/banned |
状态处置会**立即吊销该用户全部会话**并写入封禁记录,避免"封了还能用"。
收藏和点赞分页参数:`pageIndex` 默认 1,`pageSize` 默认 10、最大 100;
`keyword` 模糊匹配 uid/昵称,`userId`、`deviceId`、`dramaId` 精确匹配,
`dramaTitle` 模糊匹配;`startTime/endTime` 按创建时间闭区间过滤,
格式 `yyyy-MM-dd HH:mm:ss`。点赞另支持 `targetType`(DRAMA/EPISODE/COMMENT)、
`targetId` 和 `episodeId` 精确过滤,短剧和剧集过滤会解析评论及剧集所属关系。
按 `createdAt DESC, id DESC` 排序,用户/短剧预检索无结果返回 total=0、list=[]。
收藏行字段:`id,userId,uid,nickname,deviceId,anonymous,dramaId,dramaTitle,dramaCover,
dramaStatus,dramaPublished,createdAt`。点赞行字段:`id,userId,uid,nickname,deviceId,
anonymous,targetType,targetId,dramaId,dramaTitle,dramaCover,episodeId,episodeNo,episodeTitle,
commentSummary,createdAt`。游客的 userId 为空、anonymous 为 true;评论摘要最多 30 字。
关联资料逻辑删除后展示字段为空,不排除原始互动记录。
### 2.4 下载管理(已实现)
| 方法 | 路径 | 权限点 | 说明 |