Explorar el Código

查签约银行返回加密字段

zou.yingbin hace 4 años
padre
commit
57bac5dc4c
Se han modificado 4 ficheros con 27 adiciones y 15 borrados
  1. 5 5
      docs/docs.go
  2. 5 5
      docs/swagger.json
  3. 5 5
      docs/swagger.yaml
  4. 12 0
      models/qhj.go

+ 5 - 5
docs/docs.go

@@ -21872,7 +21872,7 @@ var doc = `{
                     "type": "string"
                 },
                 "accountname": {
-                    "description": "资金账号对应的账号名(UserName)",
+                    "description": "资金账号对应的账号名(UserName) - 密文",
                     "type": "string"
                 },
                 "accounttype": {
@@ -21896,11 +21896,11 @@ var doc = `{
                     "type": "string"
                 },
                 "bankaccountname": {
-                    "description": "签约银行卡账号名",
+                    "description": "签约银行卡账号名 - 密文",
                     "type": "string"
                 },
                 "bankaccountno": {
-                    "description": "银行卡号",
+                    "description": "银行卡号 - 密文",
                     "type": "string"
                 },
                 "bankaccounttype": {
@@ -21940,7 +21940,7 @@ var doc = `{
                     "type": "string"
                 },
                 "cardno": {
-                    "description": "证件号码",
+                    "description": "证件号码 - 密文",
                     "type": "string"
                 },
                 "cardtype": {
@@ -21968,7 +21968,7 @@ var doc = `{
                     "type": "string"
                 },
                 "mobilephone": {
-                    "description": "手机号",
+                    "description": "手机号 - 密文",
                     "type": "string"
                 },
                 "netaddr": {

+ 5 - 5
docs/swagger.json

@@ -21856,7 +21856,7 @@
                     "type": "string"
                 },
                 "accountname": {
-                    "description": "资金账号对应的账号名(UserName)",
+                    "description": "资金账号对应的账号名(UserName) - 密文",
                     "type": "string"
                 },
                 "accounttype": {
@@ -21880,11 +21880,11 @@
                     "type": "string"
                 },
                 "bankaccountname": {
-                    "description": "签约银行卡账号名",
+                    "description": "签约银行卡账号名 - 密文",
                     "type": "string"
                 },
                 "bankaccountno": {
-                    "description": "银行卡号",
+                    "description": "银行卡号 - 密文",
                     "type": "string"
                 },
                 "bankaccounttype": {
@@ -21924,7 +21924,7 @@
                     "type": "string"
                 },
                 "cardno": {
-                    "description": "证件号码",
+                    "description": "证件号码 - 密文",
                     "type": "string"
                 },
                 "cardtype": {
@@ -21952,7 +21952,7 @@
                     "type": "string"
                 },
                 "mobilephone": {
-                    "description": "手机号",
+                    "description": "手机号 - 密文",
                     "type": "string"
                 },
                 "netaddr": {

+ 5 - 5
docs/swagger.yaml

@@ -9414,7 +9414,7 @@ definitions:
         description: 资金账号
         type: string
       accountname:
-        description: 资金账号对应的账号名(UserName)
+        description: 资金账号对应的账号名(UserName) - 密文
         type: string
       accounttype:
         description: 账户类型(UserType)
@@ -9432,10 +9432,10 @@ definitions:
         description: 审核时间
         type: string
       bankaccountname:
-        description: 签约银行卡账号名
+        description: 签约银行卡账号名 - 密文
         type: string
       bankaccountno:
-        description: 银行卡号
+        description: 银行卡号 - 密文
         type: string
       bankaccounttype:
         description: 银行账户类型 - 1-对私; 2-对公
@@ -9465,7 +9465,7 @@ definitions:
         description: 签约银行支行名称
         type: string
       cardno:
-        description: 证件号码
+        description: 证件号码 - 密文
         type: string
       cardtype:
         description: 证件类型
@@ -9486,7 +9486,7 @@ definitions:
         description: 扩展信息(JSON字符串)
         type: string
       mobilephone:
-        description: 手机号
+        description: 手机号 - 密文
         type: string
       netaddr:
         description: 调转网址

+ 12 - 0
models/qhj.go

@@ -794,9 +794,21 @@ type QhjBankAccountSign struct {
 	UPDATETIME       string `json:"updatetime"  xorm:"UPDATETIME"`             // 更新时间(签解约更新时间)
 	RELATEDUSERID    int64  `json:"relateduserid"  xorm:"'RELATEDUSERID'"`     // 关联使用者userid
 	BANKNAME         string `json:"bankname"  xorm:"'BANKNAME'"`               // 签约银行名称
+
+	ACCOUNTNAME2     string `json:"accountname"`     // 资金账号对应的账号名(UserName) - 密文
+	BANKACCOUNTNAME2 string `json:"bankaccountname"` // 签约银行卡账号名 - 密文
+	CARDNO2          string `json:"cardno"`          // 证件号码 - 密文
+	BANKACCOUNTNO2   string `json:"bankaccountno"`   // 银行卡号 - 密文
+	MOBILEPHONE2     string `json:"mobilephone"`     // 手机号 - 密文
 }
 
 func (r *QhjBankAccountSign) calc() {
+	r.ACCOUNTNAME2 = r.ACCOUNTNAME
+	r.BANKACCOUNTNAME2 = r.BANKACCOUNTNAME
+	r.CARDNO2 = r.CARDNO
+	r.BANKACCOUNTNO2 = r.BANKACCOUNTNO
+	r.MOBILEPHONE2 = r.MOBILEPHONE
+
 	r.ACCOUNTNAME = DecryptField(r.ACCOUNTNAME)
 	r.BANKACCOUNTNAME = DecryptField(r.BANKACCOUNTNAME)
 	r.CARDNO = DecryptField(r.CARDNO)