liuyun ff7d9bffa3
Some checks are pending
CI / backend (push) Waiting to run
CI / frontend (push) Waiting to run
feat(notice): 站内通知(子模块 + openspec change)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 22:25:30 +08:00

587 B
Raw Blame History

ADDED Requirements

Requirement: 通知实体

系统 SHALL 包含 notice 实体(公告/通知:id、tenant_code、title、content、status、created_by、created_at、deleted_at)与 notice_read 关联表(notice_id + user_id + read_at,唯一 tenant_code+notice_id+user_id),用于站内通知与已读追踪。

Scenario: 发布通知

  • WHEN 管理员发布一条通知
  • THEN 写入 notice,status=enabled 时对本租户所有用户可见

Scenario: 记录已读

  • WHEN 用户阅读某通知
  • THEN 写入 notice_read 记录其 read_at