fix
liuxiaolong
2019-11-13 263c7b18ce7f18f1222318f6e0e499e907895a52
extend/code/code.go
@@ -14,6 +14,7 @@
   Success = &Code{http.StatusOK, true, "请求处理成功"}
   AddSuccess = &Code{http.StatusOK,true,"添加成功"}
   UpdateSuccess = &Code{http.StatusOK,true,"更新成功"}
   UpdateFail    = &Code{http.StatusBadRequest, false, "更新失败"}
   DelSuccess = &Code{http.StatusOK,true,"删除成功"}
   // RequestParamError 请求参数错误
   RequestParamError = &Code{http.StatusBadRequest, false, "请求参数有误"}
@@ -49,6 +50,17 @@
   NotLogin = &Code{ http.StatusUnauthorized, false, "登录失效,请重新登录"}
   DbPersonUploadSuccess = &Code{ http.StatusOK, true, "人员上传成功"}
   DbPersonUploadFail = &Code{ http.StatusInternalServerError, false, "人员上传失败"}
   DbPersonUpdateSuccess = &Code{ http.StatusOK, true, "人员更新成功"}
   CompareResultGone = &Code{ http.StatusOK,true,"上次比对已失效,请从新比对"}
   TaskStoped = &Code{http.StatusOK, false, "此任务为停用状态,请在任务管理中开启!"}
   ComError = &Code{http.StatusInternalServerError, false, ""}
   ClusterNodesEmpty   = &Code{http.StatusOK, true, "集群节点为空"}
   AddTaskErr          = &Code{http.StatusInternalServerError, false, "此国标摄像机已在其它服务器配置任务!"}
   CreateFirstNodeErr  = &Code{http.StatusInternalServerError, false, "创建节点失败!"}
   QueryClusterInfoErr = &Code{http.StatusInternalServerError, false, "查询失败,请确认您的ip是正确的!"}
   AddClusterInfoErr   = &Code{http.StatusInternalServerError, false, "加入节点失败!"}
)