Browse Source

优化返回信息

Li 3 years ago
parent
commit
ac7f2990b7

+ 1 - 1
TEAMModelBI/Controllers/BIAbility/AbilityMgmtController.cs

@@ -194,7 +194,7 @@ namespace TEAMModelBI.Controllers.BIAbility
                     }
                     else
                     {
-                        return Ok(new { sate = 2, mesages = "参数异常" });
+                        return Ok(new { state = 2, mesages = "参数异常" });
                     }
                     tempType = "ability-add";
                     ability.id = Guid.NewGuid().ToString();

+ 1 - 1
TEAMModelBI/Controllers/BISchool/BatchAreaController.cs

@@ -119,7 +119,7 @@ namespace TEAMModelBI.Controllers.BISchool
                         }
                     }
                 }
-                else return Ok(new { sate = 1, message = "区域参数为空" });
+                else return Ok(new { state = 1, message = "区域参数为空" });
                 if (standards.Count > 0)
                     return Ok(new { state = 201, message = "已有部分区域批量创建成功;标准项已重复!请检查标准项!", standards = standards });
                 else return Ok(new { state = 200, message = "批量创区全部完成", });

+ 1 - 1
TEAMModelBI/Controllers/DingDingStruc/TableDingDingInfoController.cs

@@ -525,7 +525,7 @@ namespace TEAMModelBI.Controllers.DingDingStruc
                     ddUserInfos.Add(tempUserInfo);
                 }
 
-                return Ok(new { sate = 200, ddUserInfos });
+                return Ok(new { state = 200, ddUserInfos });
             }
             catch (Exception ex)
             {