GET /notifications/unread-count

获取当前用户的未读通知数量及最后通知时间 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-notification/internal/handler/dto.UnreadCountDetailResponse

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

service-notification/internal/handler/dto.UnreadCountResponse

用户未读通知数量

字段类型必填示例约束描述
last_notification_at string 否 2026-04-15T10:30:00Z 最后通知
unread_count integer 否 5 未读数
user_id string 否 usr_abc123 用户ID