代码生成支持自定义路径
This commit is contained in:
		| @@ -42,6 +42,7 @@ export function importTable(data) { | ||||
|     params: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 预览生成代码 | ||||
| export function previewTable(tableId) { | ||||
|   return request({ | ||||
| @@ -49,6 +50,7 @@ export function previewTable(tableId) { | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 删除表数据 | ||||
| export function delTable(tableId) { | ||||
|   return request({ | ||||
| @@ -57,3 +59,11 @@ export function delTable(tableId) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 生成代码(自定义路径) | ||||
| export function genCode(tableName) { | ||||
|   return request({ | ||||
|     url: '/tool/gen/genCode/' + tableName, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user