| 12345678910111213141516171819202122232425262728293031 |
- const makeId = require("../../util/makeId");
- /**
- * @description 代码作业项目信息
- * @typedef {Object} ProjectSerializerType
- * @property {number | string} id 代码作业项目Id
- * @property {number | string} codeId 代码作业Id
- * @property {string} url 项目git地址
- * @property {string} name 项目名称
- * @property {number[]} buildIdList 构建IDList
- * @property {number[]} deployIdList 部署IDList
- * @property {number[]} unitTestIdList 单元测试IDList
- * @property {number[]} functionTestIdList 功能测试IDList
- */
- /**
- * @description 生成代码作业项目信息
- * @returns {ProjectSerializerType}
- */
- module.exports = function projectSerializer() {
- return {
- id: makeId(),
- codeId: makeId(),
- url: "http://47.100.18.120:3000/SEEC-II-DOC/API-DOC",
- name: "物流作业系统_01组",
- buildIdList: [makeId(), makeId()],
- deployIdList: [makeId(), makeId(), makeId()],
- unitTestIdList: [makeId()],
- functionTestIdList: [makeId(), makeId()]
- };
- };
|