소스 검색

增加查询实名认证信息接口

zou.yingbin 3 년 전
부모
커밋
69f7e64d63
6개의 변경된 파일929개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      controllers/wrTrade2/qryWrTrade.go
  2. 297 0
      docs/docs.go
  3. 297 0
      docs/swagger.json
  4. 217 0
      docs/swagger.yaml
  5. 100 0
      models/wrTrade2.go
  6. 1 0
      routers/router.go

+ 17 - 0
controllers/wrTrade2/qryWrTrade.go

@@ -776,3 +776,20 @@ func QueryWrSearchUser(c *gin.Context) {
 	a.DoBindReq(&m)
 	a.DoGetDataI(&m)
 }
+
+// QueryWrDraftUserInfo
+// @Summary 查询实名认证信息
+// @Produce json
+// @Security ApiKeyAuth
+// @Param userid query int true "用户ID"
+// @Param userstatus query int false "用户状态 1:正常 2:注销"
+// @Success 200 {array} models.WrDraftUserInfo
+// @Failure 500 {object} app.Response
+// @Router /WrTrade2/QueryWrDraftUserInfo [get]
+// @Tags 仓单贸易v2
+func QueryWrDraftUserInfo(c *gin.Context) {
+	a := app.GinUtils{Gin: app.Gin{C: c}}
+	m := models.WrDraftUserInfo{}
+	a.DoBindReq(&m)
+	a.DoGetDataI(&m)
+}

+ 297 - 0
docs/docs.go

@@ -13059,6 +13059,54 @@ var doc = `{
                 }
             }
         },
+        "/WrTrade2/QueryWrDraftUserInfo": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "仓单贸易v2"
+                ],
+                "summary": "查询实名认证信息",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "用户ID",
+                        "name": "userid",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "type": "integer",
+                        "description": "用户状态 1:正常 2:注销",
+                        "name": "userstatus",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "type": "array",
+                            "items": {
+                                "$ref": "#/definitions/models.WrDraftUserInfo"
+                            }
+                        }
+                    },
+                    "500": {
+                        "description": "Internal Server Error",
+                        "schema": {
+                            "$ref": "#/definitions/app.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/WrTrade2/QueryWrFactorTypeInfo": {
             "get": {
                 "security": [
@@ -34631,6 +34679,255 @@ var doc = `{
                 }
             }
         },
+        "models.WrDraftUserInfo": {
+            "type": "object",
+            "properties": {
+                "address": {
+                    "description": "地址",
+                    "type": "string"
+                },
+                "attachment1": {
+                    "description": "附件1",
+                    "type": "string"
+                },
+                "attachment2": {
+                    "description": "附件2",
+                    "type": "string"
+                },
+                "attachment3": {
+                    "description": "附件3",
+                    "type": "string"
+                },
+                "attachment4": {
+                    "description": "附件4",
+                    "type": "string"
+                },
+                "attachment5": {
+                    "description": "附件5",
+                    "type": "string"
+                },
+                "bankaccount": {
+                    "description": "银行帐号 (加密存储)",
+                    "type": "string"
+                },
+                "bankaccountname": {
+                    "description": "收款人名称",
+                    "type": "string"
+                },
+                "bankcardfrontphotourl": {
+                    "description": "银行卡正面照地址",
+                    "type": "string"
+                },
+                "bankid": {
+                    "description": "银行编码",
+                    "type": "string"
+                },
+                "bankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
+                "birthday": {
+                    "description": "生日(个人:年月日)",
+                    "type": "string"
+                },
+                "biznature": {
+                    "description": "企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它",
+                    "type": "integer"
+                },
+                "bizscope": {
+                    "description": "企业经营范围(企业)",
+                    "type": "string"
+                },
+                "biztype": {
+                    "description": "企业类型 - 1:进口/生产 2:销售 3:零售 4:运输 5:仓储",
+                    "type": "integer"
+                },
+                "cardbackphotourl": {
+                    "description": "证件背面图片地址",
+                    "type": "string"
+                },
+                "cardfrontphotourl": {
+                    "description": "证件正面图片地址",
+                    "type": "string"
+                },
+                "cardnum": {
+                    "description": "证件号码(加密存储)",
+                    "type": "string"
+                },
+                "cardtypeid": {
+                    "description": "证件类型ID",
+                    "type": "integer"
+                },
+                "cityid": {
+                    "description": "市",
+                    "type": "integer"
+                },
+                "company": {
+                    "description": "公司(个人)",
+                    "type": "string"
+                },
+                "contactcardbackphotourl": {
+                    "description": "联系人证件背面图片地址",
+                    "type": "string"
+                },
+                "contactcardfrontphotourl": {
+                    "description": "联系人证件正面图片地址",
+                    "type": "string"
+                },
+                "contactname": {
+                    "description": "联系人",
+                    "type": "string"
+                },
+                "countryid": {
+                    "description": "国家",
+                    "type": "integer"
+                },
+                "createtime": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "creditquota": {
+                    "description": "授信额度(金瑞)",
+                    "type": "number"
+                },
+                "customername": {
+                    "description": "客户名称(企业名称)",
+                    "type": "string"
+                },
+                "districtid": {
+                    "description": "地区",
+                    "type": "integer"
+                },
+                "email": {
+                    "description": "邮件(加密存储)",
+                    "type": "string"
+                },
+                "fax": {
+                    "description": "传真(加密存储)",
+                    "type": "string"
+                },
+                "halfbodyphotourl": {
+                    "description": "半身照地址",
+                    "type": "string"
+                },
+                "hasencrypt": {
+                    "description": "数据是否已加密 - 0:未加密 1:已加密",
+                    "type": "integer"
+                },
+                "headurl": {
+                    "description": "头像地址",
+                    "type": "string"
+                },
+                "legalcardbackphotourl": {
+                    "description": "法人身份证背面照地址",
+                    "type": "string"
+                },
+                "legalcardfrontphotourl": {
+                    "description": "法人身份证正面照地址",
+                    "type": "string"
+                },
+                "legalpersonname": {
+                    "description": "法人姓名(企业)",
+                    "type": "string"
+                },
+                "mobile": {
+                    "description": "手机号码(加密存储)",
+                    "type": "string"
+                },
+                "mobile2": {
+                    "description": "手机号码[明文-尚志]",
+                    "type": "string"
+                },
+                "modifierid": {
+                    "description": "修改人",
+                    "type": "integer"
+                },
+                "modifiertime": {
+                    "description": "修改时间",
+                    "type": "string"
+                },
+                "needinvoice": {
+                    "description": "是否需要发票 - 0:不需要 1:需要",
+                    "type": "integer"
+                },
+                "nickname": {
+                    "description": "昵称:默认为名称脱敏(张**) 或 手机号脱敏(139****9999)",
+                    "type": "string"
+                },
+                "openmode": {
+                    "description": "开户方式 -  1:管理端开户 2\t:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册",
+                    "type": "integer"
+                },
+                "otherurl": {
+                    "description": "其它图片地址[使用分号分隔]",
+                    "type": "string"
+                },
+                "postalcode": {
+                    "description": "邮政编码",
+                    "type": "string"
+                },
+                "provinceid": {
+                    "description": "省",
+                    "type": "integer"
+                },
+                "proxystatementurl": {
+                    "description": "授权委托书",
+                    "type": "string"
+                },
+                "qq": {
+                    "description": "QQ(加密存储",
+                    "type": "string"
+                },
+                "remark": {
+                    "description": "备注",
+                    "type": "string"
+                },
+                "sex": {
+                    "description": "用户性别  0: 女  1: 男",
+                    "type": "integer"
+                },
+                "signpdfurl": {
+                    "description": "签约pdf文件",
+                    "type": "string"
+                },
+                "taxpayernum": {
+                    "description": "纳税人识别号",
+                    "type": "string"
+                },
+                "telphone": {
+                    "description": "联系电话(加密存储)",
+                    "type": "string"
+                },
+                "userid": {
+                    "description": "用户ID",
+                    "type": "integer"
+                },
+                "userinfotype": {
+                    "description": "用户信息类型 - 1:个人  2:企业",
+                    "type": "integer"
+                },
+                "userstatus": {
+                    "description": "用户状态 - 1:正常 2:注销",
+                    "type": "integer"
+                },
+                "usertype": {
+                    "description": "账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者",
+                    "type": "integer"
+                },
+                "wechat": {
+                    "description": "微信(加密存储)",
+                    "type": "string"
+                },
+                "wskhinfo": {
+                    "description": "开户申请信息(JSON)",
+                    "type": "string"
+                }
+            }
+        },
         "models.WrFAProductDetail": {
             "type": "object",
             "properties": {

+ 297 - 0
docs/swagger.json

@@ -13044,6 +13044,54 @@
                 }
             }
         },
+        "/WrTrade2/QueryWrDraftUserInfo": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "仓单贸易v2"
+                ],
+                "summary": "查询实名认证信息",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "用户ID",
+                        "name": "userid",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "type": "integer",
+                        "description": "用户状态 1:正常 2:注销",
+                        "name": "userstatus",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "type": "array",
+                            "items": {
+                                "$ref": "#/definitions/models.WrDraftUserInfo"
+                            }
+                        }
+                    },
+                    "500": {
+                        "description": "Internal Server Error",
+                        "schema": {
+                            "$ref": "#/definitions/app.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/WrTrade2/QueryWrFactorTypeInfo": {
             "get": {
                 "security": [
@@ -34616,6 +34664,255 @@
                 }
             }
         },
+        "models.WrDraftUserInfo": {
+            "type": "object",
+            "properties": {
+                "address": {
+                    "description": "地址",
+                    "type": "string"
+                },
+                "attachment1": {
+                    "description": "附件1",
+                    "type": "string"
+                },
+                "attachment2": {
+                    "description": "附件2",
+                    "type": "string"
+                },
+                "attachment3": {
+                    "description": "附件3",
+                    "type": "string"
+                },
+                "attachment4": {
+                    "description": "附件4",
+                    "type": "string"
+                },
+                "attachment5": {
+                    "description": "附件5",
+                    "type": "string"
+                },
+                "bankaccount": {
+                    "description": "银行帐号 (加密存储)",
+                    "type": "string"
+                },
+                "bankaccountname": {
+                    "description": "收款人名称",
+                    "type": "string"
+                },
+                "bankcardfrontphotourl": {
+                    "description": "银行卡正面照地址",
+                    "type": "string"
+                },
+                "bankid": {
+                    "description": "银行编码",
+                    "type": "string"
+                },
+                "bankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
+                "birthday": {
+                    "description": "生日(个人:年月日)",
+                    "type": "string"
+                },
+                "biznature": {
+                    "description": "企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它",
+                    "type": "integer"
+                },
+                "bizscope": {
+                    "description": "企业经营范围(企业)",
+                    "type": "string"
+                },
+                "biztype": {
+                    "description": "企业类型 - 1:进口/生产 2:销售 3:零售 4:运输 5:仓储",
+                    "type": "integer"
+                },
+                "cardbackphotourl": {
+                    "description": "证件背面图片地址",
+                    "type": "string"
+                },
+                "cardfrontphotourl": {
+                    "description": "证件正面图片地址",
+                    "type": "string"
+                },
+                "cardnum": {
+                    "description": "证件号码(加密存储)",
+                    "type": "string"
+                },
+                "cardtypeid": {
+                    "description": "证件类型ID",
+                    "type": "integer"
+                },
+                "cityid": {
+                    "description": "市",
+                    "type": "integer"
+                },
+                "company": {
+                    "description": "公司(个人)",
+                    "type": "string"
+                },
+                "contactcardbackphotourl": {
+                    "description": "联系人证件背面图片地址",
+                    "type": "string"
+                },
+                "contactcardfrontphotourl": {
+                    "description": "联系人证件正面图片地址",
+                    "type": "string"
+                },
+                "contactname": {
+                    "description": "联系人",
+                    "type": "string"
+                },
+                "countryid": {
+                    "description": "国家",
+                    "type": "integer"
+                },
+                "createtime": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "creditquota": {
+                    "description": "授信额度(金瑞)",
+                    "type": "number"
+                },
+                "customername": {
+                    "description": "客户名称(企业名称)",
+                    "type": "string"
+                },
+                "districtid": {
+                    "description": "地区",
+                    "type": "integer"
+                },
+                "email": {
+                    "description": "邮件(加密存储)",
+                    "type": "string"
+                },
+                "fax": {
+                    "description": "传真(加密存储)",
+                    "type": "string"
+                },
+                "halfbodyphotourl": {
+                    "description": "半身照地址",
+                    "type": "string"
+                },
+                "hasencrypt": {
+                    "description": "数据是否已加密 - 0:未加密 1:已加密",
+                    "type": "integer"
+                },
+                "headurl": {
+                    "description": "头像地址",
+                    "type": "string"
+                },
+                "legalcardbackphotourl": {
+                    "description": "法人身份证背面照地址",
+                    "type": "string"
+                },
+                "legalcardfrontphotourl": {
+                    "description": "法人身份证正面照地址",
+                    "type": "string"
+                },
+                "legalpersonname": {
+                    "description": "法人姓名(企业)",
+                    "type": "string"
+                },
+                "mobile": {
+                    "description": "手机号码(加密存储)",
+                    "type": "string"
+                },
+                "mobile2": {
+                    "description": "手机号码[明文-尚志]",
+                    "type": "string"
+                },
+                "modifierid": {
+                    "description": "修改人",
+                    "type": "integer"
+                },
+                "modifiertime": {
+                    "description": "修改时间",
+                    "type": "string"
+                },
+                "needinvoice": {
+                    "description": "是否需要发票 - 0:不需要 1:需要",
+                    "type": "integer"
+                },
+                "nickname": {
+                    "description": "昵称:默认为名称脱敏(张**) 或 手机号脱敏(139****9999)",
+                    "type": "string"
+                },
+                "openmode": {
+                    "description": "开户方式 -  1:管理端开户 2\t:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册",
+                    "type": "integer"
+                },
+                "otherurl": {
+                    "description": "其它图片地址[使用分号分隔]",
+                    "type": "string"
+                },
+                "postalcode": {
+                    "description": "邮政编码",
+                    "type": "string"
+                },
+                "provinceid": {
+                    "description": "省",
+                    "type": "integer"
+                },
+                "proxystatementurl": {
+                    "description": "授权委托书",
+                    "type": "string"
+                },
+                "qq": {
+                    "description": "QQ(加密存储",
+                    "type": "string"
+                },
+                "remark": {
+                    "description": "备注",
+                    "type": "string"
+                },
+                "sex": {
+                    "description": "用户性别  0: 女  1: 男",
+                    "type": "integer"
+                },
+                "signpdfurl": {
+                    "description": "签约pdf文件",
+                    "type": "string"
+                },
+                "taxpayernum": {
+                    "description": "纳税人识别号",
+                    "type": "string"
+                },
+                "telphone": {
+                    "description": "联系电话(加密存储)",
+                    "type": "string"
+                },
+                "userid": {
+                    "description": "用户ID",
+                    "type": "integer"
+                },
+                "userinfotype": {
+                    "description": "用户信息类型 - 1:个人  2:企业",
+                    "type": "integer"
+                },
+                "userstatus": {
+                    "description": "用户状态 - 1:正常 2:注销",
+                    "type": "integer"
+                },
+                "usertype": {
+                    "description": "账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者",
+                    "type": "integer"
+                },
+                "wechat": {
+                    "description": "微信(加密存储)",
+                    "type": "string"
+                },
+                "wskhinfo": {
+                    "description": "开户申请信息(JSON)",
+                    "type": "string"
+                }
+            }
+        },
         "models.WrFAProductDetail": {
             "type": "object",
             "properties": {

+ 217 - 0
docs/swagger.yaml

@@ -15101,6 +15101,193 @@ definitions:
         description: 排序
         type: integer
     type: object
+  models.WrDraftUserInfo:
+    properties:
+      address:
+        description: 地址
+        type: string
+      attachment1:
+        description: 附件1
+        type: string
+      attachment2:
+        description: 附件2
+        type: string
+      attachment3:
+        description: 附件3
+        type: string
+      attachment4:
+        description: 附件4
+        type: string
+      attachment5:
+        description: 附件5
+        type: string
+      bankaccount:
+        description: 银行帐号 (加密存储)
+        type: string
+      bankaccountname:
+        description: 收款人名称
+        type: string
+      bankcardfrontphotourl:
+        description: 银行卡正面照地址
+        type: string
+      bankid:
+        description: 银行编码
+        type: string
+      bankname:
+        description: 银行名称
+        type: string
+      birthday:
+        description: 生日(个人:年月日)
+        type: string
+      biznature:
+        description: 企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它
+        type: integer
+      bizscope:
+        description: 企业经营范围(企业)
+        type: string
+      biztype:
+        description: 企业类型 - 1:进口/生产 2:销售 3:零售 4:运输 5:仓储
+        type: integer
+      cardbackphotourl:
+        description: 证件背面图片地址
+        type: string
+      cardfrontphotourl:
+        description: 证件正面图片地址
+        type: string
+      cardnum:
+        description: 证件号码(加密存储)
+        type: string
+      cardtypeid:
+        description: 证件类型ID
+        type: integer
+      cityid:
+        description: 市
+        type: integer
+      company:
+        description: 公司(个人)
+        type: string
+      contactcardbackphotourl:
+        description: 联系人证件背面图片地址
+        type: string
+      contactcardfrontphotourl:
+        description: 联系人证件正面图片地址
+        type: string
+      contactname:
+        description: 联系人
+        type: string
+      countryid:
+        description: 国家
+        type: integer
+      createtime:
+        description: 创建时间
+        type: string
+      creatorid:
+        description: 创建人
+        type: integer
+      creditquota:
+        description: 授信额度(金瑞)
+        type: number
+      customername:
+        description: 客户名称(企业名称)
+        type: string
+      districtid:
+        description: 地区
+        type: integer
+      email:
+        description: 邮件(加密存储)
+        type: string
+      fax:
+        description: 传真(加密存储)
+        type: string
+      halfbodyphotourl:
+        description: 半身照地址
+        type: string
+      hasencrypt:
+        description: 数据是否已加密 - 0:未加密 1:已加密
+        type: integer
+      headurl:
+        description: 头像地址
+        type: string
+      legalcardbackphotourl:
+        description: 法人身份证背面照地址
+        type: string
+      legalcardfrontphotourl:
+        description: 法人身份证正面照地址
+        type: string
+      legalpersonname:
+        description: 法人姓名(企业)
+        type: string
+      mobile:
+        description: 手机号码(加密存储)
+        type: string
+      mobile2:
+        description: 手机号码[明文-尚志]
+        type: string
+      modifierid:
+        description: 修改人
+        type: integer
+      modifiertime:
+        description: 修改时间
+        type: string
+      needinvoice:
+        description: 是否需要发票 - 0:不需要 1:需要
+        type: integer
+      nickname:
+        description: 昵称:默认为名称脱敏(张**) 或 手机号脱敏(139****9999)
+        type: string
+      openmode:
+        description: "开户方式 -  1:管理端开户 2\t:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册
+          6:苹果手机端注册 7:PC交易端注册"
+        type: integer
+      otherurl:
+        description: 其它图片地址[使用分号分隔]
+        type: string
+      postalcode:
+        description: 邮政编码
+        type: string
+      provinceid:
+        description: 省
+        type: integer
+      proxystatementurl:
+        description: 授权委托书
+        type: string
+      qq:
+        description: QQ(加密存储
+        type: string
+      remark:
+        description: 备注
+        type: string
+      sex:
+        description: '用户性别  0: 女  1: 男'
+        type: integer
+      signpdfurl:
+        description: 签约pdf文件
+        type: string
+      taxpayernum:
+        description: 纳税人识别号
+        type: string
+      telphone:
+        description: 联系电话(加密存储)
+        type: string
+      userid:
+        description: 用户ID
+        type: integer
+      userinfotype:
+        description: 用户信息类型 - 1:个人  2:企业
+        type: integer
+      userstatus:
+        description: 用户状态 - 1:正常 2:注销
+        type: integer
+      usertype:
+        description: 账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者
+        type: integer
+      wechat:
+        description: 微信(加密存储)
+        type: string
+      wskhinfo:
+        description: 开户申请信息(JSON)
+        type: string
+    type: object
   models.WrFAProductDetail:
     properties:
       accountid:
@@ -27773,6 +27960,36 @@ paths:
       summary: 查询交收
       tags:
       - 仓单贸易v2
+  /WrTrade2/QueryWrDraftUserInfo:
+    get:
+      parameters:
+      - description: 用户ID
+        in: query
+        name: userid
+        required: true
+        type: integer
+      - description: 用户状态 1:正常 2:注销
+        in: query
+        name: userstatus
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            items:
+              $ref: '#/definitions/models.WrDraftUserInfo'
+            type: array
+        "500":
+          description: Internal Server Error
+          schema:
+            $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
+      summary: 查询实名认证信息
+      tags:
+      - 仓单贸易v2
   /WrTrade2/QueryWrFactorTypeInfo:
     get:
       parameters:

+ 100 - 0
models/wrTrade2.go

@@ -4689,3 +4689,103 @@ func (r *WrSearchUser) GetDataEx() (interface{}, error) {
 	}
 	return sData, err
 }
+
+// WrDraftUserInfo 实名认证信息
+type WrDraftUserInfo struct {
+	USERID                   int64   `json:"userid"  xorm:"USERID" form:"userid"`                       // 用户ID
+	USERINFOTYPE             int32   `json:"userinfotype"  xorm:"USERINFOTYPE"`                         // 用户信息类型 - 1:个人  2:企业
+	CUSTOMERNAME             string  `json:"customername"  xorm:"CUSTOMERNAME"`                         // 客户名称(企业名称)
+	USERSTATUS               int32   `json:"userstatus"  xorm:"USERSTATUS" form:"userstatus"`           // 用户状态 - 1:正常 2:注销
+	USERTYPE                 int32   `json:"usertype"  xorm:"USERTYPE"`                                 // 账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者
+	OPENMODE                 int32   `json:"openmode"  xorm:"OPENMODE"`                                 // 开户方式 -  1:管理端开户 2	:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册
+	CARDTYPEID               int32   `json:"cardtypeid"  xorm:"CARDTYPEID" form:"cardtypeid"`           // 证件类型ID
+	CARDNUM                  string  `json:"cardnum"  xorm:"CARDNUM"`                                   // 证件号码(加密存储)
+	HALFBODYPHOTOURL         string  `json:"halfbodyphotourl"  xorm:"HALFBODYPHOTOURL"`                 // 半身照地址
+	CARDFRONTPHOTOURL        string  `json:"cardfrontphotourl"  xorm:"CARDFRONTPHOTOURL"`               // 证件正面图片地址
+	CARDBACKPHOTOURL         string  `json:"cardbackphotourl"  xorm:"CARDBACKPHOTOURL"`                 // 证件背面图片地址
+	BIZNATURE                int32   `json:"biznature"  xorm:"BIZNATURE"`                               // 企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它
+	BIZSCOPE                 string  `json:"bizscope"  xorm:"BIZSCOPE"`                                 // 企业经营范围(企业)
+	LEGALPERSONNAME          string  `json:"legalpersonname"  xorm:"LEGALPERSONNAME"`                   // 法人姓名(企业)
+	CONTACTNAME              string  `json:"contactname"  xorm:"CONTACTNAME"`                           // 联系人
+	SEX                      int32   `json:"sex"  xorm:"SEX"`                                           // 用户性别  0: 女  1: 男
+	TELPHONE                 string  `json:"telphone"  xorm:"TELPHONE"`                                 // 联系电话(加密存储)
+	MOBILE                   string  `json:"mobile"  xorm:"MOBILE"`                                     // 手机号码(加密存储)
+	FAX                      string  `json:"fax"  xorm:"FAX"`                                           // 传真(加密存储)
+	EMAIL                    string  `json:"email"  xorm:"EMAIL"`                                       // 邮件(加密存储)
+	QQ                       string  `json:"qq"  xorm:"QQ"`                                             // QQ(加密存储
+	WECHAT                   string  `json:"wechat"  xorm:"WECHAT"`                                     // 微信(加密存储)
+	COUNTRYID                int32   `json:"countryid"  xorm:"COUNTRYID" form:"countryid"`              // 国家
+	PROVINCEID               int32   `json:"provinceid"  xorm:"PROVINCEID" form:"provinceid"`           // 省
+	CITYID                   int32   `json:"cityid"  xorm:"CITYID" form:"cityid"`                       // 市
+	DISTRICTID               int32   `json:"districtid"  xorm:"DISTRICTID" form:"districtid"`           // 地区
+	COMPANY                  string  `json:"company"  xorm:"COMPANY"`                                   // 公司(个人)
+	ADDRESS                  string  `json:"address"  xorm:"ADDRESS"`                                   // 地址
+	POSTALCODE               string  `json:"postalcode"  xorm:"POSTALCODE"`                             // 邮政编码
+	CREATETIME               string  `json:"createtime"  xorm:"CREATETIME2"`                            // 创建时间
+	CREATORID                int64   `json:"creatorid"  xorm:"CREATORID" form:"creatorid"`              // 创建人
+	MODIFIERTIME             string  `json:"modifiertime"  xorm:"MODIFIERTIME2"`                        // 修改时间
+	MODIFIERID               int64   `json:"modifierid"  xorm:"MODIFIERID" form:"modifierid"`           // 修改人
+	REMARK                   string  `json:"remark"  xorm:"REMARK"`                                     // 备注
+	WSKHINFO                 string  `json:"wskhinfo"  xorm:"WSKHINFO"`                                 // 开户申请信息(JSON)
+	SIGNPDFURL               string  `json:"signpdfurl"  xorm:"SIGNPDFURL"`                             // 签约pdf文件
+	LEGALCARDFRONTPHOTOURL   string  `json:"legalcardfrontphotourl"  xorm:"LEGALCARDFRONTPHOTOURL"`     // 法人身份证正面照地址
+	LEGALCARDBACKPHOTOURL    string  `json:"legalcardbackphotourl"  xorm:"LEGALCARDBACKPHOTOURL"`       // 法人身份证背面照地址
+	OTHERURL                 string  `json:"otherurl"  xorm:"OTHERURL"`                                 // 其它图片地址[使用分号分隔]
+	HASENCRYPT               int32   `json:"hasencrypt"  xorm:"HASENCRYPT"`                             // 数据是否已加密 - 0:未加密 1:已加密
+	BANKNAME                 string  `json:"bankname"  xorm:"BANKNAME"`                                 // 银行名称
+	BANKACCOUNT              string  `json:"bankaccount"  xorm:"BANKACCOUNT"`                           // 银行帐号 (加密存储)
+	BANKCARDFRONTPHOTOURL    string  `json:"bankcardfrontphotourl"  xorm:"BANKCARDFRONTPHOTOURL"`       // 银行卡正面照地址
+	NEEDINVOICE              int32   `json:"needinvoice"  xorm:"NEEDINVOICE"`                           // 是否需要发票 - 0:不需要 1:需要
+	BANKID                   string  `json:"bankid"  xorm:"BANKID" form:"bankid"`                       // 银行编码
+	ATTACHMENT1              string  `json:"attachment1"  xorm:"ATTACHMENT1"`                           // 附件1
+	ATTACHMENT2              string  `json:"attachment2"  xorm:"ATTACHMENT2"`                           // 附件2
+	BANKACCOUNTNAME          string  `json:"bankaccountname"  xorm:"BANKACCOUNTNAME"`                   // 收款人名称
+	HEADURL                  string  `json:"headurl"  xorm:"HEADURL"`                                   // 头像地址
+	NICKNAME                 string  `json:"nickname"  xorm:"NICKNAME"`                                 // 昵称:默认为名称脱敏(张**) 或 手机号脱敏(139****9999)
+	MOBILE2                  string  `json:"mobile2"  xorm:"MOBILE2"`                                   // 手机号码[明文-尚志]
+	BIZTYPE                  int32   `json:"biztype"  xorm:"BIZTYPE"`                                   // 企业类型 - 1:进口/生产 2:销售 3:零售 4:运输 5:仓储
+	PROXYSTATEMENTURL        string  `json:"proxystatementurl"  xorm:"PROXYSTATEMENTURL"`               // 授权委托书
+	CONTACTCARDFRONTPHOTOURL string  `json:"contactcardfrontphotourl"  xorm:"CONTACTCARDFRONTPHOTOURL"` // 联系人证件正面图片地址
+	CONTACTCARDBACKPHOTOURL  string  `json:"contactcardbackphotourl"  xorm:"CONTACTCARDBACKPHOTOURL"`   // 联系人证件背面图片地址
+	ATTACHMENT3              string  `json:"attachment3"  xorm:"ATTACHMENT3"`                           // 附件3
+	ATTACHMENT4              string  `json:"attachment4"  xorm:"ATTACHMENT4"`                           // 附件4
+	ATTACHMENT5              string  `json:"attachment5"  xorm:"ATTACHMENT5"`                           // 附件5
+	TAXPAYERNUM              string  `json:"taxpayernum"  xorm:"TAXPAYERNUM"`                           // 纳税人识别号
+	BIRTHDAY                 string  `json:"birthday"  xorm:"BIRTHDAY2"`                                // 生日(个人:年月日)
+	CREDITQUOTA              float64 `json:"creditquota"  xorm:"CREDITQUOTA"`                           // 授信额度(金瑞)
+}
+
+func (r *WrDraftUserInfo) calc() {
+	r.CARDNUM = DecryptField(r.CARDNUM)
+	r.TELPHONE = DecryptField(r.TELPHONE)       // 联系电话(加密存储)
+	r.MOBILE = DecryptField(r.MOBILE)           // 手机号码(加密存储)
+	r.FAX = DecryptField(r.FAX)                 // 传真(加密存储)
+	r.EMAIL = DecryptField(r.EMAIL)             // 邮件(加密存储)
+	r.QQ = DecryptField(r.QQ)                   // QQ(加密存储
+	r.WECHAT = DecryptField(r.WECHAT)           // 微信(加密存储)
+	r.BANKACCOUNT = DecryptField(r.BANKACCOUNT) // 银行帐号 (加密存储)
+}
+
+func (r *WrDraftUserInfo) buildSql() string {
+	var sqlId utils.SQLVal = `
+SELECT to_char(t.BIRTHDAY, 'yyyy-mm-dd hh24:mi:ss') BIRTHDAY2,
+       to_char(t.CREATETIME, 'yyyy-mm-dd hh24:mi:ss') CREATETIME2,
+       to_char(t.MODIFIERTIME, 'yyyy-mm-dd hh24:mi:ss') MODIFIERTIME2,
+       t.*
+  FROM DRAFT_USERINFO t
+ WHERE 1 = 1
+`
+	sqlId.And("t.userid", r.USERID)
+	sqlId.AndEx("t.userstatus", r.USERSTATUS, r.USERSTATUS != 0)
+	return sqlId.String()
+}
+
+// GetDataEx 获取实名认证信息
+func (r *WrDraftUserInfo) GetDataEx() (interface{}, error) {
+	sData := make([]WrDraftUserInfo, 0)
+	err := db.GetEngine().SQL(r.buildSql()).Find(&sData)
+	for i := range sData {
+		sData[i].calc()
+	}
+	return sData, err
+}

+ 1 - 0
routers/router.go

@@ -583,6 +583,7 @@ func InitRouter() *gin.Engine {
 		wrTrade2R.GET("QueryWrPreSaleInfo", wrTrade2.QueryWrPreSaleInfo)
 		wrTrade2R.GET("QueryWrReckonSpotGoodsTradeSum", wrTrade2.QueryWrReckonSpotGoodsTradeSum)
 		wrTrade2R.GET("QueryWrSearchUser", wrTrade2.QueryWrSearchUser)
+		wrTrade2R.GET("QueryWrDraftUserInfo", wrTrade2.QueryWrDraftUserInfo)
 	}
 
 	// **************************天津麦顿*************************