aufrüumen
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs;
|
||||
using Webshop.Application.DTOs.Auth;
|
||||
using Webshop.Application.DTOs.Users;
|
||||
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminCategoryService
|
||||
{
|
||||
// Fügen Sie hier Methodensignaturen hinzu
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs;
|
||||
using Webshop.Application.DTOs.Auth;
|
||||
using Webshop.Application.DTOs.Users;
|
||||
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminDiscountService
|
||||
{
|
||||
// Fügen Sie hier Methodensignaturen hinzu
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs;
|
||||
using Webshop.Application.DTOs.Auth;
|
||||
using Webshop.Application.DTOs.Users;
|
||||
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminOrderService
|
||||
{
|
||||
// Fügen Sie hier Methodensignaturen hinzu
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// src/Webshop.Application/Services/Admin/IAdminProductService.cs
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs.Products;
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminProductService
|
||||
{
|
||||
Task<IEnumerable<AdminProductDto>> GetAllAdminProductsAsync();
|
||||
Task<AdminProductDto?> GetAdminProductByIdAsync(Guid id);
|
||||
Task<AdminProductDto> CreateAdminProductAsync(AdminProductDto productDto);
|
||||
Task<bool> UpdateAdminProductAsync(AdminProductDto productDto);
|
||||
Task<bool> DeleteAdminProductAsync(Guid id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs;
|
||||
using Webshop.Application.DTOs.Auth;
|
||||
using Webshop.Application.DTOs.Users;
|
||||
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminSettingService
|
||||
{
|
||||
// Fügen Sie hier Methodensignaturen hinzu
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// src/Webshop.Application/Services/Admin/IAdminSupplierService.cs
|
||||
|
||||
using System; // Für Guid
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs.Suppliers;
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminSupplierService
|
||||
{
|
||||
// Diese Methoden waren bereits vorhanden
|
||||
Task<IEnumerable<SupplierDto>> GetAllSuppliersAsync();
|
||||
Task<SupplierDto?> GetSupplierByIdAsync(Guid id);
|
||||
Task<SupplierDto> CreateSupplierAsync(SupplierDto supplierDto);
|
||||
|
||||
// --- HIER DIE FEHLENDEN METHODEN ERGÄNZEN ---
|
||||
Task<bool> UpdateSupplierAsync(Guid id, SupplierDto supplierDto);
|
||||
Task<bool> DeleteSupplierAsync(Guid id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs.Users;
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Definiert den Vertrag für den Dienst zur Verwaltung von Benutzern durch einen Admin.
|
||||
/// </summary>
|
||||
public interface IAdminUserService
|
||||
{
|
||||
/// <summary>
|
||||
/// Ruft eine Liste aller Benutzer mit ihren zugehörigen Daten ab.
|
||||
/// </summary>
|
||||
Task<IEnumerable<UserDto>> GetAllUsersAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Ruft einen einzelnen Benutzer anhand seiner ID ab.
|
||||
/// </summary>
|
||||
Task<UserDto?> GetUserByIdAsync(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// Aktualisiert die Rollen eines bestimmten Benutzers.
|
||||
/// </summary>
|
||||
Task<bool> UpdateUserRolesAsync(string userId, List<string> newRoles);
|
||||
|
||||
/// <summary>
|
||||
/// Löscht einen Benutzer und alle seine abhängigen Daten (Kundenprofil, Bestellungen etc.).
|
||||
/// </summary>
|
||||
Task<bool> DeleteUserAsync(string userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user