using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
using TakeoutSaaS.Domain.Stores.Enums;

namespace TakeoutSaaS.Application.App.Stores.Commands;

/// <summary>
/// 创建门店命令。
/// </summary>
public sealed class CreateStoreCommand : IRequest<StoreDto>
{
    /// <summary>
    /// 商户 ID。
    /// </summary>
    public long MerchantId { get; set; }

    /// <summary>
    /// 门店编码。
    /// </summary>
    public string Code { get; set; } = string.Empty;

    /// <summary>
    /// 门店名称。
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 电话。
    /// </summary>
    public string? Phone { get; set; }

    /// <summary>
    /// 负责人。
    /// </summary>
    public string? ManagerName { get; set; }

    /// <summary>
    /// 状态。
    /// </summary>
    public StoreStatus Status { get; set; } = StoreStatus.Closed;

    /// <summary>
    /// 省份。
    /// </summary>
    public string? Province { get; set; }

    /// <summary>
    /// 城市。
    /// </summary>
    public string? City { get; set; }

    /// <summary>
    /// 区县。
    /// </summary>
    public string? District { get; set; }

    /// <summary>
    /// 详细地址。
    /// </summary>
    public string? Address { get; set; }

    /// <summary>
    /// 经度。
    /// </summary>
    public double? Longitude { get; set; }

    /// <summary>
    /// 纬度。
    /// </summary>
    public double? Latitude { get; set; }

    /// <summary>
    /// 公告。
    /// </summary>
    public string? Announcement { get; set; }

    /// <summary>
    /// 标签。
    /// </summary>
    public string? Tags { get; set; }

    /// <summary>
    /// 配送半径。
    /// </summary>
    public decimal DeliveryRadiusKm { get; set; }

    /// <summary>
    /// 支持堂食。
    /// </summary>
    public bool SupportsDineIn { get; set; } = true;

    /// <summary>
    /// 支持自提。
    /// </summary>
    public bool SupportsPickup { get; set; } = true;

    /// <summary>
    /// 支持配送。
    /// </summary>
    public bool SupportsDelivery { get; set; } = true;

    /// <summary>
    /// 支持预约。
    /// </summary>
    public bool SupportsReservation { get; set; }

    /// <summary>
    /// 支持排队叫号。
    /// </summary>
    public bool SupportsQueueing { get; set; }
}
