:sparkles:代码生成添加方法新增可以生成雪花id列
This commit is contained in:
@@ -53,7 +53,8 @@ namespace ZR.CodeGenerator
|
||||
ShowBtnMultiDel = dto.GenTable.Options.CheckedBtn.Any(f => f == 7),
|
||||
ShowBtnImport = dto.GenTable.Options.CheckedBtn.Any(f => f == 8),
|
||||
ViewFileName = dto.GenTable.BusinessName.FirstUpperCase(),
|
||||
OperBtnStyle = dto.GenTable.Options.OperBtnStyle
|
||||
OperBtnStyle = dto.GenTable.Options.OperBtnStyle,
|
||||
UseSnowflakeId = dto.GenTable.Options.UseSnowflakeId
|
||||
};
|
||||
var columns = dto.GenTable.Columns;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace ZR.CodeGenerator.Model
|
||||
/// <summary>
|
||||
/// 首字母小写主键
|
||||
/// </summary>
|
||||
public string FistLowerPk{ get; set; }
|
||||
public string FistLowerPk { get; set; }
|
||||
/// <summary>
|
||||
/// 主键类型
|
||||
/// </summary>
|
||||
@@ -74,5 +74,9 @@ namespace ZR.CodeGenerator.Model
|
||||
/// 操作按钮样式
|
||||
/// </summary>
|
||||
public int OperBtnStyle { get; set; }
|
||||
/// <summary>
|
||||
/// 是否使用雪花id
|
||||
/// </summary>
|
||||
public bool UseSnowflakeId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user