| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- const makeId = require("../../util/makeId");
- const fileSerializer = require("../FileSerializer");
- /**
- * @description 题目信息
- * @typedef {Object} QuestionSerializerType
- * @property {number|string} id 题目id
- * @property {string} name 题目名称
- * @property {string} description 题目描述
- * @property {Object} assignmentType 作业类型
- * @property {Object} type 题目类型
- * @property {number} creator 创建者id
- * @property {number} expectTime 预计完成时间
- * @property {number} difficulty 题目难度
- * @property {FileSerializerType} file 题目文件
- */
- /**
- * @description 题目信息
- * @returns {QuestionSerializerType}
- */
- module.exports = () => {
- return {
- id: makeId(),
- name: "物流系统需求规格说明书",
- description: "某公司为xxx快递公司,请为该公司设计一个物流管理系统",
- assignmentType: {
- name: "DOCUMENT",
- value: "文档作业"
- },
- type: {
- name: "DOCUMENT",
- value: "文档作业"
- },
- creator: makeId(),
- expectTime: 20,
- difficulty: 1,
- file: fileSerializer()
- };
- };
|