| | |
| | | |
| | | public FormAddInfoVO build() { |
| | | FormAddInfoVO vo = new FormAddInfoVO(); |
| | | vo.setAddApi(generaterInfo.getControllerData().mapping() + "/add"); |
| | | vo.setAddApi(generaterInfo.getControllerData().getMapping() + "/add"); |
| | | vo.setRowsList(generaterInfo.getAddFormRows()); |
| | | vo.setTitle("新增" + generaterInfo.getControllerData().title()); |
| | | vo.setTitle("新增" + generaterInfo.getTitle()); |
| | | //遍历需要正则表达式的Text或者TextArea |
| | | List<FormInputRegexVerifyVO> verifyVOList = new ArrayList<>(); |
| | | for (FormRowData row : vo.getRowsList()) { |
| | |
| | | } |
| | | FormHttpRequestInfoVO requestInfoVO = new FormHttpRequestInfoVO(); |
| | | Map<String, String> apiParams = new HashMap<>(); |
| | | if (((List) row.getParams().get("apiParams")).size() > 0) { |
| | | List<KeyValue> apiParamsList = (List<KeyValue>) row.getParams().get("apiParams"); |
| | | for (KeyValue kv : apiParamsList) { |
| | | apiParams.put(kv.getKey(), kv.getValue()); |
| | | if (row.getParams().get("apiParams") != null) { |
| | | if (((List) row.getParams().get("apiParams")).size() > 0) { |
| | | List<KeyValue> apiParamsList = (List<KeyValue>) row.getParams().get("apiParams"); |
| | | for (KeyValue kv : apiParamsList) { |
| | | apiParams.put(kv.getKey(), kv.getValue()); |
| | | } |
| | | } |
| | | } |
| | | requestInfoVO.setParams(apiParams); |