Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Stores/Commands/CreateStoreDeliveryZoneCommand.cs

46 lines
1.0 KiB
C#

using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 创建配送区域命令。
/// </summary>
public sealed record CreateStoreDeliveryZoneCommand : IRequest<StoreDeliveryZoneDto>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 区域名称。
/// </summary>
public string ZoneName { get; init; } = string.Empty;
/// <summary>
/// GeoJSON。
/// </summary>
public string PolygonGeoJson { get; init; } = string.Empty;
/// <summary>
/// 起送价。
/// </summary>
public decimal? MinimumOrderAmount { get; init; }
/// <summary>
/// 配送费。
/// </summary>
public decimal? DeliveryFee { get; init; }
/// <summary>
/// 预计分钟。
/// </summary>
public int? EstimatedMinutes { get; init; }
/// <summary>
/// 排序。
/// </summary>
public int SortOrder { get; init; } = 100;
}