实现站内通知与邮件通知

Abierto
#16 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@linuxsuren-fs ya está trabajando en esto.

Desde el 14/11/2026.

  • #22 de @linuxsuren-fs — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go
Área
api, backend, frontend

Línea de trabajo

Read #7 for the event contract and recipient rules, #13 for the event publishing points, and #5 for the polling agreement. Then trace the existing API, database, SMTP, and frontend entry points to see how this feature fits. Done means event recipients and self-notification behavior pass integration tests, notification APIs and email handling work, and the bell, unread count, list, read action, and workbench integration are usable.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

help wanted P0

Background

通知让工单流转触达到人。事件契约与接收人规则见 #7,本 issue 实现站内通知与邮件两个订阅者,以及前端通知组件。

Technical requirement

  • 订阅 internal/events(#13 已接入发布点):按 #7 的接收人规则表计算收件人;
  • 站内通知:写 notifications 表(title / body 由服务端按事件组装为数据内容,非界面固定文案);GET /api/notifications 分页、POST /api/notifications/read 标记已读(ids 或全部);未读数端点或并入 me;
  • 邮件:SMTP 配置存在时发送;模板 P0 用简单文本模板(Go text/template);发送失败仅记 error 日志,不重试不阻断;
  • 订阅者 panic 隔离(recover),单个订阅者异常不影响其他订阅者与业务事务;
  • 前端部分:顶栏通知铃铛 + 未读数(30s 轮询,#5 约定)+ 通知下拉列表 + 标记已读;点击跳转对应工单详情。

Expect

  • 集成测试:每类事件的接收人正确、操作者本人不收到自己操作的通知;
  • 前端通知组件挂入 #18 工作台布局后可用。

Potential TODO list

  • notifications 迁移与 repository
  • 事件订阅 + 接收人规则
  • 站内通知端点
  • SMTP 发送与文本模板
  • 前端铃铛 / 列表 / 已读

依赖

#7 契约冻结;#13(事件已发布)。

Lenguaje dominante
Sin datos de lenguaje
Estrellas
0
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LinuxSuRen/tick-flow

Todos los issues de LinuxSuRen/tick-flow

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.