From 544ba0833e975aacab6a6457b98e594adcbf021f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sat, 9 May 2020 20:22:16 +0800 Subject: [PATCH] :bug: Fixing a bug. https://gitee.com/log4j/pig/issues/I1GDYL --- .../codegen/controller/GenFormConfController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java b/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java index 4e3e30d5..362f5690 100755 --- a/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java +++ b/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java @@ -83,6 +83,20 @@ public class GenFormConfController { return R.ok(genRecordService.getForm(dsName, tableName)); } + /** + * 新增生成记录 + * + * @param formConf 生成记录 + * @return R + */ + @ApiOperation(value = "新增生成记录", notes = "新增生成记录") + @SysLog("新增生成记录") + @PostMapping + @PreAuthorize("@pms.hasPermission('gen_form_add')") + public R save(@RequestBody GenFormConf formConf) { + return R.ok(genRecordService.save(formConf)); + } + /** * 通过id删除生成记录 *