Просмотр исходного кода

[更新] 更新等级类型为 boolean

WuXinyu 7 лет назад
Родитель
Сommit
257b9c072f

+ 2 - 2
mock/serializers/review/CheckListItemSerializer.js

@@ -5,7 +5,7 @@ const makeId = require("../../util/makeId");
  * @typedef {Object} CheckListItemSerializerType
  * @property {number|string} id checkListItem id
  * @property {string} content 评价内容
- * @property {string} level 用户评级
+ * @property {boolean} level 用户评级
  * @property {string} comment 用户备注
  * @property {string} explain 老师说明
  * @property {string} remark 学生申请argue的备注
@@ -20,7 +20,7 @@ module.exports = ({ id = makeId(), state = "DEFAULT" }) => {
   return {
     id,
     content: "该项评价的内容, String",
-    level: "用户的备注, String",
+    level: false,
     comment: "用户的评级",
     explain: "老师的说明,String",
     remark: "学生申请argue的备注",

+ 2 - 2
mock/serializers/review/CheckListResultItemSerializer.js

@@ -13,7 +13,7 @@ const makeId = require("../../util/makeId");
  * @description 各个小组的评价
  * @typedef {Object} ResultByGroupType
  * @property {number|string} groupId 小组 id
- * @property {number} level 小组做出的评价
+ * @property {boolean} level 小组做出的评价
  * @property {string} comment 小组做出的备注
  */
 
@@ -27,7 +27,7 @@ module.exports = ({ id = makeId() }) => {
    */
   const groupResult = () => ({
     groupId: makeId(),
-    level: 1,
+    level: true,
     comment: "小组做出的备注"
   });