mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
vue view code gen
This commit is contained in:
@@ -55,7 +55,7 @@ namespace CoreCms.Net.Repository.CodeGenerator
|
||||
/// <param name="tableName"></param>
|
||||
/// <param name="fileType"></param>
|
||||
/// <returns></returns>
|
||||
public byte[] CodeGen(string tableName, string fileType)
|
||||
public byte[] CodeGen(string tableName, string fileType, bool isVue = false)
|
||||
{
|
||||
var tables = DbClient.DbMaintenance.GetTableInfoList(false);
|
||||
var views = DbClient.DbMaintenance.GetViewInfoList(false);
|
||||
@@ -66,7 +66,7 @@ namespace CoreCms.Net.Repository.CodeGenerator
|
||||
}
|
||||
|
||||
var columns = DbClient.DbMaintenance.GetColumnInfosByTableName(tb.Name, false);
|
||||
return GeneratorCodeHelper.CodeGenerator(tb.Name, tb.Description, columns, fileType);
|
||||
return GeneratorCodeHelper.CodeGenerator(tb.Name, tb.Description, columns, fileType, isVue);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CoreCms.Net.Repository.CodeGenerator
|
||||
/// <param name="tableName"></param>
|
||||
/// <param name="fileType"></param>
|
||||
/// <returns></returns>
|
||||
public byte[] CodeGenByAll(string fileType)
|
||||
public byte[] CodeGenByAll(string fileType, bool isVue = false)
|
||||
{
|
||||
var tables = DbClient.DbMaintenance.GetTableInfoList(false);
|
||||
var views = DbClient.DbMaintenance.GetViewInfoList(false);
|
||||
@@ -96,7 +96,7 @@ namespace CoreCms.Net.Repository.CodeGenerator
|
||||
|
||||
if (!allDb.Any())
|
||||
return null;
|
||||
return GeneratorCodeHelper.CodeGeneratorAll(allDb, fileType);
|
||||
return GeneratorCodeHelper.CodeGeneratorAll(allDb, fileType, isVue);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user