新增树表代码生成
This commit is contained in:
@@ -24,12 +24,28 @@ namespace ZR.Model.System.Dto
|
||||
/// <summary>
|
||||
/// 上级菜单id
|
||||
/// </summary>
|
||||
public int? ParentMenuId { get; set; }
|
||||
public string SortField { get; set; }
|
||||
public string SortType { get; set; }
|
||||
//public int? ParentMenuId { get; set; }
|
||||
//public string SortField { get; set; }
|
||||
//public string SortType { get; set; }
|
||||
/// <summary>
|
||||
/// 额外参数
|
||||
/// </summary>
|
||||
public Options Params { get; set; }
|
||||
public List<GenTableColumnDto> Columns { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 额外参数
|
||||
/// </summary>
|
||||
public class Options
|
||||
{
|
||||
public string treeCode { get; set; }
|
||||
public string treeName { get; set; }
|
||||
public string treeParentCode { get; set; }
|
||||
public int? parentMenuId { get; set; }
|
||||
public string sortField { get; set; }
|
||||
public string sortType { get; set; }
|
||||
}
|
||||
public class GenTableColumnDto
|
||||
{
|
||||
public int ColumnId { get; set; }
|
||||
@@ -56,4 +72,5 @@ namespace ZR.Model.System.Dto
|
||||
/// </summary>
|
||||
public string DictType { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -83,8 +83,18 @@ namespace ZR.Model.System.Generate
|
||||
public object ParentMenuId { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public object SortType { get; set; } = "asc";
|
||||
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public object SortField { get; set; } = "";
|
||||
public object SortField { get; set; } = string.Empty;
|
||||
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public object TreeCode { get; set; } = string.Empty;
|
||||
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public object TreeName { get; set; } = string.Empty;
|
||||
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public object TreeParentCode { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user