POST /notifications/test
向指定渠道和目标发送一条测试通知,创建测试通知记录到数据库,用于验证通知服务配置是否正确 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。
通知服务 `bearerAuth` application/json
Request Body
Schema: dto.TestNotificationRequest
| Field | Type | Required | Example | Constraints | Description |
channel |
string |
Yes |
email |
|
渠道 |
target |
string |
Yes |
user@example.com |
|
目标 |
Referenced Schemas
dto.TestNotificationDetailResponse
dto.TestNotificationResponse
测试通知发送结果
| Field | Type | Required | Example | Constraints | Description |
channel |
string |
No |
email |
|
渠道 |
status |
string |
No |
sent |
|
状态 |
target |
string |
No |
user@example.com |
|
目标 |
test_id |
string |
No |
test-1234567890 |
|
测试ID |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|