chore: 优化entity,统一表名,取消启动自动开启浏览器。

main
NoahLan 8 months ago
parent 45a9862edf
commit 9b5f19c02f

@ -23,11 +23,11 @@ public class OrganizationDto
/// </summary>
public Guid ParentId { get; set; }
public bool IsDeleted { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -8,11 +8,11 @@ public class PostDto
public string Name { get; set; } = string.Empty;
public string? Remark { get; set; }
public bool IsDeleted { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -19,11 +19,11 @@ public class RoleDto
public DataScopeEnum DataScope { get; set; } = DataScopeEnum.All;
public string? Remark { get; set; }
public bool IsDeleted { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -27,11 +27,11 @@ public class UserDto
/// </summary>
public Guid Id { get; set; }
public bool IsDeleted { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public bool IsEnabled { get; set; }
public int OrderNum { get; set; }

@ -22,11 +22,11 @@ public class AnnouncementEntity : Entity<Guid>, ISoftDelete, IAuditedObject, IOr
[SugarColumn(ColumnDescription = "公告内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Content { get; set; }
public bool IsDeleted { get; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -26,9 +26,9 @@ public class ConfigEntity : Entity<Guid>, IEnabled, IOrderNum, ISoftDelete, IAud
public bool IsEnabled { get; set; }
public int OrderNum { get; set; }
public bool IsDeleted { get; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
}

@ -23,10 +23,10 @@ public class FileAggregateRoot : AggregateRoot<Guid>, IAuditedObject
[SugarColumn(ColumnDescription = "文件路径")]
public string FilePath { get; set; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
[SugarColumn(IsIgnore = true)] public override ExtraPropertyDictionary ExtraProperties { get; protected set; }

@ -16,8 +16,8 @@ public class LoginLogEntity : Entity<Guid>, ICreationAuditedObject
{
[SugarColumn(IsPrimaryKey = true)] public override Guid Id { get; protected set; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
[SugarColumn(ColumnDescription = "登录用户")]
public string? LoginUser { get; set; }

@ -36,11 +36,11 @@ public class OrganizationEntity : Entity<Guid>, ISoftDelete, IAuditedObject, IOr
/// </summary>
public Guid ParentId { get; set; }
public bool IsDeleted { get; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -20,11 +20,11 @@ public class PostEntity : Entity<Guid>, ISoftDelete, IAuditedObject, IOrderNum,
[SugarColumn(ColumnDescription = "岗位描述")]
public string? Remark { get; set; }
public bool IsDeleted { get; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public bool IsDeleted { get; set;}
public DateTime CreationTime { get; set;} = DateTime.Now;
public Guid? CreatorId { get; set;}
public DateTime? LastModificationTime { get; set;}
public Guid? LastModifierId { get; set;}
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }
}

@ -24,11 +24,11 @@ public class RoleEntity : Entity<Guid>, ISoftDelete, IAuditedObject, IOrderNum,
[SugarColumn(ColumnDescription = "描述")]
public string? Remark { get; set; }
public bool IsDeleted { get; }
public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; }
public bool IsEnabled { get; set; }

@ -17,8 +17,8 @@ public class UserMetaEntity : Entity<Guid>, IAuditedObject
[SugarColumn(ColumnDescription = "元数据 值")]
public string Value { get; set; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime? LastModificationTime { get; }
public Guid? LastModifierId { get; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; set; }
}

@ -45,8 +45,8 @@ public class OperationLogEntity : Entity<Guid>, ICreationAuditedObject
[SugarColumn(ColumnDescription = "请求结果", Length = 9999)]
public string? RequestResult { get; set; }
public DateTime CreationTime { get; }
public Guid? CreatorId { get; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; }
public static OperationLogEntity GetInfoByHttpContext(HttpContext httpContext)
{

@ -3,7 +3,7 @@
"profiles": {
"NPin.Web": {
"commandName": "Project",
"launchBrowser": true,
"launchBrowser": false,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"

Loading…
Cancel
Save