用户获取信息返回角色信息
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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() { }
|
||||
}
|
||||
}
|
||||
@@ -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() { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user