Ver código fonte

User/LoginQuery 接口商品组增加 thumurls 出参

zhouxnsz 1 ano atrás
pai
commit
6eab4f9851
5 arquivos alterados com 52 adições e 4 exclusões
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 16 0
      docs/docs.go
  3. 16 0
      docs/swagger.json
  4. 12 0
      docs/swagger.yaml
  5. 4 0
      models/market.go

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

+ 16 - 0
docs/docs.go

@@ -39720,6 +39720,10 @@ const docTemplate = `{
                     "description": "合约单位",
                     "type": "number"
                 },
+                "areauserid": {
+                    "description": "所属机构",
+                    "type": "integer"
+                },
                 "canshort": {
                     "description": "是否允许做空[通道交易] - 0:不能做空 1:可以做空",
                     "type": "integer"
@@ -39772,6 +39776,10 @@ const docTemplate = `{
                     "description": "报价单位ID",
                     "type": "integer"
                 },
+                "groupcategroyid": {
+                    "description": "品种分类ID",
+                    "type": "integer"
+                },
                 "innerdealmode": {
                     "description": "内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今",
                     "type": "integer"
@@ -39780,6 +39788,10 @@ const docTemplate = `{
                     "description": "是否限制建仓量 - 0:不限制 1:限制",
                     "type": "integer"
                 },
+                "maingoodsid": {
+                    "description": "主力合约ID",
+                    "type": "integer"
+                },
                 "marketid": {
                     "description": "所属市场ID",
                     "type": "integer"
@@ -39835,6 +39847,10 @@ const docTemplate = `{
                 "syncgoodsqty": {
                     "description": "同步合约数[通道交易-投资管理用] - 0表示不限",
                     "type": "integer"
+                },
+                "thumurls": {
+                    "description": "缩略图片(1:1)(逗号分隔)",
+                    "type": "string"
                 }
             }
         },

+ 16 - 0
docs/swagger.json

@@ -39711,6 +39711,10 @@
                     "description": "合约单位",
                     "type": "number"
                 },
+                "areauserid": {
+                    "description": "所属机构",
+                    "type": "integer"
+                },
                 "canshort": {
                     "description": "是否允许做空[通道交易] - 0:不能做空 1:可以做空",
                     "type": "integer"
@@ -39763,6 +39767,10 @@
                     "description": "报价单位ID",
                     "type": "integer"
                 },
+                "groupcategroyid": {
+                    "description": "品种分类ID",
+                    "type": "integer"
+                },
                 "innerdealmode": {
                     "description": "内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今",
                     "type": "integer"
@@ -39771,6 +39779,10 @@
                     "description": "是否限制建仓量 - 0:不限制 1:限制",
                     "type": "integer"
                 },
+                "maingoodsid": {
+                    "description": "主力合约ID",
+                    "type": "integer"
+                },
                 "marketid": {
                     "description": "所属市场ID",
                     "type": "integer"
@@ -39826,6 +39838,10 @@
                 "syncgoodsqty": {
                     "description": "同步合约数[通道交易-投资管理用] - 0表示不限",
                     "type": "integer"
+                },
+                "thumurls": {
+                    "description": "缩略图片(1:1)(逗号分隔)",
+                    "type": "string"
                 }
             }
         },

+ 12 - 0
docs/swagger.yaml

@@ -11911,6 +11911,9 @@ definitions:
       agreeunit:
         description: 合约单位
         type: number
+      areauserid:
+        description: 所属机构
+        type: integer
       canshort:
         description: 是否允许做空[通道交易] - 0:不能做空 1:可以做空
         type: integer
@@ -11950,12 +11953,18 @@ definitions:
       goodunitid:
         description: 报价单位ID
         type: integer
+      groupcategroyid:
+        description: 品种分类ID
+        type: integer
       innerdealmode:
         description: 内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今
         type: integer
       isbuylimited:
         description: 是否限制建仓量 - 0:不限制 1:限制
         type: integer
+      maingoodsid:
+        description: 主力合约ID
+        type: integer
       marketid:
         description: 所属市场ID
         type: integer
@@ -11998,6 +12007,9 @@ definitions:
       syncgoodsqty:
         description: 同步合约数[通道交易-投资管理用] - 0表示不限
         type: integer
+      thumurls:
+        description: 缩略图片(1:1)(逗号分隔)
+        type: string
     required:
     - goodsgroupid
     - goodsgroupname

+ 4 - 0
models/market.go

@@ -101,6 +101,10 @@ type Goodsgroup struct {
 	Isbuylimited           int64     `json:"isbuylimited"  xorm:"'ISBUYLIMITED'"`                            // 是否限制建仓量 - 0:不限制 1:限制
 	Quotegear              int64     `json:"quotegear"  xorm:"'QUOTEGEAR'"`                                  // 行情档位(1-10)
 	Quoterid               int64     `json:"quoterid"  xorm:"'QUOTERID'"`                                    // 报价商ID[场外期权]
+	GROUPCATEGROYID        int32     `json:"groupcategroyid" xorm:"GROUPCATEGROYID"`                         // 品种分类ID
+	AREAUSERID             int64     `json:"areauserid" xorm:"AREAUSERID"`                                   // 所属机构
+	MAINGOODSID            int64     `json:"maingoodsid" xorm:"MAINGOODSID"`                                 // 主力合约ID
+	THUMURLS               string    `json:"thumurls" xorm:"THUMURLS"`                                       // 缩略图片(1:1)(逗号分隔)
 }
 
 // TableName is GOODSGROUP