f
This commit is contained in:
@@ -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-全部(默认查全部)",
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user