feat(dal, api): в таблицу RobotHistories добавлено поле RobotIp. Из таблицы AppInWorks удалены поля Next/LastRun. В историю работы роботов, пишется ip робота.

This commit is contained in:
Mikhail Trubnikov
2024-07-22 14:48:44 +10:00
parent fc197a6a5b
commit 08b8fba8a5
9 changed files with 3015 additions and 14 deletions

View File

@@ -24,7 +24,9 @@
public RobotResponse? Robot { get; set; }
public string? RobotIp { get; set; }
public UserBaseResponse? User { get; set; }
}
}

View File

@@ -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;
}
}