| 12345678910111213141516171819202122232425262728 |
- const makeId = require("../../util/makeId");
- const nestedProblemSerializer = require("./NestedProblemSerializer");
- const dayjs = require("dayjs");
- /**
- * @description 机器学习作业详情
- * @typedef {Object} DLWorkSerializer
- * @property {number | string} id 代码作业Id
- * @property {string} name 代码作业名称
- * @property {string} description 代码作业描述
- * @property {string} status 作业状态
- * @property {number} createAt 创建时间
- * @property {number} startAt 开始时间
- * @property {number} endAt 结束时间
- * @property {QuestionSerializerType[]} problem 作业题目
- */
- module.exports = () => {
- return {
- id: makeId(),
- name: "Tensorflow入门",
- description: "这是一个MINIST的作业",
- status: "PREPARING",
- createAt: dayjs("2018-10-21").unix(),
- startAt: dayjs("2019-01-01").unix(),
- endAt: dayjs("2019-01-20").unix(),
- problem: nestedProblemSerializer()
- };
- };
|