| | |
| | | Name string `json:"name"` |
| | | Type int `json:"type" ` |
| | | Addr string `json:"addr"` |
| | | Areaid string `json:"areaid"` |
| | | Longitude float64 `json:"longitude"` |
| | | Latitude float64 `json:"latitude"` |
| | | Areaid string `json:"areaid"` |
| | | Longitude float32 `json:"longitude"` |
| | | Latitude float32 `json:"latitude"` |
| | | Rtsp string `json:"rtsp"` |
| | | Ip string `json:"ip"` |
| | | Port int `json:"port"` |
| | |
| | | var api dbapi.CameraTaskApi |
| | | flag, data := api.UpdateCameraTaskStatus(paramVo.CameraId, paramVo.TaskId, paramVo.Status) |
| | | if flag { |
| | | util.ResponseFormat(c,code.Success,data) |
| | | if data.(string) == "此任务为停用状态,请在任务管理中开启!"{ |
| | | util.ResponseFormat(c,code.TaskStoped,data) |
| | | } else { |
| | | util.ResponseFormat(c,code.UpdateSuccess,data) |
| | | } |
| | | } else { |
| | | util.ResponseFormat(c,code.ComError,data) |
| | | } |
| | |
| | | DbPersonUpdateSuccess = &Code{ http.StatusOK, true, "人员更新成功"} |
| | | |
| | | CompareResultGone = &Code{ http.StatusOK,true,"上次比对已失效,请从新比对"} |
| | | |
| | | TaskStoped = &Code{http.StatusOK, true, "此任务为停用状态,请在任务管理中开启!"} |
| | | |
| | | ComError = &Code{http.StatusInternalServerError, false, ""} |
| | | ) |