first commit

This commit is contained in:
2026-04-16 21:05:21 +04:30
commit 49591985ac
283 changed files with 12716 additions and 0 deletions
@@ -0,0 +1,9 @@
using Vizhvizh.BuildingBlocks.Domain.Contract;
using Vizhvizh.Shared.Domain.ValueObjects;
using Vizhvizh.Shop.Domain.Shops.TypeIds;
using Vizhvizh.Shop.Domain.Shops.ValuesObjects;
namespace Vizhvizh.Shop.ApplicationContract.Commands;
public record CreateShopCommand(long OwnerId, string Title,string Telephone, string Description, string Email, ShopLocation ShopLocation) : CommandBase<ShopId>;
public record SetTitleShopCommand(ShopId ShopId,TitleVO Title) : CommandBase;
@@ -0,0 +1,6 @@
using Vizhvizh.BuildingBlocks.Domain.Contract;
using Vizhvizh.Shop.Domain.Sliders.ValuesObjects;
namespace Vizhvizh.Shop.ApplicationContract.Commands;
public record CreateSliderCommand(string Title, string ImageUrl,string LinkUrl, SliderKeyType SliderKeyType, string? SliderKey) : CommandBase;
@@ -0,0 +1,13 @@
namespace Vizhvizh.Shop.ApplicationContract.DTOs;
public class ShopDTO
{
public long Id { get; set; }
public long OwnerId{ get; set; }
public string Title { get; set; } = null!;
public string? Description{ get; set; }
public string? Email { get; set; }
public string Telephone { get; set; } = null!;
public string Logo{ get; set; } = null!;
public ShopLocationDTO ShopLocation { get; set; } = null!;
}
@@ -0,0 +1,9 @@
using Newtonsoft.Json;
namespace Vizhvizh.Shop.ApplicationContract.DTOs;
public record ShopLocationDTO(double Latitude,double Longitude,int ProvinceId, int CityId,string Address, string PostalCode)
{
public static implicit operator ShopLocationDTO(string address)
=> JsonConvert.DeserializeObject<ShopLocationDTO>(address)!;
}
@@ -0,0 +1,3 @@
namespace Vizhvizh.Shop.ApplicationContract.DTOs;
public record SliderDTO(string Title, string Image,string LinkUrl);
@@ -0,0 +1,7 @@
namespace Vizhvizh.Shop.ApplicationContract.Queries;
public class PaginationQuery
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
}
@@ -0,0 +1,7 @@
using Vizhvizh.BuildingBlocks.Domain.Contract;
using Vizhvizh.Shop.ApplicationContract.DTOs;
using Vizhvizh.Shop.Domain.Shops.TypeIds;
namespace Vizhvizh.Shop.ApplicationContract.Queries;
public record GetShopByIdQuery(long ShopId) : IQuery<ShopDTO?>;
@@ -0,0 +1,9 @@
using Vizhvizh.BuildingBlocks.Domain.Contract;
using Vizhvizh.Shop.ApplicationContract.DTOs;
namespace Vizhvizh.Shop.ApplicationContract.Queries;
public class GetSlidersByKeyQuery : PaginationQuery, IQuery<IEnumerable<SliderDTO>>
{
public string Key { get; set; }
}
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\VichVich.BuildingBlocks.Application\Vizhvizh.BuildingBlocks.Application.csproj" />
<ProjectReference Include="..\Vichvich.Shared.Application\Vizhvizh.Shared.Application.csproj" />
<ProjectReference Include="..\Vichvich.Shop.Domain\Vizhvizh.Shop.Domain.csproj" />
</ItemGroup>
</Project>