mirror of
https://github.com/kuaifan/dootask.git
synced 2026-07-31 10:25:59 +00:00
1.9 KiB
1.9 KiB
id, title, type, feature, scope, locale, aliases, related_tools, related_pages, prerequisites, negative, last_verified
| id | title | type | feature | scope | locale | aliases | related_tools | related_pages | prerequisites | negative | last_verified | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| report.read-unread.howto | 标记报告已读或未读 | howto | report | end-user | zh |
|
|
|
v1.7.90 |
标记报告已读或未读
三种触发方式
1. 自动标已读(最常用)
打开「我收到的」→ 点开任一报告详情,系统检测到当前用户是未读接收人时自动置已读。无需手动操作。
2. 手动批量标已读
- 「我收到的」列表多选 → 顶部「标记已读」按钮
- 一次最多 100 条
3. 手动标回未读
- 详情页右上角操作菜单「标为未读」
- 对应接口
api/report/mark传action=unread
接口对照
| 操作 | 接口 | 限制 |
|---|---|---|
| 获取未读总数 | api/report/unread |
仅查询自己侧 |
| 批量标已读 | api/report/read 或 api/report/mark?action=read |
单次 ≤ 100 |
| 标回未读 | api/report/mark?action=unread |
单次 ≤ 100 |
已读如何存储
每条 report_receives 行(每个接收人一条)有独立的 read 字段:
0= 未读1= 已读
不是报告本身的属性,而是「接收人 × 报告」的关联属性。
未读数显示在哪
- 桌面端:头像下拉菜单「工作报告」右侧红点
- 桌面端:「我收到的」Tab 标题旁数字
- 移动端:Tabbar「我的」红点
不支持
- 把别人侧的报告改成已读 / 未读(只能操作自己的)
- 不支持批量操作超过 100 条
- 已读时间戳(系统只记 read=0/1,不存时间)