feat(dal, api): в таблицу RobotHistories добавлено поле RobotIp. Из таблицы AppInWorks удалены поля Next/LastRun. В историю работы роботов, пишется ip робота.
This commit is contained in:
@@ -24,7 +24,9 @@
|
||||
|
||||
public RobotResponse? Robot { get; set; }
|
||||
|
||||
public string? RobotIp { get; set; }
|
||||
|
||||
public UserBaseResponse? User { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,29 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class UserResponse
|
||||
public class UserResponse : UserBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
|
||||
public required string Ip { get; set; }
|
||||
//public required string Ip { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
//public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
//public string Description { get; set; } = string.Empty;
|
||||
|
||||
public DateTimeOffset? LastLogon { get; set; }
|
||||
|
||||
public List<RoleResponse>? Roles { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class UserBaseResponse
|
||||
{
|
||||
public required string Ip { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user