BuildSerializer.js 672 B

12345678910111213141516171819202122232425
  1. const makeId = require("../../util/makeId");
  2. /**
  3. * @description 代码一次构建的基本信息
  4. * @typedef {Object} BuildSerializerType
  5. * @property {number | string} id 代码一次构建的id
  6. * @property {number | string} branchId 分支id
  7. * @property {string} buildState 构建输出的信息
  8. * @property {number | string} mirrorId 镜像id
  9. * @property {string} commitMessage commit信息
  10. */
  11. /**
  12. * @description 生成代码构建信息
  13. * @returns {BuildSerializerType}
  14. */
  15. module.exports = () => {
  16. return {
  17. id: makeId(),
  18. branchId: makeId(),
  19. buildState: "构建中......",
  20. mirrorId: makeId(),
  21. commitMessage: "commit信息...."
  22. };
  23. };