|
@@ -0,0 +1,43 @@
|
|
|
+package com.boman.web.core.controller;
|
|
|
+
|
|
|
+import com.boman.common.core.web.domain.AjaxResult;
|
|
|
+import com.boman.web.core.domain.BaseTableSaveDTO;
|
|
|
+import com.boman.web.core.service.TableServiceCmdService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author shiqian
|
|
|
+ * @description
|
|
|
+ * @date 2021年03月22日 09:19
|
|
|
+ **/
|
|
|
+@RestController
|
|
|
+@RequestMapping("/p/cs/table")
|
|
|
+public class TableController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TableServiceCmdService tableServiceCmdService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 功能描述: 反提交接口, 更改的字段类型和字段值都是一致的
|
|
|
+ * {
|
|
|
+ * "table": "sys_config",
|
|
|
+ * }
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @param condition condition
|
|
|
+ * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "根据表名获取表单所有信息")
|
|
|
+ @PostMapping("/getByTableName")
|
|
|
+ public AjaxResult getByTableName(@RequestBody BaseTableSaveDTO condition) {
|
|
|
+ return tableServiceCmdService.getByTableName(condition);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|