From 68fc51cb635fecf12cad58deab88c3b5e0afc0ad Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 22 八月 2019 17:06:49 +0800 Subject: [PATCH] yunnan swagger doc --- controllers/eventPush.go | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/controllers/eventPush.go b/controllers/eventPush.go index 18f8a49..551912c 100644 --- a/controllers/eventPush.go +++ b/controllers/eventPush.go @@ -47,6 +47,7 @@ Enable bool `json:"enable"` } +/* // @Summary 浜嬩欢鎺ㄩ�佷繚瀛� // @Description 浜嬩欢鎺ㄩ�佷繚瀛� // @Tags 浜嬩欢鎺ㄩ�� @@ -54,6 +55,7 @@ // @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 { @@ -70,6 +72,7 @@ } } +/* // @Summary 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛� // @Description 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛� // @Produce json @@ -79,6 +82,7 @@ // @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") @@ -95,6 +99,7 @@ } } +/* // @Summary 鏌ュ叏閮� // @Description 鏌ュ叏閮� // @Produce json @@ -103,6 +108,7 @@ // @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 @@ -114,6 +120,7 @@ } } +/* // @Summary 浜嬩欢鎺ㄩ�佺紪杈� // @Description 浜嬩欢鎺ㄩ�佺紪杈� // @Produce json @@ -122,6 +129,7 @@ // @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 == "" { @@ -142,6 +150,7 @@ Enable bool `json:"enable"` } +/* // @Summary 鏀瑰彉enable鐘舵�� // @Description 鏀瑰彉enable鐘舵�� // @Produce json @@ -150,6 +159,7 @@ // @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) @@ -166,6 +176,7 @@ } } +/* // @Summary 鏍规嵁id鍒犻櫎 // @Description 鏍规嵁id鍒犻櫎 // @Accept x-www-form-urlencoded @@ -175,6 +186,7 @@ // @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