This commit is contained in:
2026-07-07 16:04:37 +08:00
parent 13afb1609d
commit c4ce9c6c77
5 changed files with 118 additions and 0 deletions

View File

@@ -344,6 +344,8 @@ func (s *FormConfigServiceImpl) getDTOStruct(ctx context.Context, apiCode string
"IVYZFC59": &dto.IVYZFC59Req{}, //房产核验
"IVYZGJ99": &dto.IVYZGJ99Req{}, //公积金核验
"QCXG6U5G": &dto.QCXG6U5GReq{}, //名下车辆核验
"IVYZ2MN2": &dto.IVYZ2MN2Req{}, //学历核验
"IVYZHY87": &dto.IVYZHY87Req{}, //婚姻状态查询
}
// 优先返回已配置的DTO
@@ -578,6 +580,7 @@ func (s *FormConfigServiceImpl) generateFieldLabel(jsonTag string) string {
"auth_authorize_file_base64": "PDF授权文件Base64编码≤500KB仅PDF",
"account_no": "企业账户",
"account_bank": "开户行:如中国银行股份有限公司,查询失败请查看支持银行列表或使用主银行公司。",
"educert_no": "学历证书编号",
}
if label, exists := labelMap[jsonTag]; exists {
@@ -646,6 +649,7 @@ func (s *FormConfigServiceImpl) generateExampleValue(fieldType reflect.Type, jso
"auth_authorize_file_base64": "JVBERi0xLjQKJcTl8uXr...示例PDF的Base64编码",
"account_no": "6222021234567890123",
"account_bank": "中国工商银行",
"educert_no": "1234567890",
}
if example, exists := exampleMap[jsonTag]; exists {
@@ -723,6 +727,7 @@ func (s *FormConfigServiceImpl) generatePlaceholder(jsonTag string, fieldType st
"auth_authorize_file_base64": "请输入PDF文件的Base64编码字符串",
"account_no": "请输入企业账户",
"account_bank": "请输入开户行:如中国银行股份有限公司,查询失败请查看支持银行列表或使用主银行公司。",
"educert_no": "请输入学历证书编号",
}
if placeholder, exists := placeholderMap[jsonTag]; exists {
@@ -802,6 +807,7 @@ func (s *FormConfigServiceImpl) generateDescription(jsonTag string, validation s
"auth_authorize_file_base64": "请输入PDF文件的Base64编码字符串",
"account_no": "请输入企业账户",
"account_bank": "请输入开户行:如中国银行股份有限公司,查询失败请查看支持银行列表或使用主银行公司。",
"educert_no": "请输入学历证书编号",
}
if desc, exists := descMap[jsonTag]; exists {