ScoreSerializer.js 455 B

123456789101112131415161718192021222324
  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. // function f() {
  15. return {
  16. id: makeId(),
  17. name: "测试",
  18. score: "90"
  19. };
  20. };
  21. // console.log(f());