| 123456789101112131415161718192021 |
- const makeId = require("../../util/makeId");
- /**
- * @description 代码作业镜像的基本信息
- * @typedef {Object} MirrorSerializerType
- * @property {number} id 镜像的 id
- * @property {string} gitUrl git 仓库地址
- * @property {string} downloadUrl 镜像下载地址
- */
- /**
- * @description 生成MirrorSerializer
- * @returns {MirrorSerializerType}
- */
- module.exports = ({ id = makeId() }) => {
- return {
- id,
- gitUrl: "www.gitUrl.com/xiaobai/handsome/smart",
- downloadUrl: "www.downloadUrl.com/xiaobai/handsome/smart"
- };
- };
|