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

POST /admin/notifications/broadcast

向租户下所有用户或指定用户群发送通知消息,适用于系统维护通知、安全告警等场景 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

Request Body

Schema: dto.BroadcastNotificationRequest

FieldTypeRequiredExampleConstraintsDescription
content string Yes 系统将于今晚22:00-23:00进行维护 内容
title string Yes 系统公告 标题
type string No system 类型

Responses

StatusDescriptionSchema
200广播发送成功dto.BroadcastNotificationDetailResponse
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.BroadcastNotificationDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.BroadcastNotificationResponse No
message string No

dto.BroadcastNotificationResponse

广播通知的响应结果

FieldTypeRequiredExampleConstraintsDescription
broadcast_id string No broadcast-1234567890 广播ID
content string No 系统将于今晚22:00-23:00进行维护 内容
recipients integer No 100 接收人数
title string No 系统公告 标题
type string No system 类型

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No