From 4c7890a506f95bfc8d06a75dbf6150bb8fcad1bb Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 28 九月 2019 15:28:32 +0800
Subject: [PATCH] add logger

---
 controllers/camera.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/controllers/camera.go b/controllers/camera.go
index 352f648..7e484ef 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -57,10 +57,10 @@
 		util.ResponseFormat(c, code.RequestParamError, "鍙傛暟閿欒")
 		return
 	}
-	cam.Id = util.PseudoUuid()
 	paramBody := util.Struct2Map(cam)
-	if api.CameraAdd(paramBody) {
-		util.ResponseFormat(c, code.Success, cam)
+	b, data := api.CameraAdd(paramBody)
+	if b {
+		util.ResponseFormat(c, code.Success, data)
 		return
 	}
 	util.ResponseFormat(c, code.ComError, err)

--
Gitblit v1.8.0