MirrorSerializer.js 572 B

123456789101112131415161718192021
  1. const makeId = require("../../util/makeId");
  2. /**
  3. * @description 代码作业镜像的基本信息
  4. * @typedef {Object} MirrorSerializerType
  5. * @property {number | string} id 镜像id
  6. * @property {string} gitUrl 仓库地址
  7. * @property {string} downloadUrl 镜像下载地址
  8. */
  9. /**
  10. * @description 生成代码作业镜像的基本信息
  11. * @returns {MirrorSerializerType}
  12. */
  13. module.exports = () => {
  14. return {
  15. id: makeId(),
  16. gitUrl: "http://47.100.18.120:3000/SEEC-II-DOC/API-DOC",
  17. downloadUrl: "http://47.100.18.120:3000/SEEC-II-DOC/API-DOC"
  18. };
  19. };