Skip to content

站内信模版 ​

SYS-NOTIFY-02 | 模块 system | 把消息文案从代码里解耦,运营可自行调整措辞与变量。

1. 使用角色与场景 ​

角色:管理员

  • 新增「任务逾期提醒」模版并定义变量
  • 多语言场景下为同一事件配置多套模版

2. 接口与权限点 ​

方法路径权限点摘要代码行
POST/system/notify-template/createsystem:notify-template:create创建站内信模版NotifyTemplateController#L41
PUT/system/notify-template/updatesystem:notify-template:update更新站内信模版NotifyTemplateController#L48
DELETE/system/notify-template/deletesystem:notify-template:delete删除站内信模版NotifyTemplateController#L56
DELETE/system/notify-template/delete-listsystem:notify-template:delete批量删除站内信模版NotifyTemplateController#L65
GET/system/notify-template/getsystem:notify-template:query获得站内信模版NotifyTemplateController#L74
GET/system/notify-template/pagesystem: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-notifysystem:notify-template:send-notify发送站内信NotifyTemplateController#L99

3. 代码定位 ​

层位置
Controllermodules/system/src/main/java/com/pmforge/module/system/controller/admin/notify/NotifyTemplateController.java#L41
DOmodules/system/src/main/java/com/pmforge/module/system/dal/dataobject/notify/NotifyTemplateDO.java

4. 数据表 ​

表DO
system_notify_templateNotifyTemplateDO

5. 机制与配置 ​

  • 模版编码对应业务事件,变量用占位符替换

6. 常见问题与排查 ​

  • 删模版前确认无业务代码引用其编码

7. 关联 ​