export const CORE_API = "/api/ecs_core"; //基础信息API
export const EXAM_WORK_API = "/api/ecs_exam_work"; //考务信息API
export const MARKING_API = "/api/ecs_marking"; //阅卷API
export const DATA_PROCESS_API = "/api/ecs_data_process"; //数据中间层API
export const OE_API = "/api/ecs_oe"; //网考API
export const QUESTION_API = "/api/uq_basic"; //题库API
export const EXCHANGE_API = "/api/ecs_outlet"; //接口机
export const PRINT_API = "/api/ecs_prt";
export const TASK_API = "/api/ctr/task";
export const REPORTS_API = "/api/ecs_reports";

//考试类型
export const EXAM_TYPE = [
  { label: "传统", value: "TRADITION" },
  { label: "网考", value: "ONLINE" },
  { label: "练习", value: "PRACTICE" },
  { label: "离线", value: "OFFLINE" },
  { label: "在线作业", value: "ONLINE_HOMEWORK" },
  { label: "印刷", value: "PRINT_EXAM" },
];

// for exam type select
export const EXAM_TYPE_SELECT = [
  { code: "TRADITION", name: "传统" },
  { code: "ONLINE", name: "网考" },
  { code: "PRACTICE", name: "练习" },
  { code: "OFFLINE", name: "离线" },
  { code: "ONLINE_HOMEWORK", name: "在线作业" },
  { code: "PRINT_EXAM", name: "印刷" },
];

// for level type select
export const LEVEL_TYPE_SELECT = [
  { code: "ZSB", name: "专升本" },
  { code: "GQZ", name: "高起专" },
  { code: "GQB", name: "高起本" },
  { code: "ALL", name: "不限" },
];

//试卷类型
export const PAPER_TYPE = [
  "A",
  "B",
  "C",
  "D",
  "E",
  "F",
  "G",
  "H",
  "I",
  "J",
  "K",
  "L",
  "M",
  "N",
  "O",
  "P",
  "Q",
  "R",
  "S",
  "T",
  "U",
  "V",
  "W",
  "X",
  "Y",
  "Z",
];

//数据类型
export const BASIC_DATA_TYPE = [
  { code: "STRING", name: "STRING" },
  { code: "INTEGER", name: "INTEGER" },
  { code: "BOOLEAN", name: "BOOLEAN" },
  { code: "LONG", name: "LONG" },
  { code: "DATE", name: "DATE" },
];
//发布状态
export const PUBLISH_STATUS = [
  { code: "DRAFT", name: "未发布" },
  { code: "TO_BE_PUBLISHED", name: "待发布" },
  { code: "PUBLISHING", name: "发布中" },
  { code: "PUBLISHED", name: "已发布" },
];
//公告接受规则类型
export const NOTICE_RECEIVER_RULE_TYPE = [
  { code: "STUDENTS_OF_EXAM", name: "学生-按考试选择" },
  { code: "ALL_STUDENTS_OF_ROOT_ORG", name: "学生-学校中所有学生" },
  { code: "TEACHER_OF_MARK_WORK", name: "老师-按评卷老师选择" },
  { code: "COMMON_USERS_OF_ROLE", name: "老师-学习中心老师" },
];
//登录帐号类型
export const LOGIN_TYPE = [
  { code: "STUDENT_CODE", name: "学号登录" },
  { code: "IDENTITY_NUMBER", name: "身份证号登录" },
];
//防作弊配置
export const PREVENT_CHEATING_CONFIG = [
  { code: "DISABLE_REMOTE_ASSISTANCE", name: "禁用远程协助" },
  { code: "DISABLE_VIRTUAL_CAMERA", name: "禁用虚拟摄像头" },
  // { code: "DISABLE_VIRTUAL_MACHINE", name: "禁用虚拟机" },
  { code: "FULL_SCREEN_TOP", name: "强制全屏置顶" },
  { code: "DISABLE_MULTISCREEN", name: "禁用双屏" },
];
//学生端版本
export const STUDENT_CLIENT_VERSION = [
  { code: "1.0.0", name: "1.0.0" },
  { code: "2.0.0", name: "2.0.0" },
];
//考生端支持的登录方
export const LOGIN_SUPPORT = [
  { code: "NATIVE", name: "考生端登录" },
  { code: "BROWSER", name: "浏览器登录" },
];

export const AUDIT_AUTHORITY = [
  { code: "FIRST", name: "初级" },
  { code: "SECOND", name: "中级" },
  { code: "THIRD", name: "高级" },
];

export const PAPER_AUDIT_STATUS = [
  { code: "FIRST_PENDING_TRIAL", name: "初级待审" },
  { code: "SECOND_PENDING_TRIAL", name: "中级待审" },
  { code: "THIRD_PENDING_TRIAL", name: "高级待审" },
  { code: "WITHDRAW", name: "已撤回" },
  { code: "NOT_PASS", name: "审核未通过" },
  { code: "PASS", name: "审核通过" },
];

export const DIFFICULTY_LEVEL_ENUM = {
  HARD: "难",
  MEDIUM: "中",
  EASY: "易",
};

//
export const QUESTION_TYPES = [
  { code: "SINGLE_ANSWER_QUESTION", name: "单选" },
  { code: "MULTIPLE_ANSWER_QUESTION", name: "多选" },
  { code: "BOOL_ANSWER_QUESTION", name: "判断" },
  { code: "FILL_BLANK_QUESTION", name: "填空" },
  { code: "TEXT_ANSWER_QUESTION", name: "问答" },
  { code: "READING_COMPREHENSION", name: "阅读理解" },
  { code: "LISTENING_QUESTION", name: "听力" },
  { code: "CLOZE", name: "完形填空" },
  { code: "PARAGRAPH_MATCHING", name: "段落匹配" },
  { code: "BANKED_CLOZE", name: "选词填空" },
];
export const QUESTION_MAIN_TYPE = [
  { code: "BASICS", name: "基础题型" },
  { code: "COMBINATION", name: "组合题型" },
  { code: "SPECIAL", name: "特殊题型" },
];
export const BASE_QUESTION_TYPES = [
  { code: "SINGLE_ANSWER_QUESTION", name: "单选" },
  { code: "MULTIPLE_ANSWER_QUESTION", name: "多选" },
  { code: "BOOL_ANSWER_QUESTION", name: "判断" },
  { code: "FILL_BLANK_QUESTION", name: "填空" },
  { code: "TEXT_ANSWER_QUESTION", name: "问答" },
];

export const DIFFICULTY_LIST = [
  { code: "难", name: "难" },
  { code: "中", name: "中" },
  { code: "易", name: "易" },
];

/**
 * sections 必须有，这样结构容易验证和访问
 * sections 的内容可以为 [] ，表示一个完全的空富文本
 * 空行用 {type: "text", value: "", param: null} 来表示
 */
export const EMPTY_RICH_TEXT = { sections: [] };

export const PAPER_TEMPLATE_TYPE = {
  PAPER_EXPORT: "试卷导出模板",
  // SYNTHESIZE_PAPER_EXPORT: "综合卷导出模版",
};
