-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
问题描述
src/data/email-mock.ts 里的 mock 数据结构不规范,没有类型定义:
// 直接操作数组,没有类型约束
export const addHistory = (history: any) => {
history.push(history);
};影响范围
- 数据结构混乱
- IDE 没有提示
- 容易传错数据
建议方案
定义接口:
interface EmailHistory {
id: string;
templateName: string;
subject: string;
recipients: Array<{ name: string; email: string; status: string }>;
status: 'success' | 'failed';
sentAt: string;
}本 Issue 由 Memo Code 生成。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels