Browse Source

修改“获取用户信息”接口BUG

Zhou Xiaoning 5 years ago
parent
commit
af43195e2f
4 changed files with 586 additions and 4 deletions
  1. 1 1
      controllers/user/user.go
  2. 213 1
      docs/docs.go
  3. 213 1
      docs/swagger.json
  4. 159 1
      docs/swagger.yaml

+ 1 - 1
controllers/user/user.go

@@ -62,7 +62,7 @@ type QueryUserInfoReq struct {
 // @Produce json
 // @Security ApiKeyAuth
 // @Param userID query string true "用户ID"
-// @Success 200 {object} app.Response
+// @Success 200 {object} models.Userinfo
 // @Failure 500 {object} app.Response
 // @Router /User/QueryUserInfo [get]
 // @Tags 用户信息

+ 213 - 1
docs/docs.go

@@ -1102,7 +1102,7 @@ var doc = `{
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/app.Response"
+                            "$ref": "#/definitions/models.Userinfo"
                         }
                     },
                     "500": {
@@ -2931,6 +2931,218 @@ var doc = `{
                 }
             }
         },
+        "models.Userinfo": {
+            "type": "object",
+            "required": [
+                "userid"
+            ],
+            "properties": {
+                "address": {
+                    "description": "地址",
+                    "type": "string"
+                },
+                "attachment1": {
+                    "description": "附件1",
+                    "type": "string"
+                },
+                "attachment2": {
+                    "description": "附件2",
+                    "type": "string"
+                },
+                "bankaccount": {
+                    "description": "银行帐号 (加密存储)",
+                    "type": "string"
+                },
+                "bankaccountname": {
+                    "description": "收款人名称",
+                    "type": "string"
+                },
+                "bankcardfrontphotourl": {
+                    "description": "银行卡正面照地址",
+                    "type": "string"
+                },
+                "bankid": {
+                    "description": "银行编码",
+                    "type": "string"
+                },
+                "bankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
+                "biznature": {
+                    "description": "企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它",
+                    "type": "integer"
+                },
+                "bizscope": {
+                    "description": "企业经营范围(企业)",
+                    "type": "string"
+                },
+                "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"
+                },
+                "contactname": {
+                    "description": "联系人",
+                    "type": "string"
+                },
+                "countryid": {
+                    "description": "国家",
+                    "type": "integer"
+                },
+                "createtime": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "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:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册 8:微信快速开户 9:支付宝快速开户 10:手机号快速开户",
+                    "type": "integer"
+                },
+                "otherurl": {
+                    "description": "其它图片地址[使用分号分隔]",
+                    "type": "string"
+                },
+                "postalcode": {
+                    "description": "邮政编码",
+                    "type": "string"
+                },
+                "provinceid": {
+                    "description": "省",
+                    "type": "integer"
+                },
+                "qq": {
+                    "description": "QQ(加密存储",
+                    "type": "string"
+                },
+                "remark": {
+                    "description": "备注",
+                    "type": "string"
+                },
+                "sex": {
+                    "description": "用户性别  0: 女  1: 男",
+                    "type": "integer"
+                },
+                "signpdfurl": {
+                    "description": "签约pdf文件",
+                    "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:投资者 6:客户",
+                    "type": "integer"
+                },
+                "wechat": {
+                    "description": "微信(加密存储)",
+                    "type": "string"
+                },
+                "wskhinfo": {
+                    "description": "开户申请信息(JSON)",
+                    "type": "string"
+                }
+            }
+        },
         "order.QueryTradeDetailRsp": {
             "type": "object",
             "required": [

+ 213 - 1
docs/swagger.json

@@ -1086,7 +1086,7 @@
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/app.Response"
+                            "$ref": "#/definitions/models.Userinfo"
                         }
                     },
                     "500": {
@@ -2915,6 +2915,218 @@
                 }
             }
         },
+        "models.Userinfo": {
+            "type": "object",
+            "required": [
+                "userid"
+            ],
+            "properties": {
+                "address": {
+                    "description": "地址",
+                    "type": "string"
+                },
+                "attachment1": {
+                    "description": "附件1",
+                    "type": "string"
+                },
+                "attachment2": {
+                    "description": "附件2",
+                    "type": "string"
+                },
+                "bankaccount": {
+                    "description": "银行帐号 (加密存储)",
+                    "type": "string"
+                },
+                "bankaccountname": {
+                    "description": "收款人名称",
+                    "type": "string"
+                },
+                "bankcardfrontphotourl": {
+                    "description": "银行卡正面照地址",
+                    "type": "string"
+                },
+                "bankid": {
+                    "description": "银行编码",
+                    "type": "string"
+                },
+                "bankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
+                "biznature": {
+                    "description": "企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它",
+                    "type": "integer"
+                },
+                "bizscope": {
+                    "description": "企业经营范围(企业)",
+                    "type": "string"
+                },
+                "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"
+                },
+                "contactname": {
+                    "description": "联系人",
+                    "type": "string"
+                },
+                "countryid": {
+                    "description": "国家",
+                    "type": "integer"
+                },
+                "createtime": {
+                    "description": "创建时间",
+                    "type": "string"
+                },
+                "creatorid": {
+                    "description": "创建人",
+                    "type": "integer"
+                },
+                "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:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册 8:微信快速开户 9:支付宝快速开户 10:手机号快速开户",
+                    "type": "integer"
+                },
+                "otherurl": {
+                    "description": "其它图片地址[使用分号分隔]",
+                    "type": "string"
+                },
+                "postalcode": {
+                    "description": "邮政编码",
+                    "type": "string"
+                },
+                "provinceid": {
+                    "description": "省",
+                    "type": "integer"
+                },
+                "qq": {
+                    "description": "QQ(加密存储",
+                    "type": "string"
+                },
+                "remark": {
+                    "description": "备注",
+                    "type": "string"
+                },
+                "sex": {
+                    "description": "用户性别  0: 女  1: 男",
+                    "type": "integer"
+                },
+                "signpdfurl": {
+                    "description": "签约pdf文件",
+                    "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:投资者 6:客户",
+                    "type": "integer"
+                },
+                "wechat": {
+                    "description": "微信(加密存储)",
+                    "type": "string"
+                },
+                "wskhinfo": {
+                    "description": "开户申请信息(JSON)",
+                    "type": "string"
+                }
+            }
+        },
         "order.QueryTradeDetailRsp": {
             "type": "object",
             "required": [

+ 159 - 1
docs/swagger.yaml

@@ -1301,6 +1301,164 @@ definitions:
     required:
     - autoid
     type: object
+  models.Userinfo:
+    properties:
+      address:
+        description: 地址
+        type: string
+      attachment1:
+        description: 附件1
+        type: string
+      attachment2:
+        description: 附件2
+        type: string
+      bankaccount:
+        description: 银行帐号 (加密存储)
+        type: string
+      bankaccountname:
+        description: 收款人名称
+        type: string
+      bankcardfrontphotourl:
+        description: 银行卡正面照地址
+        type: string
+      bankid:
+        description: 银行编码
+        type: string
+      bankname:
+        description: 银行名称
+        type: string
+      biznature:
+        description: 企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它
+        type: integer
+      bizscope:
+        description: 企业经营范围(企业)
+        type: string
+      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
+      contactname:
+        description: 联系人
+        type: string
+      countryid:
+        description: 国家
+        type: integer
+      createtime:
+        description: 创建时间
+        type: string
+      creatorid:
+        description: 创建人
+        type: integer
+      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:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册 8:微信快速开户 9:支付宝快速开户 10:手机号快速开户
+        type: integer
+      otherurl:
+        description: 其它图片地址[使用分号分隔]
+        type: string
+      postalcode:
+        description: 邮政编码
+        type: string
+      provinceid:
+        description: 省
+        type: integer
+      qq:
+        description: QQ(加密存储
+        type: string
+      remark:
+        description: 备注
+        type: string
+      sex:
+        description: '用户性别  0: 女  1: 男'
+        type: integer
+      signpdfurl:
+        description: 签约pdf文件
+        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:投资者 6:客户
+        type: integer
+      wechat:
+        description: 微信(加密存储)
+        type: string
+      wskhinfo:
+        description: 开户申请信息(JSON)
+        type: string
+    required:
+    - userid
+    type: object
   order.QueryTradeDetailRsp:
     properties:
       accountid:
@@ -2558,7 +2716,7 @@ paths:
         "200":
           description: OK
           schema:
-            $ref: '#/definitions/app.Response'
+            $ref: '#/definitions/models.Userinfo'
         "500":
           description: Internal Server Error
           schema: