Jelajahi Sumber

/WrTrade2/QueryPerformancePlan 查询履约信息接口增加出参

zhou.xiaoning 2 tahun lalu
induk
melakukan
a12cf6f2a1
5 mengubah file dengan 30 tambahan dan 4 penghapusan
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 8 0
      docs/docs.go
  3. 8 0
      docs/swagger.json
  4. 8 0
      docs/swagger.yaml
  5. 2 0
      models/wrTrade2.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]

+ 8 - 0
docs/docs.go

@@ -55661,6 +55661,10 @@ const docTemplate = `{
                     "description": "履约冻结剩余(买履约)",
                     "type": "number"
                 },
+                "buyerinfo": {
+                    "description": "买方联系信息 - 存JSON字符串, 根据枚举‘BuyerContactInfo',显示\\隐藏字段,若数据不为JSON,则直接显示{    \"ContactInfo\": \"xxxxxxxx\",    \"ReceiveInfo\": \"xxxxxxxxx\",    \"ReceiptInfo\": \"xxxxxxxxxxxx\"}",
+                    "type": "string"
+                },
                 "buyorsell": {
                     "description": "买卖方向 0-买 1-卖",
                     "type": "integer"
@@ -55805,6 +55809,10 @@ const docTemplate = `{
                     "description": "履约冻结剩余(卖履约)",
                     "type": "number"
                 },
+                "sellerinfo": {
+                    "description": "卖方联系信息 - 存JSON字符串, 根据枚举‘SellerContactInfo',显示\\隐藏字段,若数据不为JSON,则直接显示{    \"ContactInfo\": \"xxxxxxxx\"}",
+                    "type": "string"
+                },
                 "sellreceivedamount": {
                     "description": "卖方已收金额",
                     "type": "number"

+ 8 - 0
docs/swagger.json

@@ -55652,6 +55652,10 @@
                     "description": "履约冻结剩余(买履约)",
                     "type": "number"
                 },
+                "buyerinfo": {
+                    "description": "买方联系信息 - 存JSON字符串, 根据枚举‘BuyerContactInfo',显示\\隐藏字段,若数据不为JSON,则直接显示{    \"ContactInfo\": \"xxxxxxxx\",    \"ReceiveInfo\": \"xxxxxxxxx\",    \"ReceiptInfo\": \"xxxxxxxxxxxx\"}",
+                    "type": "string"
+                },
                 "buyorsell": {
                     "description": "买卖方向 0-买 1-卖",
                     "type": "integer"
@@ -55796,6 +55800,10 @@
                     "description": "履约冻结剩余(卖履约)",
                     "type": "number"
                 },
+                "sellerinfo": {
+                    "description": "卖方联系信息 - 存JSON字符串, 根据枚举‘SellerContactInfo',显示\\隐藏字段,若数据不为JSON,则直接显示{    \"ContactInfo\": \"xxxxxxxx\"}",
+                    "type": "string"
+                },
                 "sellreceivedamount": {
                     "description": "卖方已收金额",
                     "type": "number"

+ 8 - 0
docs/swagger.yaml

@@ -25396,6 +25396,10 @@ definitions:
       buyerfreezeamountremain:
         description: 履约冻结剩余(买履约)
         type: number
+      buyerinfo:
+        description: '买方联系信息 - 存JSON字符串, 根据枚举‘BuyerContactInfo'',显示\隐藏字段,若数据不为JSON,则直接显示{    "ContactInfo":
+          "xxxxxxxx",    "ReceiveInfo": "xxxxxxxxx",    "ReceiptInfo": "xxxxxxxxxxxx"}'
+        type: string
       buyorsell:
         description: 买卖方向 0-买 1-卖
         type: integer
@@ -25506,6 +25510,10 @@ definitions:
       sellerfreezeamountremain:
         description: 履约冻结剩余(卖履约)
         type: number
+      sellerinfo:
+        description: '卖方联系信息 - 存JSON字符串, 根据枚举‘SellerContactInfo'',显示\隐藏字段,若数据不为JSON,则直接显示{    "ContactInfo":
+          "xxxxxxxx"}'
+        type: string
       sellreceivedamount:
         description: 卖方已收金额
         type: number

+ 2 - 0
models/wrTrade2.go

@@ -1544,6 +1544,8 @@ type WrPerformancePlan struct {
 	ACTIVATEMONTH            string  `json:"activatemonth"  xorm:"'ACTIVATEMONTH'"`                                // 履约激活月 [无仓单的交易收月](yyyy-MM)
 	Wr2FactorType            `xorm:"extends"`
 	EXECUTESIDE              string `json:"executeside"  xorm:"'EXECUTESIDE'"` // 步骤执行方 - 1:买方 2:卖方
+	BUYERINFO                string `json:"buyerinfo" xorm:"BUYERINFO"`        // 买方联系信息 - 存JSON字符串, 根据枚举‘BuyerContactInfo',显示\隐藏字段,若数据不为JSON,则直接显示{    "ContactInfo": "xxxxxxxx",    "ReceiveInfo": "xxxxxxxxx",    "ReceiptInfo": "xxxxxxxxxxxx"}
+	SELLERINFO               string `json:"sellerinfo" xorm:"SELLERINFO"`      // 卖方联系信息 - 存JSON字符串, 根据枚举‘SellerContactInfo',显示\隐藏字段,若数据不为JSON,则直接显示{    "ContactInfo": "xxxxxxxx"}
 
 	CURSTEPNAME  string `json:"curstepname"  xorm:"'CURSTEPNAME'"`   // 当前步骤名称
 	BUYUSERNAME  string `json:"buyusername"  xorm:"'BUYUSERNAME'"`   // 买方名字