using System.Text.Json.Serialization; using TakeoutSaaS.Domain.Merchants.Enums; using TakeoutSaaS.Shared.Abstractions.Serialization; namespace TakeoutSaaS.Application.App.Merchants.Dto; /// /// 商户 DTO。 /// public sealed class MerchantDto { /// /// 商户 ID。 /// [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long Id { get; init; } /// /// 租户 ID。 /// [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long TenantId { get; init; } /// /// 品牌名称。 /// public string BrandName { get; init; } = string.Empty; /// /// 品牌简称。 /// public string? BrandAlias { get; init; } /// /// 品牌 Logo。 /// public string? LogoUrl { get; init; } /// /// 品类。 /// public string? Category { get; init; } /// /// 联系电话。 /// public string ContactPhone { get; init; } = string.Empty; /// /// 联系邮箱。 /// public string? ContactEmail { get; init; } /// /// 入驻状态。 /// public MerchantStatus Status { get; init; } /// /// 入驻时间。 /// public DateTime? JoinedAt { get; init; } }