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/eventPush.go |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/controllers/eventPush.go b/controllers/eventPush.go
index 18f8a49..4580206 100644
--- a/controllers/eventPush.go
+++ b/controllers/eventPush.go
@@ -47,8 +47,11 @@
 	Enable bool   `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佷繚瀛�
 // @Description 浜嬩欢鎺ㄩ�佷繚瀛�
+// @Accept json
+// @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param SaveArgs body controllers.EventPushVo true "鏃堕棿鎺ㄩ�佷繚瀛樺弬鏁�"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
@@ -70,8 +73,10 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
 // @Description  鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param topic query string true "涓�绾т富棰橀�夐」,渚嬪锛歝amera(鎽勫儚鏈�)"
@@ -95,8 +100,10 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ュ叏閮�
 // @Description  鏌ュ叏閮�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param name query string false "浜嬩欢鍚嶇О"
@@ -114,8 +121,10 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佺紪杈�
 // @Description  浜嬩欢鎺ㄩ�佺紪杈�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param id query string true "id"
@@ -142,8 +151,10 @@
 	Enable bool   `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏀瑰彉enable鐘舵��
 // @Description  鏀瑰彉enable鐘舵��
+// @Accept json
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param statusBody body controllers.ChangeStatusVo true "鍙傛暟缁撴瀯"
@@ -166,12 +177,13 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁id鍒犻櫎
 // @Description  鏍规嵁id鍒犻櫎
 // @Accept x-www-form-urlencoded
 // @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/eventPush/delete [post]

--
Gitblit v1.8.0