修改配置文件

This commit is contained in:
南浔
2024-12-08 20:35:47 +08:00
23 changed files with 1368 additions and 11 deletions
+4
View File
@@ -37,6 +37,10 @@ namespace Apimanager_backend.Models
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // timestamp
/// <summary>
/// 是否删除
/// </summary>
public bool IsDeleted { get; set; } = false;
//导航属性
public ICollection<Api> Apis { get; set; }
+16
View File
@@ -0,0 +1,16 @@
namespace Apimanager_backend.Models
{
public class SystemConfig
{
public int Id { get; set; }
public string ConfigName { get; set; }
public string ConfigBody { get; set; }
public SystemConfig(int id,string configName,string configBody)
{
this.Id = id;
this.ConfigName = configName;
this.ConfigBody = configBody;
}
public SystemConfig() { }
}
}
+8
View File
@@ -61,5 +61,13 @@ namespace Apimanager_backend.Models
public ICollection<ApiCallLog> CallLogs { get; set; }
public ICollection<Order> Orders { get; set; }
public ICollection<UserRole> Roles { get; set; } = new List<UserRole>();
public User(int id,string username,string email,string passHash)
{
this.Id = id;
this.Username = username;
this.PassHash = passHash;
this.Email = email;
}
public User() { }
}
}