| 12345678910111213141516171819202122 |
- const makeId = require("../util/makeId");
- /**
- * @description 文件基本信息
- * @typedef {Object} FileSerializerType
- * @property {string} filename 文件名
- * @property {string} content 文件内容
- * @property {number} size 文件大小
- * @property {number} uploader 上传者ID
- */
- /**
- * @description 生成文件基本信息
- * @returns {FileSerializerType}
- */
- module.exports = () => {
- return {
- filename: "第一次代码作业需求描述",
- content: "这里是第一次代码作业的描述bulabulabulala",
- size: 20,
- uploader: makeId()
- };
- };
|