feat:扩展webfirst
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using Yi.Framework.Infrastructure.Ddd.Entities;
|
||||
using Yi.Framework.Module.WebFirstManager.Enums;
|
||||
|
||||
namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
{
|
||||
public class FieldEntity : IEntity<long>
|
||||
{
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 字段名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
public int OrderNum { get; set; }
|
||||
public int Length { get; set; }
|
||||
|
||||
public FieldTypeEnum FieldType { get; set; }
|
||||
|
||||
public long TableId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否必填
|
||||
/// </summary>
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否主键
|
||||
/// </summary>
|
||||
public bool IsKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否自增
|
||||
/// </summary>
|
||||
public bool IsAutoAdd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否公共
|
||||
/// </summary>
|
||||
public bool IsPublic { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using Yi.Framework.Infrastructure.Ddd.Entities;
|
||||
|
||||
namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
{
|
||||
public class TableEntity : IEntity<long>
|
||||
{
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 表名
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ using Yi.Framework.Infrastructure.Ddd.Entities;
|
||||
|
||||
namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
{
|
||||
public class TemplateEntity : IEntity<long>, ICreationAuditedObject
|
||||
public class TemplateEntity : IEntity<long>
|
||||
{
|
||||
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
@@ -20,9 +20,9 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
/// </summary>
|
||||
public string TemplateStr { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public long? CreatorId { get; set; }
|
||||
|
||||
public DateTime CreationTime { get; set; }
|
||||
/// <summary>
|
||||
/// 生成路径
|
||||
/// </summary>
|
||||
public string BuildPath { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,16 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using Yi.Framework.Infrastructure.Ddd.Entities;
|
||||
|
||||
namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
{
|
||||
public class TemplateVarEntity
|
||||
public class TemplateVarEntity : IEntity<long>
|
||||
{
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量名称
|
||||
/// </summary>
|
||||
@@ -17,5 +22,6 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
|
||||
/// 变量值
|
||||
/// </summary>
|
||||
public string Value { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Module.WebFirstManager.Enums
|
||||
{
|
||||
public enum FieldTypeEnum
|
||||
{
|
||||
String,
|
||||
Int,
|
||||
Long
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user