diff --git a/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantDetailDto.cs b/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantDetailDto.cs index 35aa22c..1a10909 100644 --- a/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantDetailDto.cs +++ b/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantDetailDto.cs @@ -96,7 +96,7 @@ public sealed class MerchantDetailDto /// /// 门店列表。 /// - public IReadOnlyList Stores { get; init; } = []; + public IReadOnlyList Stores { get; init; } = []; /// /// 并发控制版本。 diff --git a/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/StoreDto.cs b/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantStoreDto.cs similarity index 96% rename from src/Application/TakeoutSaaS.Application/App/Merchants/Dto/StoreDto.cs rename to src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantStoreDto.cs index ebd7f04..a3eacbb 100644 --- a/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/StoreDto.cs +++ b/src/Application/TakeoutSaaS.Application/App/Merchants/Dto/MerchantStoreDto.cs @@ -7,7 +7,7 @@ namespace TakeoutSaaS.Application.App.Merchants.Dto; /// /// 商户详情门店 DTO。 /// -public sealed class StoreDto +public sealed class MerchantStoreDto { /// /// 门店 ID。 diff --git a/src/Application/TakeoutSaaS.Application/App/Merchants/MerchantMapping.cs b/src/Application/TakeoutSaaS.Application/App/Merchants/MerchantMapping.cs index 29e181b..41298a8 100644 --- a/src/Application/TakeoutSaaS.Application/App/Merchants/MerchantMapping.cs +++ b/src/Application/TakeoutSaaS.Application/App/Merchants/MerchantMapping.cs @@ -50,7 +50,7 @@ internal static class MerchantMapping /// /// 将商户实体映射为详情 DTO。 /// - public static MerchantDetailDto ToDetailDto(Merchant merchant, string? tenantName, IReadOnlyList stores) => new() + public static MerchantDetailDto ToDetailDto(Merchant merchant, string? tenantName, IReadOnlyList stores) => new() { Id = merchant.Id, TenantId = merchant.TenantId, @@ -150,7 +150,7 @@ internal static class MerchantMapping /// /// 将门店实体映射为 DTO。 /// - public static StoreDto ToStoreDto(Store store) => new() + public static MerchantStoreDto ToStoreDto(Store store) => new() { Id = store.Id, Name = store.Name, @@ -201,6 +201,6 @@ internal static class MerchantMapping /// /// 将门店集合映射为 DTO 集合。 /// - public static IReadOnlyList ToStoreDtos(IEnumerable stores) + public static IReadOnlyList ToStoreDtos(IEnumerable stores) => stores.Select(ToStoreDto).ToList(); }