A AuthMS API Wiki API Reference iam.tianv.com →

GET /notifications/unread-count

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

通知服务 `bearerAuth` application/json

Responses

StatusDescriptionSchema
200未读计数dto.UnreadCountDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.UnreadCountDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UnreadCountResponse No
message string No
timestamp string No

dto.UnreadCountResponse

用户未读通知数量

FieldTypeRequiredExampleConstraintsDescription
last_notification_at string No 2026-04-15T10:30:00Z 最后通知
unread_count integer No 5 未读数
user_id string No usr_abc123 用户ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No