Files
lct2025-lonolith/StoreService/Models/CreateOrderRequest.cs
2025-09-25 22:21:41 +03:00

20 lines
537 B
C#

using System.ComponentModel.DataAnnotations;
namespace StoreService.Models;
/// <summary>
/// Request body to create a new order consisting of store item identifiers.
/// </summary>
public class CreateOrderRequest
{
/// <summary>Identifier of the user creating the order.</summary>
[Required]
public long UserId { get; set; }
/// <summary>Collection of store item ids to include (unique). Duplicates are ignored.</summary>
[Required]
[MinLength(1)]
public List<long> StoreItemIds { get; set; } = new();
}