主题
站内信模版
SYS-NOTIFY-02 | 模块
system| 把消息文案从代码里解耦,运营可自行调整措辞与变量。
1. 使用角色与场景
角色:管理员
- 新增「任务逾期提醒」模版并定义变量
- 多语言场景下为同一事件配置多套模版
2. 接口与权限点
| 方法 | 路径 | 权限点 | 摘要 | 代码行 |
|---|---|---|---|---|
| POST | /system/notify-template/create | system:notify-template:create | 创建站内信模版 | NotifyTemplateController#L41 |
| PUT | /system/notify-template/update | system:notify-template:update | 更新站内信模版 | NotifyTemplateController#L48 |
| DELETE | /system/notify-template/delete | system:notify-template:delete | 删除站内信模版 | NotifyTemplateController#L56 |
| DELETE | /system/notify-template/delete-list | system:notify-template:delete | 批量删除站内信模版 | NotifyTemplateController#L65 |
| GET | /system/notify-template/get | system:notify-template:query | 获得站内信模版 | NotifyTemplateController#L74 |
| GET | /system/notify-template/page | system:notify-template:query | 获得站内信模版分页 | NotifyTemplateController#L83 |
| GET | /system/notify-template/list-all-simple | — | 获得站内信模版精简列表 | NotifyTemplateController#L91 |
| GET | /system/notify-template/simple-list | — | 获得站内信模版精简列表 | NotifyTemplateController#L91 |
| POST | /system/notify-template/send-notify | system:notify-template:send-notify | 发送站内信 | NotifyTemplateController#L99 |
3. 代码定位
| 层 | 位置 |
|---|---|
| Controller | modules/system/src/main/java/com/pmforge/module/system/controller/admin/notify/NotifyTemplateController.java#L41 |
| DO | modules/system/src/main/java/com/pmforge/module/system/dal/dataobject/notify/NotifyTemplateDO.java |
4. 数据表
| 表 | DO |
|---|---|
system_notify_template | NotifyTemplateDO |
5. 机制与配置
- 模版编码对应业务事件,变量用占位符替换
6. 常见问题与排查
- 删模版前确认无业务代码引用其编码
7. 关联
- 需求原件:01-07-消息通知
- 相关卡片:SYS-NOTIFY-01