aufrüumen

This commit is contained in:
Tizian.Breuch
2025-07-25 15:46:31 +02:00
parent 8218b860ca
commit 9e298a0458
74 changed files with 453 additions and 3557 deletions

View File

@@ -9,19 +9,10 @@ namespace Webshop.Application.DTOs.Auth
{
public class RegisterRequestDto
{
[Required(ErrorMessage = "E-Mail ist erforderlich.")]
[EmailAddress(ErrorMessage = "Ungültiges E-Mail-Format.")]
public string Email { get; set; } = string.Empty;
[Required(ErrorMessage = "Passwort ist erforderlich.")]
[MinLength(6, ErrorMessage = "Passwort muss mindestens 6 Zeichen lang sein.")]
public string Password { get; set; } = string.Empty;
[Required(ErrorMessage = "Passwortbestätigung ist erforderlich.")]
[Compare("Password", ErrorMessage = "Passwörter stimmen nicht überein.")]
public string ConfirmPassword { get; set; } = string.Empty;
public string? FirstName { get; set; }
public string? LastName { get; set; }
[Required][EmailAddress] public string Email { get; set; } = string.Empty;
[Required][MinLength(6)] public string Password { get; set; } = string.Empty;
[Required][Compare("Password")] public string ConfirmPassword { get; set; } = string.Empty;
[Required] public string FirstName { get; set; } = string.Empty;
[Required] public string LastName { get; set; } = string.Empty;
}
}

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Categorys
{
public class CategoryDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Categorys
{
public class CreateCategoryDto
{

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Customers
{
public class AddressDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Customers
{
public class CustomerDto
{

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
namespace Webshop.Application.DTOs.Customers
{
public class UpdateCustomerProfileDto
{
[Required]
[MaxLength(100)]
public string FirstName { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string LastName { get; set; } = string.Empty;
// PhoneNumber könnte auch hier sein, falls der User das ändern darf
// public string? PhoneNumber { get; set; }
}
}

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Discounts
{
public class DiscountDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Orders
{
public class CreateOrderDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Orders
{
public class CreateOrderItemDto
{

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Orders
{
public class OrderDetailDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Orders
{
public class OrderItemDto
{

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Orders
{
public class OrderSummaryDto
{

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Payments
{
public class PaymentMethodDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Products
{
public class AdminProductDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Products
{
public class ProductDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Products
{
public class ProductVariantDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Reviews
{
public class CreateReviewDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Reviews
{
public class ReviewDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Shipping
{
public class ShippingMethodDto
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs.Suppliers
{
public class SupplierDto
{

View File

@@ -1,9 +1,4 @@
// Auto-generiert von CreateWebshopFiles.ps1
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
// src/Webshop.Application/DTOs/Users/UserDto.cs
namespace Webshop.Application.DTOs.Users
{
public class UserDto
@@ -14,5 +9,10 @@ namespace Webshop.Application.DTOs.Users
public List<string> Roles { get; set; } = new List<string>();
public DateTimeOffset CreatedDate { get; set; }
public bool EmailConfirmed { get; set; }
// Hinzugef<65>gte Felder
public DateTimeOffset? LastActive { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
}
}
}