feat: 新增举报功能及我的举报页面

本次更新主要内容:
1. 新增举报功能,支持举报信息和评价,包含防重复提交和频控保护
2. 新增我的举报页面,展示用户提交的举报记录
3. 新增平台客服弹窗,支持微信在线客服和电话客服
4. 优化消息通知,支持跳转业务页面
5. 新增举报原因字典配置,支持自定义举报原因
6. 修复服务电话默认值问题,移除硬编码兜底
7. 新增相关图标和页面组件,完善用户体验
这个提交包含在:
2026-11-18 10:38:18 +08:00
父节点 e01cedd18e
当前提交 7e22a66de0
共有 31 个文件被更改,包括 3306 次插入 和 157 次删除

查看文件

@@ -212,13 +212,14 @@
| 方法 | 路径 | 入参 | 返回 |
| --- | --- | --- | --- |
| POST | `/report` | `{ targetType: 'post'\|'comment', targetId, reason, detail? }` | `{ reportId }` |
| POST | `/report` | `{ targetType: 'post'\|'comment', targetId, reason, detail?, images? }` | `{ reportId }` |
| GET | `/report/my` | `{ page, size }` | 分页 `list:[{id,targetType,targetId,targetTitle,reason,images,detail,status,statusText,handleRemark,createdAt,updatedAt}]` |
| GET | `/favorite/list` | `{ page, size }` | 分页 `list:[Post]`(与信息流同构) |
| POST | `/favorite/toggle` | `{ postId }` | `{ faved, count }` |
| POST | `/follow/toggle` | `{ userId }` | `{ followed }` |
| POST | `/favorite/status` | `{ postIds: [], userIds: [] }` | `{ faved: { postId: bool }, followed: { userId: bool } }` |
- **举报**:`targetType` 仅 `post`/`comment`(否则「举报类型不支持」);`reason` 必填(否则「请选择举报原因」,字典见 `report.reasons`);被举报对象必须存在;`detail` 写入 `fc_report.remark`,状态默认 `pending`。
- **举报**:`targetType` 仅 `post`/`comment`(否则「举报类型不支持」);`reason` 必填(否则「请选择举报原因」,字典见 `report.reasons`);被举报对象必须存在;支持防重复提交(同对象待核实中不允许重复提交)与日频控(单日上限 15 次);`images` 支持多图凭证;`detail` 写入 `fc_report.remark`,后台处理备注写入 `handle_remark`,支持一键联动处置(下架违规信息/屏蔽违规评价)。
- **收藏 / 关注**:`faved=true` 表示本次操作后为「已收藏」,`count` 为该信息当前收藏总数;`follow/toggle` 不能关注自己(「不能关注自己」)。两表均有唯一索引,并发写入幂等。
- **批量回显**:`favorite/status` 入参为空数组时返回**空对象** `{}`,查询结果按请求的 id 全量回填(未收藏/未关注为 `false`)。