This commit is contained in:
Mrx
2026-05-01 15:22:18 +08:00
parent c10a54c5b3
commit 1ef1da070f
2 changed files with 8 additions and 8 deletions

View File

@@ -475,7 +475,7 @@ func (s *FormConfigServiceImpl) generateFieldLabel(jsonTag string) string {
"authorized": "是否授权", "authorized": "是否授权",
"authorization_url": "授权链接", "authorization_url": "授权链接",
"unique_id": "唯一标识", "unique_id": "唯一标识",
"return_url": "返回链接", "return_url": "回调地址",
"mobile_type": "手机类型", "mobile_type": "手机类型",
"start_date": "开始日期", "start_date": "开始日期",
"years": "年数", "years": "年数",
@@ -544,7 +544,7 @@ func (s *FormConfigServiceImpl) generateExampleValue(fieldType reflect.Type, jso
"mobile_type": "移动", "mobile_type": "移动",
"start_date": "2024-01-01", "start_date": "2024-01-01",
"unique_id": "UNIQUE123456", "unique_id": "UNIQUE123456",
"return_url": "https://example.com/return", "return_url": "https://example.com/return ,回调地址链接用于接收回调数据。",
"authorization_url": "https://example.com/auth20250101.pdf 注意请不要使用示例链接示例链接仅作为参考格式。必须为实际的被查询人授权具有法律效益的授权书文件链接如访问不到或为不实授权书将追究责任。协议必须为http https", "authorization_url": "https://example.com/auth20250101.pdf 注意请不要使用示例链接示例链接仅作为参考格式。必须为实际的被查询人授权具有法律效益的授权书文件链接如访问不到或为不实授权书将追究责任。协议必须为http https",
"user_type": "1", "user_type": "1",
"vehicle_type": "0", "vehicle_type": "0",
@@ -619,7 +619,7 @@ func (s *FormConfigServiceImpl) generatePlaceholder(jsonTag string, fieldType st
"mobile_type": "请选择手机类型", "mobile_type": "请选择手机类型",
"start_date": "请选择开始日期", "start_date": "请选择开始日期",
"unique_id": "请输入唯一标识", "unique_id": "请输入唯一标识",
"return_url": "请输入回链接", "return_url": "请输入回调地址链接",
"authorization_url": "请输入授权链接", "authorization_url": "请输入授权链接",
"user_type": "请选择关系类型", "user_type": "请选择关系类型",
"vehicle_type": "请选择车辆类型", "vehicle_type": "请选择车辆类型",
@@ -696,7 +696,7 @@ func (s *FormConfigServiceImpl) generateDescription(jsonTag string, validation s
"mobile_type": "请选择手机类型", "mobile_type": "请选择手机类型",
"start_date": "请选择开始日期", "start_date": "请选择开始日期",
"unique_id": "请输入唯一标识", "unique_id": "请输入唯一标识",
"return_url": "请输入回链接", "return_url": "请输入回调地址链接",
"authorization_url": "请输入授权链接", "authorization_url": "请输入授权链接",
"user_type": "关系类型1-ETC开户人2-车辆所有人3-ETC经办人默认1-ETC开户人", "user_type": "关系类型1-ETC开户人2-车辆所有人3-ETC经办人默认1-ETC开户人",
"vehicle_type": "车辆类型0-客车1-货车2-全部(默认查全部)", "vehicle_type": "车辆类型0-客车1-货车2-全部(默认查全部)",

View File

@@ -28,10 +28,10 @@ func TestFormConfigService_GetFormConfig(t *testing.T) {
// 验证字段信息 // 验证字段信息
expectedFields := map[string]bool{ expectedFields := map[string]bool{
"man_name": false, "man_name": false,
"man_id_card": false, "man_id_card": false,
"woman_name": false, "woman_name": false,
"woman_id_card": false, "woman_id_card": false,
} }
for _, field := range config.Fields { for _, field := range config.Fields {