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

GET /notifications/stats

获取当前租户的通知发送、送达、阅读等聚合统计数据 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

Responses

StatusDescriptionSchema
200统计结果dto.NotificationStatsDetailResponse
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.NotificationStatsDetailResponse

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

dto.NotificationStatsResponse

通知发送与阅读统计(notification 层不追踪投递状态,仅追踪已读/未读)

FieldTypeRequiredExampleConstraintsDescription
by_type object No extra keys: `integer` 按类型
read_rate number No 0.45 阅读率
total_read integer No 450 总阅读
total_sent integer No 1000 总发送

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No