zhou.xiaoning 2 år sedan
förälder
incheckning
dc49fae3b2
5 ändrade filer med 197 tillägg och 8 borttagningar
  1. 1 1
      controllers/common/news.go
  2. 4 4
      controllers/guangzuan/tradeService.go
  3. 70 1
      docs/docs.go
  4. 70 1
      docs/swagger.json
  5. 52 1
      docs/swagger.yaml

+ 1 - 1
controllers/common/news.go

@@ -20,7 +20,7 @@ type QueryNewTitlesReq struct {
 // @Summary 取资讯标题列表
 // @Produce json
 // @Param   columnid query    int false "所属栏目"
-// @Success 200      {object} models.QueryErrorInfosRsp
+// @Success 200      {object} models.QueryNewTitlesRsp
 // @Failure 500 {object} app.Response
 // @Router  /Common/QueryNewTitles [get]
 // @Tags    通用服务

+ 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]

+ 70 - 1
docs/docs.go

@@ -915,7 +915,7 @@ const docTemplate = `{
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/models.QueryErrorInfosRsp"
+                            "$ref": "#/definitions/models.QueryNewTitlesRsp"
                         }
                     },
                     "500": {
@@ -44730,6 +44730,75 @@ const docTemplate = `{
                 }
             }
         },
+        "models.QueryNewTitlesRsp": {
+            "type": "object",
+            "properties": {
+                "author": {
+                    "description": "作者",
+                    "type": "string"
+                },
+                "brief": {
+                    "description": "简介",
+                    "type": "string"
+                },
+                "columnid": {
+                    "description": "所属栏目",
+                    "type": "integer"
+                },
+                "coverimage": {
+                    "description": "封面图片",
+                    "type": "string"
+                },
+                "creaedate": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "hits": {
+                    "description": "点击数",
+                    "type": "integer"
+                },
+                "id": {
+                    "description": "ID(SEQ_SITE_COLUMNDETAIL)",
+                    "type": "integer"
+                },
+                "isshow": {
+                    "description": "是否展示 - 0:不展示 1:展示",
+                    "type": "integer"
+                },
+                "istop": {
+                    "description": "是否置顶 - 0:不置 1:置顶",
+                    "type": "integer"
+                },
+                "modifierid": {
+                    "description": "操作人",
+                    "type": "integer"
+                },
+                "publishdate": {
+                    "description": "发布日期",
+                    "type": "string"
+                },
+                "status": {
+                    "description": "状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝",
+                    "type": "integer"
+                },
+                "title": {
+                    "description": "标题",
+                    "type": "string"
+                },
+                "updatedate": {
+                    "description": "修改时间",
+                    "type": "string"
+                },
+                "userid": {
+                    "description": "用户ID(默认为0, 核心为为机构用户ID)",
+                    "type": "integer"
+                }
+            }
+        },
         "models.QuotePrimaryMenu": {
             "type": "object",
             "properties": {

+ 70 - 1
docs/swagger.json

@@ -906,7 +906,7 @@
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/models.QueryErrorInfosRsp"
+                            "$ref": "#/definitions/models.QueryNewTitlesRsp"
                         }
                     },
                     "500": {
@@ -44721,6 +44721,75 @@
                 }
             }
         },
+        "models.QueryNewTitlesRsp": {
+            "type": "object",
+            "properties": {
+                "author": {
+                    "description": "作者",
+                    "type": "string"
+                },
+                "brief": {
+                    "description": "简介",
+                    "type": "string"
+                },
+                "columnid": {
+                    "description": "所属栏目",
+                    "type": "integer"
+                },
+                "coverimage": {
+                    "description": "封面图片",
+                    "type": "string"
+                },
+                "creaedate": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "hits": {
+                    "description": "点击数",
+                    "type": "integer"
+                },
+                "id": {
+                    "description": "ID(SEQ_SITE_COLUMNDETAIL)",
+                    "type": "integer"
+                },
+                "isshow": {
+                    "description": "是否展示 - 0:不展示 1:展示",
+                    "type": "integer"
+                },
+                "istop": {
+                    "description": "是否置顶 - 0:不置 1:置顶",
+                    "type": "integer"
+                },
+                "modifierid": {
+                    "description": "操作人",
+                    "type": "integer"
+                },
+                "publishdate": {
+                    "description": "发布日期",
+                    "type": "string"
+                },
+                "status": {
+                    "description": "状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝",
+                    "type": "integer"
+                },
+                "title": {
+                    "description": "标题",
+                    "type": "string"
+                },
+                "updatedate": {
+                    "description": "修改时间",
+                    "type": "string"
+                },
+                "userid": {
+                    "description": "用户ID(默认为0, 核心为为机构用户ID)",
+                    "type": "integer"
+                }
+            }
+        },
         "models.QuotePrimaryMenu": {
             "type": "object",
             "properties": {

+ 52 - 1
docs/swagger.yaml

@@ -18216,6 +18216,57 @@ definitions:
         description: 用户ID(默认为0, 核心为为机构用户ID)
         type: integer
     type: object
+  models.QueryNewTitlesRsp:
+    properties:
+      author:
+        description: 作者
+        type: string
+      brief:
+        description: 简介
+        type: string
+      columnid:
+        description: 所属栏目
+        type: integer
+      coverimage:
+        description: 封面图片
+        type: string
+      creaedate:
+        description: 创建时间
+        type: string
+      creatorid:
+        description: 创建人
+        type: integer
+      hits:
+        description: 点击数
+        type: integer
+      id:
+        description: ID(SEQ_SITE_COLUMNDETAIL)
+        type: integer
+      isshow:
+        description: 是否展示 - 0:不展示 1:展示
+        type: integer
+      istop:
+        description: 是否置顶 - 0:不置 1:置顶
+        type: integer
+      modifierid:
+        description: 操作人
+        type: integer
+      publishdate:
+        description: 发布日期
+        type: string
+      status:
+        description: 状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝
+        type: integer
+      title:
+        description: 标题
+        type: string
+      updatedate:
+        description: 修改时间
+        type: string
+      userid:
+        description: 用户ID(默认为0, 核心为为机构用户ID)
+        type: integer
+    type: object
   models.QuotePrimaryMenu:
     properties:
       Index:
@@ -27483,7 +27534,7 @@ paths:
         "200":
           description: OK
           schema:
-            $ref: '#/definitions/models.QueryErrorInfosRsp'
+            $ref: '#/definitions/models.QueryNewTitlesRsp'
         "500":
           description: Internal Server Error
           schema: