Преглед изворни кода

/Presale/QueryPresaleAuctions 增加"单人最大申购量 (合约预售)"出参

zhou.xiaoning пре 2 година
родитељ
комит
bcad082aa8
5 измењених фајлова са 21 додато и 8 уклоњено
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 5 1
      docs/docs.go
  3. 5 1
      docs/swagger.json
  4. 4 1
      docs/swagger.yaml
  5. 3 1
      models/presale.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]

+ 5 - 1
docs/docs.go

@@ -43631,7 +43631,7 @@ const docTemplate = `{
                     "type": "string"
                 },
                 "buymaxqty": {
-                    "description": "购买上限 [71] - 0为不限",
+                    "description": "购买上限 [71] - 0为不限 (现货预售)",
                     "type": "integer"
                 },
                 "createtime": {
@@ -43666,6 +43666,10 @@ const docTemplate = `{
                     "description": "预售市场ID - 根据预售模式选择市场",
                     "type": "integer"
                 },
+                "maxbuyqty": {
+                    "description": "单人最大申购量 (合约预售)",
+                    "type": "integer"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)(宽:1125)",
                     "type": "string"

+ 5 - 1
docs/swagger.json

@@ -43622,7 +43622,7 @@
                     "type": "string"
                 },
                 "buymaxqty": {
-                    "description": "购买上限 [71] - 0为不限",
+                    "description": "购买上限 [71] - 0为不限 (现货预售)",
                     "type": "integer"
                 },
                 "createtime": {
@@ -43657,6 +43657,10 @@
                     "description": "预售市场ID - 根据预售模式选择市场",
                     "type": "integer"
                 },
+                "maxbuyqty": {
+                    "description": "单人最大申购量 (合约预售)",
+                    "type": "integer"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)(宽:1125)",
                     "type": "string"

+ 4 - 1
docs/swagger.yaml

@@ -16454,7 +16454,7 @@ definitions:
         description: Banner图(逗号分隔)(2:1)
         type: string
       buymaxqty:
-        description: 购买上限 [71] - 0为不限
+        description: 购买上限 [71] - 0为不限 (现货预售)
         type: integer
       createtime:
         description: 创建时间
@@ -16480,6 +16480,9 @@ definitions:
       marketid:
         description: 预售市场ID - 根据预售模式选择市场
         type: integer
+      maxbuyqty:
+        description: 单人最大申购量 (合约预售)
+        type: integer
       pictureurls:
         description: 详情图片(逗号分隔)(宽:1125)
         type: string

+ 3 - 1
models/presale.go

@@ -32,12 +32,13 @@ type PresaleAuction struct {
 	SELLSTATUS              int32     `json:"sellstatus" xorm:"SELLSTATUS"`                                         // 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
 	GOODSDETAIL             string    `json:"goodsdetail" xorm:"GOODSDETAIL"`                                       // 详情[大宗]
 	TRADEPRICE              float64   `json:"tradeprice" xorm:"TRADEPRICE"`                                         // 成交价[大宗]
-	BUYMAXQTY               int64     `json:"buymaxqty" xorm:"BUYMAXQTY"`                                           // 购买上限 [71] - 0为不限
+	BUYMAXQTY               int64     `json:"buymaxqty" xorm:"BUYMAXQTY"`                                           // 购买上限 [71] - 0为不限 (现货预售)
 	PRESALEDEPOSITALGORITHM int32     `json:"presaledepositalgorithm" xorm:"PRESALEDEPOSITALGORITHM"`               // 预售定金方式(48) - 1:比率  2:固定
 	PRESALEDEPOSITVALUE     float64   `json:"presaledepositvalue" xorm:"PRESALEDEPOSITVALUE"`                       // 预售定金设置值(48)
 	PRESALESTATUS           int32     `json:"presalestatus" xorm:"PRESALESTATUS" form:"presalestatus"`              // 预售状态 - 1:未开始 2:预售中 3:已结束 4:已关闭
 	PICTUREURLS             string    `json:"pictureurls" xorm:"PICTUREURLS"`                                       // 详情图片(逗号分隔)(宽:1125)
 	BANNERPICURL            string    `json:"bannerpicurl" xorm:"BANNERPICURL"`                                     // Banner图(逗号分隔)(2:1)
+	MAXBUYQTY               int64     `json:"maxbuyqty" xorm:"MAXBUYQTY"`                                           // 单人最大申购量 (合约预售)
 
 	GOODSCODE            string  `json:"goodscode" xorm:"GOODSCODE"`                       // 期货合约代码(内部)
 	GOODSNAME            string  `json:"goodsname" xorm:"GOODSNAME"`                       // 期货合约名称
@@ -83,6 +84,7 @@ func (r *PresaleAuction) buildSql() string {
 		t.GOODSDETAIL,
 		t.TRADEPRICE,
 		t.BUYMAXQTY,
+		t.MAXBUYQTY,
 		t.PRESALEDEPOSITALGORITHM,
 		t.PRESALEDEPOSITVALUE,
 		t.PRESALESTATUS,