开发代码生成功能

This commit is contained in:
izory
2021-09-06 18:35:36 +08:00
parent 23187ed8c5
commit c1e014a5d0
14 changed files with 738 additions and 5 deletions

View File

@@ -74,3 +74,67 @@ export function synchDb(tableName) {
method: 'get'
})
}
/**新的代码生成 */
/**
* 创建数据库连接
*/
export function createGetDBConn(data) {
return request({
url: 'CodeGenerator/CreateDBConn',
method: 'post',
data: data,
})
}
/**
* 获取数据库
*/
export function codeGetDBList() {
return request({
url: 'CodeGenerator/GetListDataBase',
method: 'get',
})
}
/**
* 获取数据库表
*/
export function codeGetTableList(data) {
return request({
url: 'CodeGenerator/FindListTable',
method: 'get',
params: data,
})
}
/**
* 生成代码
*/
export async function codeGenerator(data) {
return await request({
url: 'CodeGenerator/Generate',
method: 'get',
params: data,
timeout: 0,
})
}
/**
*
* 数据库解密
*/
export function dbtoolsConnStrDecrypt(data) {
return request({
url: 'DbTools/ConnStrDecrypt',
method: 'post',
params: data,
})
}
/**
* 数据库加密
*/
export function dbtoolsConnStrEncrypt(data) {
return request({
url: 'DbTools/ConnStrEncrypt',
method: 'post',
params: data,
})
}