noteEnums.ts 740 Bytes
/**
 * 采集笔记枚举镜像(与后端 src/api/routes/notes.py 的 NOTE_CATEGORIES / NOTE_STATUSES 一致)。
 */

export const NoteCategoryLabel: Record<string, string> = {
  project: "项目知识",
  lesson: "经验教训",
  sop: "操作流程",
  term: "术语概念",
  idea: "想法",
  pitfall: "踩坑",
  reference: "参考链接",
  meeting: "会议纪要",
  other: "其他",
};

export const NoteCategoryOrder = [
  "project", "lesson", "sop", "term", "idea", "pitfall", "reference", "meeting", "other",
] as const;

export const NoteStatusLabel: Record<string, string> = {
  draft: "草稿",
  pending: "待整理",
  archived: "已归档",
};

export const NoteStatusOrder = ["draft", "pending", "archived"] as const;