// 权限点常量
// 依据：F7 裁决（权限点命名 <RESOURCE>_<ACTION>[_<SCOPE>]）
// 前端禁止硬编码 role === "xxx"，统一使用 usePermission().hasPermission()（project_rules §3.1）

export const PERMISSIONS = {
  // 仪表盘
  DASHBOARD_VIEW: "DASHBOARD_VIEW",

  // 子女成绩
  CHILD_GRADE_VIEW: "CHILD_GRADE_VIEW",

  // 子女考勤
  CHILD_ATTENDANCE_VIEW: "CHILD_ATTENDANCE_VIEW",

  // 子女作业
  CHILD_HOMEWORK_VIEW: "CHILD_HOMEWORK_VIEW",

  // 子女学情
  CHILD_WEAKNESS_VIEW: "CHILD_WEAKNESS_VIEW",

  // 子女学习趋势
  CHILD_TREND_VIEW: "CHILD_TREND_VIEW",

  // 子女考试
  CHILD_EXAM_VIEW: "CHILD_EXAM_VIEW",

  // 子女班级
  CHILD_CLASS_VIEW: "CHILD_CLASS_VIEW",

  // 子女学习路径
  CHILD_LEARNING_PATH_VIEW: "CHILD_LEARNING_PATH_VIEW",

  // 个人信息
  PROFILE_VIEW: "PROFILE_VIEW",

  // 通知
  NOTIFICATION_VIEW: "NOTIFICATION_VIEW",
  NOTIFICATION_PREFERENCE_UPDATE: "NOTIFICATION_PREFERENCE_UPDATE",
} as const;

export type Permission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
