From d9d0a14083c3fefca1557ae171f5666d28809368 Mon Sep 17 00:00:00 2001 From: Maksym Sadovnychyy Date: Sun, 11 Sep 2022 00:24:05 +0200 Subject: [PATCH] (refactor): post services refactoring --- db/DML/blogcatalog.json | 98 +++++++++---------- db/DML/shopcatalog.json | 8 +- .../DomainObjects/PostItemBase.cs | 2 +- .../SpecificBucketDataProviderBase.cs | 75 ++++++++++++++ .../Buckets/IBucketDataProvider.cs | 5 - .../Buckets/ImagesBucketDataProvider.cs | 50 +--------- .../Collections/CategoryDataProvider.cs | 25 +++++ webapi/Extensions/BytesExtensions.cs | 86 ++++++++++++++++ .../FileSecurityService.cs | 11 +-- .../Abstractions/PostItemRequestModelBase.cs | 6 +- .../Models/Requests/BlogItemRequestModel.cs | 5 +- .../Models/Requests/ImageRequestModel.cs | 56 ----------- ...0nModel.cs => MediaAttachmentL10nModel.cs} | 17 +++- .../Models/Requests/L10n/PostItemL10nModel.cs | 14 +-- .../Requests/MediaAttachmentRequestModel.cs | 69 +++++++++++++ .../Requests/ShopCartItemRequestModel.cs | 2 +- .../Models/Requests/ShopItemRequestModel.cs | 9 +- .../Responses/MediaAttachmentResponseModel.cs | 5 +- .../Abstractions/PostItemServiceBase.cs | 46 +++++++++ .../Services/BlogItemService.cs | 61 ++++-------- .../Services/BlogItemsService.cs | 14 +-- .../WeatherForecast/Services/FileService.cs | 46 ++------- .../Services/ShopItemService.cs | 64 ++++-------- .../Services/ShopItemsService.cs | 15 +-- 24 files changed, 455 insertions(+), 334 deletions(-) create mode 100644 webapi/DataProviders/Abstractions/SpecificBucketDataProviderBase.cs create mode 100644 webapi/Extensions/BytesExtensions.cs delete mode 100644 webapi/WeatherForecast/Models/Requests/ImageRequestModel.cs rename webapi/WeatherForecast/Models/Requests/L10n/{ImageL10nModel.cs => MediaAttachmentL10nModel.cs} (82%) create mode 100644 webapi/WeatherForecast/Models/Requests/MediaAttachmentRequestModel.cs create mode 100644 webapi/WeatherForecast/Services/Abstractions/PostItemServiceBase.cs diff --git a/db/DML/blogcatalog.json b/db/DML/blogcatalog.json index d888da5..c4d2cc4 100644 --- a/db/DML/blogcatalog.json +++ b/db/DML/blogcatalog.json @@ -9,7 +9,7 @@ "description": "Privacy Terms and Conditions", "title": "Privacy Terms and Conditions", "shortText": "", - "text": "

MAKS-IT<\/strong> considers user's privacy in a serious way and we take responsibility to respect it.<\/p>\r\n\r\n

This Privacy Policy describes the activities of the processing of personal data carried out by MAKS-IT<\/strong> on the website https:\/\/wwww.maks-it.com<\/strong> and related responsibility carried out by the Company.<\/p>\r\n\r\n

MAKS-IT<\/strong> may process personal data when user visits the website and uses its services and features. In website sections where the user's personal data are collected, a specific information is normally published according to the art. 13\/15 of Reg. UE 2016\/679. Where required by Reg. UE 2016\/679 user's agreement will be requested before proceeding the processing of personal data.\r\n\r\nIn case of providing personal data of third parties, the user must ensure that data communication to MAKS-IT<\/strong> and subsequent processing for the purposes specified in the applicable Privacy Policy complies with Reg. UE 2016\/679 and all applicable legislation.<\/p>\r\n\r\n\r\n\r\n

\r\n\r\n\t