From 449c4b9a06eb4b2e8de37e4ac13c3dd8d424d43d Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 22 十月 2019 16:55:51 +0800 Subject: [PATCH] update route --- controllers/task.go | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index f27e9d0..6e675a8 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -130,8 +130,8 @@ // @Description 鏍规嵁taskid鍜宻dkid鍒犻櫎 // @Produce json // @Tags task -// @Param taskId path string true "浠诲姟id" -// @Param sdkId path string true "绠楁硶id" +// @Param taskId query string true "浠诲姟id" +// @Param sdkId query string true "绠楁硶id" // @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/delTaskSdk [GET] @@ -155,8 +155,8 @@ // @Description 鏇存柊浠诲姟鍚嶇О // @Produce json // @Tags task -// @Param taskId query string true "taskId" -// @Param taskName query string true "taskName" +// @Param taskId formData string true "taskId" +// @Param taskName formData 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] @@ -211,7 +211,7 @@ // @Description 鏍规嵁浠诲姟id鍒犻櫎浠诲姟 // @Produce json // @Tags task -// @Param taskId path string true "浠诲姟id" +// @Param taskId query string true "浠诲姟id" // @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/delete [GET] @@ -274,7 +274,7 @@ // @Description 鍒犻櫎绠楁硶瑙勫垯 // @Produce json // @Tags 绠楁硶瑙勫垯 -// @Param id query string true "id" +// @Param id formData 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/deleteTaskSdkRule [post] @@ -298,8 +298,8 @@ // @Description 鏌ヨ绠楁硶瑙勫垯 // @Produce json // @Tags 绠楁硶瑙勫垯 -// @Param taskId path string true "浠诲姟id" -// @Param sdkId path string true "绠楁硶id" +// @Param taskId query string true "浠诲姟id" +// @Param sdkId 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/getRulesByTaskSdk [get] -- Gitblit v1.8.0