|
|
@@ -1,11 +1,25 @@
|
|
|
const makeId = require("../util/makeId");
|
|
|
|
|
|
+/**
|
|
|
+ * @description 互评checkListItem详细实体类
|
|
|
+ * @typedef {Object} CheckListItemSerializerType
|
|
|
+ * @property {number|string} fid item id
|
|
|
+ * @property {string} content 评价内容
|
|
|
+ * @property {string} level 用户评级
|
|
|
+ * @property {string} comment 用户备注
|
|
|
+ * @property {string} explain 老师说明
|
|
|
+ */
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description 生成checkListItem
|
|
|
+ * @returns {CheckListItemSerializerType}
|
|
|
+ */
|
|
|
module.exports = () => {
|
|
|
return {
|
|
|
fid: makeId(),
|
|
|
content: "该项评价的内容, String",
|
|
|
- comment: "用户的备注, String",
|
|
|
- //未来会添加
|
|
|
+ level: "用户的备注, String",
|
|
|
+ comment: "用户的评级",
|
|
|
explain: "老师的说明,String"
|
|
|
};
|
|
|
};
|