mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	feat: 新增查询生成配置信息接口
This commit is contained in:
		| @@ -34,6 +34,7 @@ import top.charles7c.cnadmin.common.model.query.PageQuery; | ||||
| import top.charles7c.cnadmin.common.model.vo.PageDataVO; | ||||
| import top.charles7c.cnadmin.common.model.vo.R; | ||||
| import top.charles7c.cnadmin.tool.model.entity.ColumnMappingDO; | ||||
| import top.charles7c.cnadmin.tool.model.entity.GenConfigDO; | ||||
| import top.charles7c.cnadmin.tool.model.query.TableQuery; | ||||
| import top.charles7c.cnadmin.tool.model.vo.TableVO; | ||||
| import top.charles7c.cnadmin.tool.service.GeneratorService; | ||||
| @@ -59,6 +60,12 @@ public class GeneratorController { | ||||
|         return R.ok(generatorService.pageTable(query, pageQuery)); | ||||
|     } | ||||
|  | ||||
|     @Operation(summary = "查询生成配置信息", description = "查询生成配置信息") | ||||
|     @GetMapping("/table/{tableName}") | ||||
|     public R<GenConfigDO> getGenConfig(@PathVariable String tableName) throws SQLException { | ||||
|         return R.ok(generatorService.getGenConfig(tableName)); | ||||
|     } | ||||
|  | ||||
|     @Operation(summary = "查询列映射信息列表", description = "查询列映射信息列表") | ||||
|     @GetMapping("/column/{tableName}") | ||||
|     public R<List<ColumnMappingDO>> listColumnMapping(@PathVariable String tableName) { | ||||
|   | ||||
| @@ -28,8 +28,7 @@ CREATE TABLE IF NOT EXISTS `gen_column_mapping` ( | ||||
|     `sort` int(11) UNSIGNED DEFAULT 999 COMMENT '排序', | ||||
|     `is_required` bit(1) DEFAULT b'1' COMMENT '是否必填', | ||||
|     `show_in_list` bit(1) DEFAULT b'1' COMMENT '是否在列表中显示', | ||||
|     `show_in_add` bit(1) DEFAULT b'1' COMMENT '是否在新增中显示', | ||||
|     `show_in_update` bit(1) DEFAULT b'1' COMMENT '是否在修改中显示', | ||||
|     `show_in_form` bit(1) DEFAULT b'1' COMMENT '是否在表单中显示', | ||||
|     `show_in_query` bit(1) DEFAULT b'1' COMMENT '是否在查询中显示', | ||||
|     `form_type` tinyint(1) UNSIGNED DEFAULT NULL COMMENT '表单类型', | ||||
|     `query_type` tinyint(1) UNSIGNED DEFAULT NULL COMMENT '查询方式', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user