POST /admin/notifications/templates/{announcement_id}/clone-to-locale

将指定模板复制到目标 locale,用于国际化支持 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
announcement_id path string 是 模板ID

请求体

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

字段类型必填示例约束描述
target_locale string 是 en-US
content string 否
title string 否

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-notification/internal/handler/dto.TemplateDetailResponse

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

service-notification/internal/handler/dto.TemplateResponse

通知模板信息

字段类型必填示例约束描述
content string 否 亲爱的{{user_name}},欢迎加入{{app_name}}! 内容
created_at string 否 2026-01-01T00:00:00Z 创建时间
name string 否 welcome_notification 模板名称
subject string 否 欢迎加入{{app_name}} 主题
template_id string 否 tpl_abc123 模板ID
type string 否 system 类型
variables array of

string

否 ['["user_name"', '"app_name"]'] 变量