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

main
NoahLan 6 months ago
parent 45a9862edf
commit 9b5f19c02f

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

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

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

@ -27,11 +27,11 @@ public class UserDto
/// </summary> /// </summary>
public Guid Id { get; set; } public Guid Id { get; set; }
public bool IsDeleted { get; } public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } = DateTime.Now; public DateTime CreationTime { get; } = DateTime.Now;
public Guid? CreatorId { get; } public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; } public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; } public Guid? LastModifierId { get; set; }
public bool IsEnabled { get; set; } public bool IsEnabled { get; set; }
public int OrderNum { 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)] [SugarColumn(ColumnDescription = "公告内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Content { get; set; } public string Content { get; set; }
public bool IsDeleted { get; } public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; } public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; } public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; } public Guid? LastModifierId { get; set; }
public int OrderNum { get; set; } public int OrderNum { get; set; }
public bool IsEnabled { 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 bool IsEnabled { get; set; }
public int OrderNum { get; set; } public int OrderNum { get; set; }
public bool IsDeleted { get; } public bool IsDeleted { get; set; }
public DateTime CreationTime { get; } public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; } public Guid? CreatorId { get; set; }
public DateTime? LastModificationTime { get; } public DateTime? LastModificationTime { get; set; }
public Guid? LastModifierId { get; } public Guid? LastModifierId { get; set; }
} }

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

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

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

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

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

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

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

Loading…
Cancel
Save