using MediatR; using TakeoutSaaS.Application.App.Stores.Dto; using TakeoutSaaS.Domain.Stores.Enums; namespace TakeoutSaaS.Application.App.Stores.Commands; /// /// 创建门店命令。 /// public sealed class CreateStoreCommand : IRequest { /// /// 商户 ID。 /// public long MerchantId { get; set; } /// /// 门店编码。 /// public string Code { get; set; } = string.Empty; /// /// 门店名称。 /// public string Name { get; set; } = string.Empty; /// /// 电话。 /// public string? Phone { get; set; } /// /// 负责人。 /// public string? ManagerName { get; set; } /// /// 状态。 /// public StoreStatus Status { get; set; } = StoreStatus.Closed; /// /// 省份。 /// public string? Province { get; set; } /// /// 城市。 /// public string? City { get; set; } /// /// 区县。 /// public string? District { get; set; } /// /// 详细地址。 /// public string? Address { get; set; } /// /// 经度。 /// public double? Longitude { get; set; } /// /// 纬度。 /// public double? Latitude { get; set; } /// /// 公告。 /// public string? Announcement { get; set; } /// /// 标签。 /// public string? Tags { get; set; } /// /// 配送半径。 /// public decimal DeliveryRadiusKm { get; set; } /// /// 支持堂食。 /// public bool SupportsDineIn { get; set; } = true; /// /// 支持自提。 /// public bool SupportsPickup { get; set; } = true; /// /// 支持配送。 /// public bool SupportsDelivery { get; set; } = true; }