This commit is contained in:
2026-01-05 16:36:50 +08:00
parent 23909c44f1
commit 269ff38604
6 changed files with 212 additions and 0 deletions

View File

@@ -207,6 +207,10 @@ func (s *FormConfigServiceImpl) getDTOStruct(ctx context.Context, apiCode string
"QYGL66SL": &dto.QYGL66SLReq{}, //全国企业司法模型服务查询_V1
"QCXG5F3A": &dto.QCXG5F3AReq{}, //极光个人车辆查询
"QCXG4D2E": &dto.QCXG4D2EReq{}, //极光名下车辆数量查询
"QYGLP0HT": &dto.QYGLP0HTReq{}, //股权穿透
"QYGL2NAO": &dto.QYGL2naoReq{}, //股权变更
"QYGLNIO8": &dto.QYGLNIO8Req{}, //企业基本信息
"QYGL4B2E": &dto.QYGL5A3CReq{}, //税收违法
}
// 优先返回已配置的DTO
@@ -407,6 +411,10 @@ func (s *FormConfigServiceImpl) generateFieldLabel(jsonTag string) string {
"owner_type": "企业主类型",
"type": "查询类型",
"query_reason_id": "查询原因ID",
"flag": "层次",
"dir": "方向",
"min_percent": "股权穿透比例下限",
"max_percent": "股权穿透比例上限",
}
if label, exists := labelMap[jsonTag]; exists {
@@ -452,6 +460,10 @@ func (s *FormConfigServiceImpl) generateExampleValue(fieldType reflect.Type, jso
"ownerType": "1",
"type": "per",
"query_reason_id": "1",
"flag": "4",
"dir": "down",
"min_percent": "0",
"max_percent": "1",
}
if example, exists := exampleMap[jsonTag]; exists {
@@ -506,6 +518,10 @@ func (s *FormConfigServiceImpl) generatePlaceholder(jsonTag string, fieldType st
"ownerType": "请选择企业主类型",
"type": "请选择查询类型",
"query_reason_id": "请选择查询原因ID",
"flag": "请输入层次最大4",
"dir": "请选择方向up-向上down-向下)",
"min_percent": "请输入股权穿透比例下限默认0",
"max_percent": "请输入股权穿透比例上限默认1",
}
if placeholder, exists := placeholderMap[jsonTag]; exists {
@@ -562,6 +578,10 @@ func (s *FormConfigServiceImpl) generateDescription(jsonTag string, validation s
"owner_type": "企业主类型编码1-法定代表人2-主要人员3-自然人股东4-法定代表人及自然人股东5-其他",
"type": "查询类型per-人员ent-企业 ",
"query_reason_id": "查询原因ID1-授信审批2-贷中管理3-贷后管理4-异议处理5-担保查询6-租赁资质审查7-融资租赁审批8-借贷撮合查询9-保险审批10-资质审核11-风控审核12-企业背调",
"flag": "层次最大4",
"dir": "方向up-向上穿透down-向下穿透",
"min_percent": "股权穿透比例下限大于等于默认为0支持小数点后两位以小数指代百分比",
"max_percent": "股权穿透比例上限小于等于默认为1支持小数点后两位以小数指代百分比",
}
if desc, exists := descMap[jsonTag]; exists {