DELETE /notifications/{notification_id}

删除指定ID的通知记录(软验证用户ID匹配) 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
notification_id path string 是 通知ID

请求体

Schema: service-notification/internal/handler/dto.DeleteNotificationRequest

字段类型必填示例约束描述
notification_id string 是 ntf_abc123 通知ID
user_id string 是 usr_abc123 用户ID

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-notification/internal/handler/dto.DeleteNotificationDetailResponse

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

service-notification/internal/handler/dto.DeleteNotificationResponse

删除通知结果

字段类型必填示例约束描述
deleted boolean 否 True 删除成功
notification_id string 否 ntf_abc123 通知ID