From f26a0cab5bca17b7eab57f6330e576271e17a17f Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 13 十一月 2019 19:12:08 +0800
Subject: [PATCH] update ynSwagger,sync to master

---
 controllers/eventPush.go |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/controllers/eventPush.go b/controllers/eventPush.go
index 551912c..4580206 100644
--- a/controllers/eventPush.go
+++ b/controllers/eventPush.go
@@ -47,15 +47,16 @@
 	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:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/eventPush/save [post]
-*/
 func (epc EventPushController) Save(c *gin.Context) {
 	var saveBody EventPushVo
 	if err := c.BindJSON(&saveBody); err != nil {
@@ -72,9 +73,10 @@
 	}
 }
 
-/*
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
 // @Description  鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param topic query string true "涓�绾т富棰橀�夐」,渚嬪锛歝amera(鎽勫儚鏈�)"
@@ -82,7 +84,6 @@
 // @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/findByEventTopic [get]
-*/
 func (epc EventPushController) FindByEventTopic(c *gin.Context) {
 	topic := c.Query("topic")
 	childType := c.Query("type")
@@ -99,16 +100,16 @@
 	}
 }
 
-/*
+// @Security ApiKeyAuth
 // @Summary 鏌ュ叏閮�
 // @Description  鏌ュ叏閮�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param name query string false "浜嬩欢鍚嶇О"
 // @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/findAll [get]
-*/
 func (controller EventPushController) FindAll(c *gin.Context) {
 	name := c.Query("name")
 	var api dbapi.EventPushApi
@@ -120,16 +121,16 @@
 	}
 }
 
-/*
+// @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佺紪杈�
 // @Description  浜嬩欢鎺ㄩ�佺紪杈�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @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/eventPush/getById [get]
-*/
 func (controller EventPushController) GetById(c *gin.Context) {
 	id := c.Query("id")
 	if id == "" {
@@ -150,16 +151,16 @@
 	Enable bool   `json:"enable"`
 }
 
-/*
+// @Security ApiKeyAuth
 // @Summary 鏀瑰彉enable鐘舵��
 // @Description  鏀瑰彉enable鐘舵��
+// @Accept json
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param statusBody body controllers.ChangeStatusVo true "鍙傛暟缁撴瀯"
 // @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/changeStatus [post]
-*/
 func (controller EventPushController) ChangeStatus(c *gin.Context) {
 	var statusBody ChangeStatusVo
 	err := c.BindJSON(&statusBody)
@@ -176,17 +177,16 @@
 	}
 }
 
-/*
+// @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]
-*/
 func (controller EventPushController) Delete(c *gin.Context) {
 	id := c.PostForm("id")
 	if id == "" {

--
Gitblit v1.8.0