ScoreSerializer.js 413 B

123456789101112131415161718192021
  1. const makeId = require("../../util/makeId");
  2. /**
  3. * @description 成绩条目
  4. * @typedef {Object} ScoreSerializerType
  5. * @property {number} id 条目编号
  6. * @property {string} name 条目名称
  7. * @property {string} score 得分
  8. */
  9. /**
  10. * @description 生成条目成绩
  11. * @returns {ScoreSerializerType}
  12. */
  13. module.exports = () => {
  14. return {
  15. id: makeId(),
  16. name: "测试",
  17. score: "90"
  18. };
  19. };