51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using MediatR;
|
|
using TakeoutSaaS.Application.App.Stores.Dto;
|
|
|
|
namespace TakeoutSaaS.Application.App.Stores.Commands;
|
|
|
|
/// <summary>
|
|
/// 更新配送区域命令。
|
|
/// </summary>
|
|
public sealed record UpdateStoreDeliveryZoneCommand : IRequest<StoreDeliveryZoneDto?>
|
|
{
|
|
/// <summary>
|
|
/// 配送区域 ID。
|
|
/// </summary>
|
|
public long DeliveryZoneId { get; init; }
|
|
|
|
/// <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;
|
|
}
|