From 0b01e7cb78f7e64e52b6faf30f1e7e2b71acf784 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 31 十月 2019 17:37:30 +0800 Subject: [PATCH] fix: camera Pan-Tilt control --- controllers/task.go | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index 708371a..784f0eb 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -388,3 +388,20 @@ util.ResponseFormat(c,code.ComError,"鏌ヨ澶辫触") } } + +// @Summary 缁熻姣忎釜浠诲姟鐨勬憚鍍忔満鏁伴噺 +// @Description 缁熻姣忎釜浠诲姟鐨勬憚鍍忔満鏁伴噺 +// @Produce json +// @Tags task +// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" +// @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" +// @Router /data/api-v/task/statisticTaskCamera [get] +func (tc TaskController) StatisticTaskCamera(c *gin.Context) { + var taskApi dbapi.TaskApi + b,d := taskApi.StatisticTaskCamera() + if b { + util.ResponseFormat(c,code.Success, d) + } else { + util.ResponseFormat(c,code.ComError, "") + } +} -- Gitblit v1.8.0