/admin/communication/providers/{provider_id}
删除指定的服务商配置记录。删除后该渠道将回退使用默认服务商或提示未配置。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
provider_id |
path |
string |
是 | 服务商配置ID |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 配置删除成功 | service-communication/internal/handler/dto.OKResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未认证或令牌无效 | dto.SimpleResponse |
| 403 | 无权访问该资源 | dto.SimpleResponse |
| 404 | 配置不存在 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
引用的 Schema
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-communication/internal/handler/dto.OKResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | 0 |
||
message |
string |
否 | success |