NestedScoreSerializer.js 472 B

1234567891011121314151617181920
  1. const makeId = require("../../util/makeId");
  2. /**
  3. * @description 作业成绩基本信息
  4. * @typedef {Object} NestedScoreSerializerType
  5. * @property {number} id 作业id
  6. * @property {string} name 作业名称
  7. * @property {number} score 作业成绩
  8. */
  9. /**
  10. * @description 生成作业成绩基本信息
  11. * @returns {NestedScoreSerializerType}
  12. */
  13. module.exports = () => {
  14. return {
  15. id: makeId(),
  16. name: "第一次作业:用例文档",
  17. score: 89
  18. };
  19. };