Prechádzať zdrojové kódy

/Ermcp/GetErmcpGoods:返回字段“basedecimalplace, quotedecimalplace"

deng.yinping 3 hodín pred
rodič
commit
49f1c7aebf
4 zmenil súbory, kde vykonal 8 pridanie a 8 odobranie
  1. 2 2
      docs/docs.go
  2. 2 2
      docs/swagger.json
  3. 2 2
      docs/swagger.yaml
  4. 2 2
      models/ermcpGoods.go

+ 2 - 2
docs/docs.go

@@ -38100,7 +38100,7 @@ const docTemplate = `{
                 },
                 "basedecimalplace": {
                     "description": "基础货币小数位(80,81:Goodscurrencyid)",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "buyotherfeealgorithm": {
                     "description": "买交收其它费用算法",
@@ -38304,7 +38304,7 @@ const docTemplate = `{
                 },
                 "quotedecimalplace": {
                     "description": "计价货币小数位(80,81:currencyid)",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "quotegear": {
                     "description": "行情档位(1-10)",

+ 2 - 2
docs/swagger.json

@@ -38092,7 +38092,7 @@
                 },
                 "basedecimalplace": {
                     "description": "基础货币小数位(80,81:Goodscurrencyid)",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "buyotherfeealgorithm": {
                     "description": "买交收其它费用算法",
@@ -38296,7 +38296,7 @@
                 },
                 "quotedecimalplace": {
                     "description": "计价货币小数位(80,81:currencyid)",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "quotegear": {
                     "description": "行情档位(1-10)",

+ 2 - 2
docs/swagger.yaml

@@ -9741,7 +9741,7 @@ definitions:
         type: string
       basedecimalplace:
         description: 基础货币小数位(80,81:Goodscurrencyid)
-        type: string
+        type: integer
       buyotherfeealgorithm:
         description: 买交收其它费用算法
         type: integer
@@ -9894,7 +9894,7 @@ definitions:
         type: string
       quotedecimalplace:
         description: 计价货币小数位(80,81:currencyid)
-        type: string
+        type: integer
       quotegear:
         description: 行情档位(1-10)
         type: integer

+ 2 - 2
models/ermcpGoods.go

@@ -124,9 +124,9 @@ type ErmcpGoods struct {
 	SLRATIODEFAULT float64 `json:"slratiodefault" xorm:"SLRATIODEFAULT"` // 止损默认比例(按单风控)
 
 	BASECURRENCYCODE  string `json:"basecurrencycode" xorm:"BASECURRENCYCODE"`   // 基础货币代码(80,81:Goodscurrencyid)
-	BASEDECIMALPLACE  string `json:"basedecimalplace" xorm:"BASEDECIMALPLACE"`   // 基础货币小数位(80,81:Goodscurrencyid)
+	BASEDECIMALPLACE  int32  `json:"basedecimalplace" xorm:"BASEDECIMALPLACE"`   // 基础货币小数位(80,81:Goodscurrencyid)
 	QUOTECURRENCYCODE string `json:"quotecurrencycode" xorm:"QUOTECURRENCYCODE"` // 计价货币代码(80,81:currencyid)
-	QUOTEDECIMALPLACE string `json:"quotedecimalplace" xorm:"QUOTEDECIMALPLACE"` // 计价货币小数位(80,81:currencyid)
+	QUOTEDECIMALPLACE int32  `json:"quotedecimalplace" xorm:"QUOTEDECIMALPLACE"` // 计价货币小数位(80,81:currencyid)
 
 	BUYTPPOINT  int32 `json:"buytppoint"  xorm:"BUYTPPOINT"`   // 买止盈点差(按账户风控)
 	BUYSLPOINT  int32 `json:"buyslpoint"  xorm:"BUYSLPOINT"`   // 买止损点差(按账户风控)