Базово работает

gRPC на отдельном порту
This commit is contained in:
2026-06-01 18:02:48 +03:00
parent 3af9cb1912
commit 50626c6ac6
38 changed files with 833 additions and 164 deletions

View File

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