This commit is contained in:
Tizian.Breuch
2025-09-25 16:18:44 +02:00
parent d4dae319f3
commit 90383f2068
4 changed files with 140 additions and 162 deletions

View File

@@ -1,17 +1,17 @@
// src/Webshop.Application/Services/Customers/ICustomerService.cs
using System.Threading.Tasks;
using Webshop.Application.DTOs; // CustomerDto
using Webshop.Application.DTOs.Auth; // ChangePasswordRequestDto
using Webshop.Application.DTOs.Customers; // UpdateCustomerProfileDto
using Webshop.Application;
using Webshop.Application.DTOs;
using Webshop.Application.DTOs.Auth;
using Webshop.Application.DTOs.Customers;
namespace Webshop.Application.Services.Customers
{
public interface ICustomerService
{
Task<CustomerDto?> GetMyProfileAsync(string userId);
Task<(bool Success, string ErrorMessage)> ChangePasswordAsync(string userId, ChangePasswordRequestDto request);
Task<(bool Success, string ErrorMessage)> UpdateMyProfileAsync(string userId, UpdateCustomerDto profileDto);
Task<(bool Success, string ErrorMessage)> ChangeEmailAsync(string userId, string newEmail, string currentPassword);
Task<(bool Success, string ErrorMessage)> ConfirmEmailChangeAsync(string userId, string newEmail, string token);
Task<ServiceResult<CustomerDto>> GetMyProfileAsync(string userId);
Task<ServiceResult> UpdateMyProfileAsync(string userId, UpdateCustomerDto profileDto);
Task<ServiceResult> ChangePasswordAsync(string userId, ChangePasswordRequestDto request);
Task<ServiceResult> ChangeEmailAsync(string userId, string newEmail, string currentPassword);
}
}