优化代码生成功能、新增自定义路径代码生成

This commit is contained in:
不做码农
2022-01-04 22:07:00 +08:00
parent df1cae2857
commit d50c034624
12 changed files with 164 additions and 159 deletions

View File

@@ -20,13 +20,7 @@ namespace ZR.Model.System.Dto
public string FunctionName { get; set; }
public string FunctionAuthor { get; set; }
public string GenType { get; set; }
public string Options { get; set; }
/// <summary>
/// 上级菜单id
/// </summary>
//public int? ParentMenuId { get; set; }
//public string SortField { get; set; }
//public string SortType { get; set; }
public string GenPath { get; set; }
/// <summary>
/// 额外参数
/// </summary>
@@ -36,6 +30,7 @@ namespace ZR.Model.System.Dto
/// <summary>
/// 额外参数
/// ****注意里面参数统一首字母小写*****
/// </summary>
public class Options
{
@@ -45,6 +40,10 @@ namespace ZR.Model.System.Dto
public int? parentMenuId { get; set; }
public string sortField { get; set; }
public string sortType { get; set; }
/// <summary>
/// 额外参数字符串
/// </summary>
public string checkedBtn { get; set; }
}
public class GenTableColumnDto
{

View File

@@ -68,6 +68,7 @@ namespace ZR.Model.System.Generate
/// 生成代码方式0zip压缩包 1自定义路径
/// </summary>
public string GenType { get; set; }
public string GenPath { get; set; }
/// <summary>
/// 其他生成选项
/// </summary>
@@ -86,7 +87,7 @@ namespace ZR.Model.System.Generate
[SqlSugar.SugarColumn(IsIgnore = true)]
public object SortField { get; set; } = string.Empty;
[SqlSugar.SugarColumn(IsIgnore = true)]
public object TreeCode { get; set; } = string.Empty;
@@ -95,6 +96,11 @@ namespace ZR.Model.System.Generate
[SqlSugar.SugarColumn(IsIgnore = true)]
public object TreeParentCode { get; set; }
/// <summary>
/// 生成的按钮功能
/// </summary>
[SqlSugar.SugarColumn(IsIgnore = true)]
public int[] CheckedBtn { get; set; } = new int[] { 1, 2, 3 };
#endregion
}
}