代码生成增加预览功能、其他功能优化

This commit is contained in:
izory
2021-09-24 18:37:51 +08:00
parent 3a418df47f
commit a4a6f673b2
21 changed files with 516 additions and 622 deletions

View File

@@ -6,7 +6,7 @@ import request from '@/utils/request'
*/
export function listGendemo(query) {
return request({
url: 'bus/Gendemo/list',
url: 'business/Gendemo/list',
method: 'get',
params: query,
})
@@ -18,7 +18,7 @@ export function listGendemo(query) {
*/
export function addGendemo(data) {
return request({
url: '/bus/Gendemo',
url: 'business/Gendemo',
method: 'post',
data: data,
})
@@ -30,7 +30,7 @@ export function addGendemo(data) {
*/
export function updateGendemo(data) {
return request({
url: '/bus/Gendemo',
url: 'business/Gendemo',
method: 'PUT',
data: data,
})
@@ -42,7 +42,7 @@ export function updateGendemo(data) {
*/
export function getGendemo(id) {
return request({
url: '/bus/Gendemo/' + id,
url: 'business/Gendemo/' + id,
method: 'get'
})
}
@@ -53,7 +53,7 @@ export function getGendemo(id) {
*/
export function delGendemo(pid) {
return request({
url: '/bus/Gendemo/' + pid,
url: 'business/Gendemo/' + pid,
method: 'delete'
})
}

View File

@@ -94,6 +94,13 @@ export function updateGenTable(data) {
})
}
// 预览生成代码
export function previewTable(tableId) {
return request({
url: '/tool/gen/preview/' + tableId,
method: 'get'
})
}
// /**
// *