Базово работает
gRPC на отдельном порту
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
namespace Contracts.Responses;
|
||||
|
||||
public class ApiResponse
|
||||
public record ApiResponse
|
||||
{
|
||||
public required string Command { get; init; }
|
||||
|
||||
public bool Success { get; init; }
|
||||
|
||||
public string ErrorMessage { get; init; } = "";
|
||||
|
||||
public override string ToString() =>
|
||||
Success ? $"{Command}: OK" : $"{Command}: {ErrorMessage}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user