From 3fe28541b4c4d0ed35ff0d301367981729df4c9d Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 02 八月 2019 17:43:33 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.14:10010/r/webserver

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

diff --git a/controllers/task.go b/controllers/task.go
index 2a2f10a..0acdb4f 100644
--- a/controllers/task.go
+++ b/controllers/task.go
@@ -142,9 +142,9 @@
 	}
 	flag,data := taskApi.DeleteTaskSdk(taskId,sdkId)
 	if flag {
-		util.ResponseFormat(c, code.ComError, data)
+		util.ResponseFormat(c, code.Success, data)
 	} else {
-		util.ResponseFormat(c,code.Success,data)
+		util.ResponseFormat(c,code.ComError, data)
 	}
 }
 
@@ -152,8 +152,8 @@
 // @Description 鏇存柊浠诲姟鍚嶇О
 // @Produce json
 // @Tags task
-// @Param taskId body string true "taskId"
-// @Param taskName body string true "taskName"
+// @Param taskId query string true "taskId"
+// @Param taskName query string true "taskName"
 // @Success 200 {string} json "{"code":200, msg:"",data:"",success:true}"
 // @Failure 500 {string} json "{"code":500, msg:"",data:"",success:false}"
 // @Router /data/api-v/task/updateTaskName [POST]
@@ -231,7 +231,7 @@
 type TaskSdkRules struct {
 	TaskId string `json:"taskId"`
 	SdkId string  `json:"sdkId"`
-	rules []TaskSdkRuleVo `json:"rules"`
+	Rules []TaskSdkRuleVo `json:"rules"`
 }
 
 type TaskSdkRuleVo struct {
@@ -271,7 +271,7 @@
 // @Description 鍒犻櫎绠楁硶瑙勫垯
 // @Produce json
 // @Tags 绠楁硶瑙勫垯
-// @Param id body string true "id"
+// @Param id query string true "id"
 // @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/deleteTaskSdkRuleById [post]

--
Gitblit v1.8.0