PUT /notifications/{notification_id}/read
将指定通知标记为已读状态,记录已读时间 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。
通知服务 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
notification_id |
path |
string |
是 |
|
|
|
通知ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-notification/internal/handler/dto.MarkReadDetailResponse
service-notification/internal/handler/dto.MarkReadResponse
标记已读结果
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
marked_count |
integer |
否 |
5 |
|
标记数量 |
success |
boolean |
否 |
True |
|
成功 |