shop info

This commit is contained in:
Tizian.Breuch
2025-08-12 11:07:15 +02:00
parent 0a43b1d7e8
commit 1692fe198e
13 changed files with 387 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
// src/Webshop.Application/DTOs/Admin/AdminShopInfoDto.cs
using System.ComponentModel.DataAnnotations;
namespace Webshop.Application.DTOs.Shop
{
public class AdminShopInfoDto
{
[Required, MaxLength(255)]
public string ShopName { get; set; } = string.Empty;
[MaxLength(500)]
public string? Slogan { get; set; }
[Required, EmailAddress, MaxLength(255)]
public string ContactEmail { get; set; } = string.Empty;
[Phone, MaxLength(50)]
public string? PhoneNumber { get; set; }
[MaxLength(255)]
public string? Street { get; set; }
[MaxLength(100)]
public string? City { get; set; }
[MaxLength(20)]
public string? PostalCode { get; set; }
[MaxLength(100)]
public string? Country { get; set; }
[MaxLength(50)]
public string? VatNumber { get; set; }
[MaxLength(100)]
public string? CompanyRegistrationNumber { get; set; }
[Url, MaxLength(255)]
public string? FacebookUrl { get; set; }
[Url, MaxLength(255)]
public string? InstagramUrl { get; set; }
[Url, MaxLength(255)]
public string? TwitterUrl { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
// src/Webshop.Application/DTOs/Shop/PublicShopInfoDto.cs
namespace Webshop.Application.DTOs.Shop
{
// Dieses DTO enthält nur die Informationen, die ein normaler Kunde sehen soll.
public class PublicShopInfoDto
{
public string ShopName { get; set; } = string.Empty;
public string? Slogan { get; set; }
public string ContactEmail { get; set; } = string.Empty;
public string? PhoneNumber { get; set; }
public string? Street { get; set; }
public string? City { get; set; }
public string? PostalCode { get; set; }
public string? Country { get; set; }
public string? FacebookUrl { get; set; }
public string? InstagramUrl { get; set; }
public string? TwitterUrl { get; set; }
}
}