POST /admin/communication/providers
为当前租户创建短信/邮件/推送服务商的连接配置。支持阿里云、腾讯云、AWS SNS/SES、SendGrid、FCM等主流服务商。配置内容(API密钥等)以加密方式存储,响应中自动脱敏。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。
通信服务 `bearerAuth` application/json
Request Body
Schema: dto.CreateProviderConfigRequest
| Field | Type | Required | Example | Constraints | Description |
channel |
string |
Yes |
sms |
enum: `sms`, `email`, `push` |
|
config |
string |
Yes |
{"access_key":"..."} |
|
|
provider |
string |
Yes |
aliyun |
|
|
priority |
integer |
No |
10 |
|
|
Referenced Schemas
dto.ProviderConfigDataResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ProviderConfigResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ProviderConfigResponse
| Field | Type | Required | Example | Constraints | Description |
app_id |
string |
No |
|
|
|
channel |
string |
No |
|
|
|
config |
string |
No |
|
|
|
created_at |
string |
No |
|
|
|
id |
string |
No |
|
|
|
is_active |
boolean |
No |
|
|
|
priority |
integer |
No |
|
|
|
provider |
string |
No |
|
|
|
tenant_id |
string |
No |
|
|
|
updated_at |
string |
No |
|
|
|
dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|