| 1234567891011121314151617181920212223242526272829 |
- const makeId = require("../../util/makeId");
- /**
- * @description 互评checkListItem详细实体类
- * @typedef {Object} CheckListItemSerializerType
- * @property {number|string} id checkListItem id
- * @property {string} content 评价内容
- * @property {boolean} level 用户评级
- * @property {string} comment 用户备注
- * @property {string} explain 老师说明
- * @property {string} remark 学生申请argue的备注
- * @property {string} state ["DEFAULT","SUBMITTED","PENDING","SOLVING","ARGUED"]
- */
- /**
- * @description 生成checkListItem
- * @returns {CheckListItemSerializerType}
- */
- module.exports = ({ id = makeId(), state = "DEFAULT" }) => {
- return {
- id,
- content: "该项评价的内容, String",
- level: false,
- comment: "用户的评级",
- explain: "老师的说明,String",
- remark: "学生申请argue的备注",
- state
- };
- };
|