zhou.xiaoning 2 лет назад
Родитель
Сommit
09e5312b56

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 12 - 13
controllers/wrTrade2/qryWrTrade.go

@@ -72,7 +72,7 @@ func QueryOrderQuoteDetail(c *gin.Context) {
 // QueryOrderQuoteMyq
 // @Summary 查询贸易圈挂牌大厅
 // @Description
-// @Produce  json
+// @Produce json
 // @Security    ApiKeyAuth
 // @Param    page            query    int    false "页码"
 // @Param    pagesize        query    int    false "每页条数"
@@ -87,7 +87,7 @@ func QueryOrderQuoteDetail(c *gin.Context) {
 // @Success  200             {array}  models.WrQuoteOrderMyq
 // @Failure  500             {object} app.Response
 // @Router   /WrTrade2/QueryOrderQuoteMyq [get]
-// @Tags     仓单贸易v2
+// @Tags    仓单贸易v2
 func QueryOrderQuoteMyq(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.WrQuoteOrderMyq{HasWr: -1}
@@ -319,7 +319,7 @@ func QueryWrFactorTypeInfoEx(c *gin.Context) {
 // @Security ApiKeyAuth
 // @Param    marketid query    int false "市场id"
 // @Success  200      {array}  models.WrMarketTradeConfig
-// @Failure 500        {object} app.Response
+// @Failure 500      {object} app.Response
 // @Router   /WrTrade2/QueryWrMarketTradeConfig [get]
 // @Tags     仓单贸易v2
 func QueryWrMarketTradeConfig(c *gin.Context) {
@@ -665,15 +665,14 @@ func QueryWrUserReceiptInfo(c *gin.Context) {
 }
 
 // QuerySiteColumnDetail
-// @Summary  查询资讯
+// @Summary 查询资讯
 // @Produce  json
-// @Security ApiKeyAuth
-// @Param   page       query    int false "页码"
-// @Param   pagesize   query    int false "每页条数"
-// @Param    columnid query    int false "所属栏目id"
-// @Success  200      {array}  models.WrSiteColumnDetail
-// @Failure  500      {object} app.Response
-// @Router   /WrTrade2/QuerySiteColumnDetail [get]
+// @Param   page     query    int false "页码"
+// @Param   pagesize query    int false "每页条数"
+// @Param   columnid query    int false "所属栏目id"
+// @Success 200      {array}  models.WrSiteColumnDetail
+// @Failure 500        {object} app.Response
+// @Router  /WrTrade2/QuerySiteColumnDetail [get]
 // @Tags     仓单贸易v2
 func QuerySiteColumnDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
@@ -685,8 +684,8 @@ func QuerySiteColumnDetail(c *gin.Context) {
 // QuerySiteColumnConfig
 // @Summary 查询资讯栏目配置
 // @Produce  json
-// @Param    page     query    int false "页码"
-// @Param    pagesize query    int false "每页条数"
+// @Param   page       query    int false "页码"
+// @Param   pagesize   query    int false "每页条数"
 // @Param   columntype query    int false "栏目类型 - 1:行情资讯 10:会员服务 30:关于我们 100:核心企业栏目-百色"
 // @Success 200        {array}  models.Sitecolumnconfig
 // @Failure  500      {object} app.Response

+ 0 - 5
docs/docs.go

@@ -17496,11 +17496,6 @@ const docTemplate = `{
         },
         "/WrTrade2/QuerySiteColumnDetail": {
             "get": {
-                "security": [
-                    {
-                        "ApiKeyAuth": []
-                    }
-                ],
                 "produces": [
                     "application/json"
                 ],

+ 0 - 5
docs/swagger.json

@@ -17487,11 +17487,6 @@
         },
         "/WrTrade2/QuerySiteColumnDetail": {
             "get": {
-                "security": [
-                    {
-                        "ApiKeyAuth": []
-                    }
-                ],
                 "produces": [
                     "application/json"
                 ],

+ 0 - 2
docs/swagger.yaml

@@ -37109,8 +37109,6 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
-      security:
-      - ApiKeyAuth: []
       summary: 查询资讯
       tags:
       - 仓单贸易v2

+ 1 - 1
routers/router.go

@@ -587,6 +587,7 @@ func InitRouter() *gin.Engine {
 	wrTrade2R.Use()
 	{
 		wrTrade2R.GET("QuerySiteColumnConfig", wrTrade2.QuerySiteColumnConfig)
+		wrTrade2R.GET("QuerySiteColumnDetail", wrTrade2.QuerySiteColumnDetail)
 		wrTrade2R.Use(token.Auth()).GET("QueryOrderQuote", wrTrade2.QueryOrderQuote)
 		wrTrade2R.Use(token.Auth()).GET("QueryOrderQuoteDetail", wrTrade2.QueryOrderQuoteDetail)
 		wrTrade2R.Use(token.Auth()).GET("QueryWrPosition", wrTrade2.QueryWrPosition)
@@ -621,7 +622,6 @@ func InitRouter() *gin.Engine {
 		wrTrade2R.Use(token.Auth()).GET("QueryWrTradeBargainApply", wrTrade2.QueryWrTradeBargainApply)
 		wrTrade2R.Use(token.Auth()).GET("QueryWrPerformanceStepType", wrTrade2.QueryWrPerformanceStepType)
 		wrTrade2R.Use(token.Auth()).GET("QueryWrUserReceiptInfo", wrTrade2.QueryWrUserReceiptInfo)
-		wrTrade2R.Use(token.Auth()).GET("QuerySiteColumnDetail", wrTrade2.QuerySiteColumnDetail)
 		wrTrade2R.Use(token.Auth()).GET("QueryDeliveryGoodsSection", wrTrade2.QueryDeliveryGoodsSection)
 		wrTrade2R.Use(token.Auth()).GET("QuerySpotGroupTradeSum", wrTrade2.QuerySpotGroupTradeSum)
 		wrTrade2R.Use(token.Auth()).GET("QuerySpotGroupTradeSumDetail", wrTrade2.QuerySpotGroupTradeSumDetail)