feat(server): 添加暖记日记管理菜单种子数据 + 图标注册
Some checks failed
Main Merge / backend (push) Has been cancelled
Main Merge / frontend (push) Has been cancelled

- 新增迁移 m20260602_000301_diary_menu_seed
- 插入'日记管理'目录菜单 (BookOutlined, sort=50)
- 子菜单: 班级管理/日记审核/主题管理/贴纸管理
- 关联 admin + teacher 角色 (menu_roles)
- 图标注册: BookOutlined, ScheduleOutlined, SmileOutlined
This commit is contained in:
iven
2026-06-02 12:24:29 +08:00
parent 78018a9a64
commit 74551d48e6
3 changed files with 219 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ import {
SolutionOutlined,
SwapOutlined,
WifiOutlined,
// 暖记日记模块
BookOutlined,
ScheduleOutlined,
SmileOutlined,
} from '@ant-design/icons';
import type { ReactNode } from 'react';
@@ -99,6 +103,11 @@ export const iconRegistry: Record<string, ReactNode> = {
SolutionOutlined: <SolutionOutlined />,
SwapOutlined: <SwapOutlined />,
WifiOutlined: <WifiOutlined />,
// 暖记日记模块
BookOutlined: <BookOutlined />,
ScheduleOutlined: <ScheduleOutlined />,
SmileOutlined: <SmileOutlined />,
};
export function getIcon(name?: string): ReactNode {