feat: 对接稿件审核通知系统 + 消息页面系统消息区域

- 新增通知类型 post_approved / post_rejected
- PostService.Approve/Reject 完成后通知作者(通知失败不影响主流程)
- NotificationService 新增 NotifyPostApproved/NotifyPostRejected 方法
- 消息页面顶部增加系统消息标识和分隔线,之下为全部消息列表
- 稿件审核通过通知卡片点击跳转到 /posts/{id} 页面
- 稿件审核拒绝通知卡片点击跳转到 /studio/posts 创作中心
- 新增 postNotifier 接口遵循 ISP 原则
This commit is contained in:
2026-05-30 21:24:30 +08:00
parent fb94ce60ae
commit 67444434b9
7 changed files with 148 additions and 17 deletions

View File

@ -100,6 +100,43 @@ body {
min-width: 0;
}
/* ---------- System Message Section ---------- */
.msg-system-section {
margin-bottom: 1.25rem;
}
.msg-system-header {
display: flex;
align-items: center;
gap: .5rem;
font-size: .95rem;
font-weight: 600;
color: var(--color-primary);
padding: 0 0 .5rem 0;
}
.msg-system-icon {
color: var(--color-accent);
flex-shrink: 0;
}
.msg-system-divider {
height: 1px;
background: linear-gradient(to right, var(--color-border), transparent);
margin: 0;
}
/* ---------- Message Card Link ---------- */
.msg-card-link {
text-decoration: none;
color: inherit;
display: block;
}
.msg-card-link:hover {
text-decoration: none;
}
/* ---------- Toolbar ---------- */
.msg-toolbar {
display: flex;