const makeId = require("../../util/makeId"); const courseSerializer = require("../course/CourseSerializer"); const dayjs = require("dayjs"); const groupSerializer = require("../course/GroupSerializer"); /** * @description 互评checkListItem详细实体类 * @typedef {Object} ReviewSimpleSerializerType * @property {number|string} id 互评作业id * @property {string} name 对应的文档作业名称 * @property {CourseSerializerType} course 所属课程 * @property {number} beginAt 开始时间 * @property {number} endAt 截止时间 * @property {GroupSerializerType} group 所属小组 */ /** * @description 生成ReviewSimpleSerializerType * @returns ReviewSimpleSerializerType */ const reviewSimpleSerializer = () => { return { id: makeId(), name: "该项评价的内容, String", course: courseSerializer(), beginAt: dayjs("2018-10-21").unix(), endAt: dayjs("2018-12-21").unix(), group: groupSerializer() }; }; module.exports = reviewSimpleSerializer;