| 12345678910111213141516171819202122232425262728 |
- const makeId = require("../../util/makeId");
- const groupSerializer = require("../course/GroupSerializer");
- /**
- * @description 文档作业成绩
- * @typedef {Object} DocumentResultSerializerType
- * @property {number | string} id 文档作业成绩id
- * @property {number} document 所属文档作业Id
- * @property {GroupSerializerType} group 所属小组
- * @property {string} state 作业状态
- * @property {string} result 成绩等级
- */
- /**
- * @description 生成文档作业成绩
- * @returns {DocumentResultSerializerType}
- */
- module.exports = () => {
- return {
- id: makeId(),
- document: makeId(),
- group: groupSerializer(),
- state: "互评中",
- result: "A",
- url: "https://github.com",
- reviewGroup: [1, 2, 3]
- };
- };
|