Skip to content

Commit

Permalink
✨ AdvertisementDTO 增加带 IsAuth 的版本
Browse files Browse the repository at this point in the history
  • Loading branch information
BuknSS committed Nov 19, 2024
1 parent 063ca17 commit e5abea1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ref/WTTS.MicroServices.ClientSDK
Submodule WTTS.MicroServices.ClientSDK updated 34 files
+1 −1 ref/WTTS.Public
+1 −1 src/BD.WTTS.MicroServices.ClientSDK/Services/IMicroServiceClient.Clients.cs
+3 −3 src/BD.WTTS.MicroServices.ClientSDK/Services/Implementation/MicroServiceClientBase.Clients.cs
+130 −0 src/BD.WTTS.Primitives.Models/Models/Advertisement/AdvertisementDTOV1.cs
+52 −0 src/BD.WTTS.Primitives.Models/Models/Basics/AppVersionDTO.v1.cs
+1 −4 src/BD.WTTS.Primitives.Models/Models/Basics/AppVersionDTODownload.cs
+53 −0 src/BD.WTTS.Primitives.Models/Models/Basics/AppVersionDTODownload.v1.cs
+0 −182 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/AppDetail.cs
+0 −71 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/AppPackage.cs
+0 −9 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/AchievementModel.cs
+0 −16 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/ConfigurationModel.cs
+0 −14 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/GameInfoModel.cs
+0 −11 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/GameInfoRefreshDistributedModel.cs
+0 −4 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/GamePriceRefreshDistributedModel.cs
+0 −4 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/GamePriceSubModel.cs
+0 −8 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/LanguageModel.cs
+0 −9 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/RateMediaAgencyModel.cs
+0 −7 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/Distributed/StaticResourceModel.cs
+0 −11 src/BD.WTTS.Primitives.Models/Models/GameLibrary/Jobs/UserTag.cs
+12 −0 src/BD.WTTS.Primitives.Models/Models/Identity/v1/IdentityUserInfoDTO.cs
+0 −17 src/BD.WTTS.Primitives.Models/Models/SteamBot/WishList/BotConfigModel.cs
+0 −13 src/BD.WTTS.Primitives.Models/Models/SteamBot/WishList/WishListJobDistributedMasterItem.cs
+0 −17 src/BD.WTTS.Primitives.Models/Models/SteamBot/WishList/WishListJobDistributedMasterModel.cs
+0 −12 src/BD.WTTS.Primitives.Models/Models/SteamBot/WishList/WishListJobDistributedSalveModel.cs
+0 −15 src/BD.WTTS.Primitives.Models/Models/SteamBot/WishList/WishListJobDistributedSalveTaskItem.cs
+1 −1 src/BD.WTTS.Primitives/Constants/Constants.Lengths.cs
+16 −0 src/BD.WTTS.Primitives/Enums/Identity/ExternalLoginChannel.cs
+4 −1 src/BD.WTTS.Primitives/Enums/Order/OrderBusinessType.cs
+33 −0 src/BD.WTTS.Primitives/Enums/SteamBot/LockRecordOperation.cs
+22 −0 src/BD.WTTS.Primitives/Enums/SteamBot/PointRewardOrderType.cs
+33 −0 src/BD.WTTS.Primitives/Enums/SteamBot/RewardTypeLimit.cs
+6 −0 src/BD.WTTS.Primitives/Enums/SteamRecharge/GoodsRechargeStatus.cs
+1 −0 src/BD.WTTS.Primitives/Enums/SteamRecharge/GoodsRechargeType.cs
+25 −0 src/BD.WTTS.Primitives/Enums/SteamRecharge/SteamRechargeWithdrawalsMoneyStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public sealed class AdvertiseService : ReactiveObject
public static AdvertiseService Current => mCurrent.Value;

[Reactive]
public ObservableCollection<AdvertisementDTO>? HorizontalBannerAdvertisements { get; set; }
public ObservableCollection<AdvertisementDTOV1>? HorizontalBannerAdvertisements { get; set; }

[Reactive]
public ObservableCollection<AdvertisementDTO>? VerticalBannerAdvertisements { get; set; }
public ObservableCollection<AdvertisementDTOV1>? VerticalBannerAdvertisements { get; set; }

[Reactive]
public bool IsInitialized { get; set; }
Expand Down Expand Up @@ -84,10 +84,10 @@ public async Task RefrshAdvertiseAsync()
if (result.IsSuccess && result.Content != null)
{
HorizontalBannerAdvertisements = null;
HorizontalBannerAdvertisements = new ObservableCollection<AdvertisementDTO>(result.Content.Where(x => x.Standard == AdvertisementOrientation.Horizontal).OrderBy(x => x.Order));
HorizontalBannerAdvertisements = new ObservableCollection<AdvertisementDTOV1>(result.Content.Where(x => x.Standard == AdvertisementOrientation.Horizontal).OrderBy(x => x.Order));

VerticalBannerAdvertisements = null;
VerticalBannerAdvertisements = new ObservableCollection<AdvertisementDTO>(result.Content.Where(x => x.Standard == AdvertisementOrientation.Vertical).OrderBy(x => x.Order));
VerticalBannerAdvertisements = new ObservableCollection<AdvertisementDTOV1>(result.Content.Where(x => x.Standard == AdvertisementOrientation.Vertical).OrderBy(x => x.Order));
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions src/BD.WTTS.Client/UI/ViewModels/Pages/HomePageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public sealed class HomePageViewModel : TabItemViewModel
public ObservableCollection<ArticleItemDTO> Articles { get; set; }

[Reactive]
public ObservableCollection<AdvertisementDTO> NavigationBanners { get; set; }
public ObservableCollection<AdvertisementDTOV1> NavigationBanners { get; set; }

[Reactive]
//public ObservableCollection<List<ShopRecommendGoodItem>> Shops { get; set; }
Expand All @@ -32,7 +32,7 @@ public HomePageViewModel()
#pragma warning disable CS8625 // 初始化3个null 为解决调试报错中断
Articles = new ObservableCollection<ArticleItemDTO>() { null, null, null };
#pragma warning restore CS8625 // 无法将 null 字面量转换为非 null 的引用类型。
NavigationBanners = new ObservableCollection<AdvertisementDTO>();
NavigationBanners = new ObservableCollection<AdvertisementDTOV1>();
//Shops = new ObservableCollection<List<ShopRecommendGoodItem>>();
Shops = new ObservableCollection<ShopRecommendGoodItem>();

Expand Down

0 comments on commit e5abea1

Please sign in to comment.