Parcourir la source

查企业风管委托单增加报价小数位字段

zou.yingbin il y a 3 ans
Parent
commit
727f3eeb77
4 fichiers modifiés avec 30 ajouts et 30 suppressions
  1. 8 8
      docs/docs.go
  2. 8 8
      docs/swagger.json
  3. 6 6
      docs/swagger.yaml
  4. 8 8
      models/ermcpOrder.go

+ 8 - 8
docs/docs.go

@@ -31607,10 +31607,6 @@ var doc = `{
         "models.QueryHedgeOrderDetailRsp": {
             "type": "object",
             "properties": {
-                "DECIMALPLACE": {
-                    "description": "商品报价小数位",
-                    "type": "integer"
-                },
                 "accountid": {
                     "description": "账户ID",
                     "type": "integer"
@@ -31643,6 +31639,10 @@ var doc = `{
                     "description": "当前汇率",
                     "type": "number"
                 },
+                "decimalplace": {
+                    "description": "商品报价小数位",
+                    "type": "integer"
+                },
                 "exchangefullname": {
                     "description": "外部交易所全称",
                     "type": "string"
@@ -31704,10 +31704,6 @@ var doc = `{
         "models.QueryHedgeTradeDetailRsp": {
             "type": "object",
             "properties": {
-                "DECIMALPLACE": {
-                    "description": "商品报价小数位",
-                    "type": "integer"
-                },
                 "accountid": {
                     "description": "账号ID",
                     "type": "integer"
@@ -31752,6 +31748,10 @@ var doc = `{
                     "description": "当前汇率",
                     "type": "number"
                 },
+                "decimalplace": {
+                    "description": "商品报价小数位",
+                    "type": "integer"
+                },
                 "exchangefullname": {
                     "description": "外部交易所全称",
                     "type": "string"

+ 8 - 8
docs/swagger.json

@@ -31591,10 +31591,6 @@
         "models.QueryHedgeOrderDetailRsp": {
             "type": "object",
             "properties": {
-                "DECIMALPLACE": {
-                    "description": "商品报价小数位",
-                    "type": "integer"
-                },
                 "accountid": {
                     "description": "账户ID",
                     "type": "integer"
@@ -31627,6 +31623,10 @@
                     "description": "当前汇率",
                     "type": "number"
                 },
+                "decimalplace": {
+                    "description": "商品报价小数位",
+                    "type": "integer"
+                },
                 "exchangefullname": {
                     "description": "外部交易所全称",
                     "type": "string"
@@ -31688,10 +31688,6 @@
         "models.QueryHedgeTradeDetailRsp": {
             "type": "object",
             "properties": {
-                "DECIMALPLACE": {
-                    "description": "商品报价小数位",
-                    "type": "integer"
-                },
                 "accountid": {
                     "description": "账号ID",
                     "type": "integer"
@@ -31736,6 +31732,10 @@
                     "description": "当前汇率",
                     "type": "number"
                 },
+                "decimalplace": {
+                    "description": "商品报价小数位",
+                    "type": "integer"
+                },
                 "exchangefullname": {
                     "description": "外部交易所全称",
                     "type": "string"

+ 6 - 6
docs/swagger.yaml

@@ -12939,9 +12939,6 @@ definitions:
     type: object
   models.QueryHedgeOrderDetailRsp:
     properties:
-      DECIMALPLACE:
-        description: 商品报价小数位
-        type: integer
       accountid:
         description: 账户ID
         type: integer
@@ -12966,6 +12963,9 @@ definitions:
       curexchangerate:
         description: 当前汇率
         type: number
+      decimalplace:
+        description: 商品报价小数位
+        type: integer
       exchangefullname:
         description: 外部交易所全称
         type: string
@@ -13011,9 +13011,6 @@ definitions:
     type: object
   models.QueryHedgeTradeDetailRsp:
     properties:
-      DECIMALPLACE:
-        description: 商品报价小数位
-        type: integer
       accountid:
         description: 账号ID
         type: integer
@@ -13047,6 +13044,9 @@ definitions:
       curexchangerate:
         description: 当前汇率
         type: number
+      decimalplace:
+        description: 商品报价小数位
+        type: integer
       exchangefullname:
         description: 外部交易所全称
         type: string

+ 8 - 8
models/ermcpOrder.go

@@ -326,7 +326,7 @@ type QueryHedgeOrderDetailRsp struct {
 
 	Goodscode    string `json:"goodscode"`                           // 商品代码(内部)
 	Goodsname    string `json:"goodsname"`                           // 商品名称
-	DECIMALPLACE uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+	DECIMALPLACE uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 
 	Exchangefullname string `json:"exchangefullname"  xorm:"'EXCHANGEFULLNAME'"` // 外部交易所全称
 
@@ -397,7 +397,7 @@ func GetHedgeInnerOrderDetails(accountID int) ([]QueryHedgeOrderDetailRsp, error
 		Orderidstr       string `xorm:"ORDERIDSTR"`
 		Goodscode        string `xorm:"GOODSCODE"`
 		Goodsname        string `xorm:"GOODSNAME"`
-		DECIMALPLACE     uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE     uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
 		OrderLoginCode  string `json:"orderlogincode" xorm:"ORDERLOGINCODE"`   // 委托人
@@ -521,7 +521,7 @@ func GetHisHedgeInnerOrderDetails(accountID int, startDate, endDate string) ([]Q
 		Orderidstr       string `xorm:"ORDERIDSTR"`
 		Goodscode        string `xorm:"GOODSCODE"`
 		Goodsname        string `xorm:"GOODSNAME"`
-		DECIMALPLACE     uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE     uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
 		OrderLoginCode  string `json:"orderlogincode" xorm:"ORDERLOGINCODE"`   // 委托人
@@ -630,7 +630,7 @@ func GetHedgeOutOrderDetails(accountID int) ([]QueryHedgeOrderDetailRsp, error)
 		Orderidstr       string `xorm:"ORDERIDSTR"`
 		Goodscode        string `xorm:"GOODSCODE"`
 		Goodsname        string `xorm:"GOODSNAME"`
-		DECIMALPLACE     uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE     uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
 		OrderLoginCode  string `json:"orderlogincode" xorm:"ORDERLOGINCODE"`   // 委托人
@@ -745,7 +745,7 @@ func GetHisHedgeOutOrderDetails(accountID int, startDate, endDate string) ([]Que
 		Orderidstr   string `xorm:"ORDERIDSTR"`
 		Goodscode    string `xorm:"GOODSCODE"`
 		Goodsname    string `xorm:"GOODSNAME"`
-		DECIMALPLACE uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
@@ -853,7 +853,7 @@ type QueryHedgeTradeDetailRsp struct {
 
 	Goodscode    string `json:"goodscode"`                           // 商品代码(内部)
 	Goodsname    string `json:"goodsname"`                           // 商品名称
-	DECIMALPLACE uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+	DECIMALPLACE uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 
 	Exchangefullname string `json:"exchangefullname"` // 外部交易所全称
 
@@ -909,7 +909,7 @@ func GetHedgeInnerTradeDetails(accountID, goodsID, buyOrSell, orderID int) ([]Qu
 		Orderidstr       string `xorm:"ORDERIDSTR"`
 		Goodscode        string `xorm:"GOODSCODE"`
 		Goodsname        string `xorm:"GOODSNAME"`
-		DECIMALPLACE     uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE     uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
 		OrderLoginCode string `json:"orderlogincode" xorm:"ORDERLOGINCODE"` // 委托人
@@ -1120,7 +1120,7 @@ func GetHedgeOutTradeDetails(accountID, goodsID, buyOrSell, orderID int) ([]Quer
 		Orderidstr       string `xorm:"ORDERIDSTR"`
 		Goodscode        string `xorm:"GOODSCODE"`
 		Goodsname        string `xorm:"GOODSNAME"`
-		DECIMALPLACE     uint   `json:"DECIMALPLACE"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
+		DECIMALPLACE     uint   `json:"decimalplace"  xorm:"'DECIMALPLACE'"` // 商品报价小数位
 		Exchangefullname string `xorm:"'EXCHANGEFULLNAME'"`
 
 		Tradeamount float64 `xorm:"TRADEAMOUNT"` // 成交金额