Базово работает
gRPC на отдельном порту
This commit is contained in:
@@ -2,9 +2,13 @@ using Domain.Entities;
|
||||
|
||||
namespace Contracts.Orders;
|
||||
|
||||
public sealed class SendOrderParameters
|
||||
public sealed record SendOrderParameters(string OrderId, IReadOnlyList<OrderItem> MenuItems)
|
||||
{
|
||||
public required string OrderId { get; init; }
|
||||
public SendOrderParameters(string OrderId)
|
||||
: this(OrderId, [])
|
||||
{
|
||||
}
|
||||
|
||||
public IReadOnlyList<OrderItem> MenuItems { get; init; } = [];
|
||||
public override string ToString() =>
|
||||
$"OrderId={OrderId}, Items=[{string.Join("; ", MenuItems)}]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user