customer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user