using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
using TakeoutSaaS.Domain.Stores.Enums;
namespace TakeoutSaaS.Application.App.Stores.Commands;
///
/// 创建门店命令。
///
public sealed record CreateStoreCommand : IRequest
{
///
/// 商户 ID。
///
public long MerchantId { get; init; }
///
/// 门店编码。
///
public string Code { get; init; } = string.Empty;
///
/// 门店名称。
///
public string Name { get; init; } = string.Empty;
///
/// 电话。
///
public string? Phone { get; init; }
///
/// 负责人。
///
public string? ManagerName { get; init; }
///
/// 状态。
///
public StoreStatus Status { get; init; } = StoreStatus.Closed;
///
/// 门头招牌图。
///
public string? SignboardImageUrl { get; init; }
///
/// 主体类型。
///
public StoreOwnershipType OwnershipType { get; init; } = StoreOwnershipType.SameEntity;
///
/// 行业类目 ID。
///
public long? CategoryId { get; init; }
///
/// 省份。
///
public string? Province { get; init; }
///
/// 城市。
///
public string? City { get; init; }
///
/// 区县。
///
public string? District { get; init; }
///
/// 详细地址。
///
public string? Address { get; init; }
///
/// 经度。
///
public double? Longitude { get; init; }
///
/// 纬度。
///
public double? Latitude { get; init; }
///
/// 公告。
///
public string? Announcement { get; init; }
///
/// 标签。
///
public string? Tags { get; init; }
///
/// 配送半径。
///
public decimal DeliveryRadiusKm { get; init; }
///
/// 支持堂食。
///
public bool SupportsDineIn { get; init; } = true;
///
/// 支持自提。
///
public bool SupportsPickup { get; init; } = true;
///
/// 支持配送。
///
public bool SupportsDelivery { get; init; } = true;
///
/// 支持预约。
///
public bool SupportsReservation { get; init; }
///
/// 支持排队叫号。
///
public bool SupportsQueueing { get; init; }
}