Prechádzať zdrojové kódy

查品类筛选框增加最小变动值、单位名称字段

zou.yingbin 4 rokov pred
rodič
commit
4c9b26ca6f
4 zmenil súbory, kde vykonal 26 pridanie a 0 odobranie
  1. 8 0
      docs/docs.go
  2. 8 0
      docs/swagger.json
  3. 6 0
      docs/swagger.yaml
  4. 4 0
      models/wrTrade2.go

+ 8 - 0
docs/docs.go

@@ -30224,6 +30224,14 @@ var doc = `{
         "models.WrFtWrstandard": {
             "type": "object",
             "properties": {
+                "enumdicname": {
+                    "description": "单位名称",
+                    "type": "string"
+                },
+                "minivalue": {
+                    "description": "最小变动值",
+                    "type": "integer"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"

+ 8 - 0
docs/swagger.json

@@ -30208,6 +30208,14 @@
         "models.WrFtWrstandard": {
             "type": "object",
             "properties": {
+                "enumdicname": {
+                    "description": "单位名称",
+                    "type": "string"
+                },
+                "minivalue": {
+                    "description": "最小变动值",
+                    "type": "integer"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"

+ 6 - 0
docs/swagger.yaml

@@ -13596,6 +13596,12 @@ definitions:
     type: object
   models.WrFtWrstandard:
     properties:
+      enumdicname:
+        description: 单位名称
+        type: string
+      minivalue:
+        description: 最小变动值
+        type: integer
       wrstandardcode:
         description: 现货商品代码
         type: string

+ 4 - 0
models/wrTrade2.go

@@ -1739,6 +1739,8 @@ type WrFtWrstandard struct {
 	WRSTANDARDID   int64  `json:"wrstandardid"`   // 现货商品ID
 	WRSTANDARDCODE string `json:"wrstandardcode"` // 现货商品代码
 	WRSTANDARDNAME string `json:"wrstandardname"` // 商品名称
+	MINIVALUE      int32  `json:"minivalue"`      // 最小变动值
+	EnumdicName    string `json:"enumdicname"`    // 单位名称
 }
 
 // WrFtDeliveryGoods 品种筛选列表
@@ -1771,6 +1773,8 @@ func (r *WrFtDeliveryGoods) GetDataEx() (interface{}, error) {
 								WRSTANDARDID:   a.WRSTANDARDID,
 								WRSTANDARDNAME: a.WRSTANDARDNAME,
 								WRSTANDARDCODE: a.WRSTANDARDCODE,
+								MINIVALUE:      a.MINIVALUE,
+								EnumdicName:    a.EnumdicName,
 							}
 							item.WDLST = append(item.WDLST, val)
 						}