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

字段类型必填示例约束描述
code integer 否
data service-notification/internal/handler/dto.MarkReadResponse 否
message string 否
timestamp string 否

service-notification/internal/handler/dto.MarkReadResponse

标记已读结果

字段类型必填示例约束描述
marked_count integer 否 5 标记数量
success boolean 否 True 成功