From 7c811247ecf143e08c576986a884bedadc57dd66 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 05 六月 2020 18:29:41 +0800 Subject: [PATCH] add refresh token to resp --- controllers/task.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index 57f9414..8c2e205 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -102,7 +102,7 @@ //澶勭悊宸茶鍒犻櫎鐨勪换鍔� localConf, _ := cache.GetServerInfo() if localConf.AlarmIp != "" && localConf.ServerId != "" && localConf.AlarmPort>0 { - indexName := config.EsInfo.EsIndex.VideoPersons.IndexName + "," + config.EsInfo.EsIndex.Personaction.IndexName + indexName := config.EsInfo.EsIndex.AiOcean.IndexName esTaskM, e := esutil.AggregateTaskList(localConf.AlarmIp, strconv.Itoa(int(localConf.AlarmPort)), indexName, localConf.ServerId) if e==nil && esTaskM !=nil { for _,tM :=range esTaskM { @@ -167,6 +167,7 @@ // @Security ApiKeyAuth // @Summary 缁欎换鍔℃坊鍔犵畻娉� // @Description 浠诲姟娣诲姞绠楁硶 +// @Accept json // @Produce json // @Tags task // @Param taskSdkAdd body controllers.TaskSdkAdd true "浠诲姟id" @@ -219,6 +220,7 @@ // @Security ApiKeyAuth // @Summary 鏇存柊浠诲姟鍚嶇О // @Description 鏇存柊浠诲姟鍚嶇О +// @Accept x-www-form-urlencoded // @Produce json // @Tags task // @Param taskId formData string true "taskId" @@ -250,6 +252,7 @@ // @Security ApiKeyAuth // @Summary 鏇存柊浠诲姟鐘舵�� // @Description 锛堢畻娉曚笉鍙�,鍙洿鏂颁换鍔$姸鎬侊級 +// @Accept json // @Produce json // @Tags task // @Param taskStatus body controllers.TaskStatusVo true "鍙傛暟" @@ -341,6 +344,7 @@ // @Security ApiKeyAuth // @Summary 鍒犻櫎绠楁硶瑙勫垯 // @Description 鍒犻櫎绠楁硶瑙勫垯 +// @Accept x-www-form-urlencoded // @Produce json // @Tags 绠楁硶瑙勫垯 // @Param taskId formData string true "taskId" -- Gitblit v1.8.0