20 lines
956 B
C#
20 lines
956 B
C#
// src/Webshop.Application/Services/Customers/IAddressService.cs
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application;
|
|
using Webshop.Application.DTOs.Customers;
|
|
|
|
namespace Webshop.Application.Services.Customers
|
|
{
|
|
public interface IAddressService
|
|
{
|
|
Task<ServiceResult<IEnumerable<AddressDto>>> GetMyAddressesAsync(string userId);
|
|
Task<ServiceResult<AddressDto>> GetMyAddressByIdAsync(Guid addressId, string userId);
|
|
Task<ServiceResult<AddressDto>> CreateAddressAsync(CreateAddressDto addressDto, string userId);
|
|
Task<ServiceResult> UpdateAddressAsync(UpdateAddressDto addressDto, string userId);
|
|
Task<ServiceResult> DeleteAddressAsync(Guid addressId, string userId);
|
|
Task<ServiceResult> SetDefaultShippingAddressAsync(Guid addressId, string userId);
|
|
Task<ServiceResult> SetDefaultBillingAddressAsync(Guid addressId, string userId);
|
|
}
|
|
} |