POST /admin/notifications/event-mappings
创建事件类型到通知模板的映射关系 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。
通知服务 `bearerAuth` application/json
Request Body
Schema: dto.CreateEventMappingRequest
| Field | Type | Required | Example | Constraints | Description |
event_type |
string |
Yes |
|
|
|
template_code |
string |
Yes |
|
|
|
channel |
string |
No |
|
|
|
priority |
string |
No |
|
|
|
Referenced Schemas
dto.EventMappingDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.EventMappingResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.EventMappingResponse
| Field | Type | Required | Example | Constraints | Description |
app_id |
string |
No |
|
|
|
channel |
string |
No |
|
|
|
event_type |
string |
No |
|
|
|
id |
string |
No |
|
|
|
is_enabled |
boolean |
No |
|
|
|
priority |
string |
No |
|
|
|
template_code |
string |
No |
|
|
|
tenant_id |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|