const makeId = require("../../util/makeId"); /** * @description 用户基本信息 * @typedef {Object} UserSerializerType * @property {number|string} id 用户id * @property {string} role 用户身份 * @property {string} nickname 用户昵称 * @property {string} [bio] 用户描述 */ /** * 生成基本用户信息 * @param role * @returns {UserSerializerType} */ module.exports = (role = "STUDENT") => { return { id: makeId(), role: role, username: "xb", nickname: "小白大王", bio: "小白白白最最最最帅帅帅帅帅帅帅帅" }; };