refactor(Contracts.Repositories): Verschieben Sie es in die Anwendungsschicht, um die Anforderungen einer sauberen Architektur zu erfüllen.

This commit is contained in:
2025-07-24 10:35:30 +02:00
parent a954a24888
commit 22e4b4f54f
17 changed files with 21 additions and 19 deletions

View File

@@ -0,0 +1,9 @@
using DigitalData.Core.Abstractions.Infrastructure;
using WorkFlow.Domain.Entities;
namespace WorkFlow.Application.Contracts.Repositories
{
public interface IConfigRepository : ICRUDRepository<Config, int>
{
}
}

View File

@@ -0,0 +1,14 @@
using DigitalData.Core.Abstractions.Infrastructure;
using WorkFlow.Domain.Entities;
namespace WorkFlow.Application.Contracts.Repositories
{
public interface IProfileControlsTFRepository : ICRUDRepository<ProfileControlsTF, int>
{
Task<IEnumerable<ProfileControlsTF>> ReadAsync(
bool isReadonly = true,
bool withProfile = true, bool withUser = false,
int? userId = null, string? username = null,
int? profileId = null, int? objId = null, bool? profileActive = null);
}
}

View File

@@ -0,0 +1,14 @@
using DigitalData.Core.Abstractions.Infrastructure;
using WorkFlow.Domain.Entities;
namespace WorkFlow.Application.Contracts.Repositories
{
public interface IProfileObjStateRepository : ICRUDRepository<ProfileObjState, int>
{
Task<IEnumerable<ProfileObjState>> ReadAsync(
bool isReadonly = true,
bool withProfile = true, bool withUser = true, bool withState = true,
int? userId = null, string? username = null,
int? profileId = null, int? objId = null);
}
}

View File

@@ -0,0 +1,5 @@
namespace WorkFlow.Application.Contracts.Repositories;
public interface IProfileRepository
{
}

View File

@@ -0,0 +1,9 @@
using DigitalData.Core.Abstractions.Infrastructure;
using WorkFlow.Domain.Entities;
namespace WorkFlow.Application.Contracts.Repositories
{
public interface IStateRepository : ICRUDRepository<State, int>
{
}
}

View File

@@ -4,7 +4,7 @@ using DigitalData.Core.Application;
using WorkFlow.Application.Contracts;
using WorkFlow.Application.DTO.Config;
using WorkFlow.Domain.Entities;
using WorkFlow.Infrastructure.Contracts;
using WorkFlow.Application.Contracts.Repositories;
namespace WorkFlow.Application.Services;

View File

@@ -5,7 +5,7 @@ using DigitalData.Core.DTO;
using WorkFlow.Application.Contracts;
using WorkFlow.Application.DTO.ProfileControlsTF;
using WorkFlow.Domain.Entities;
using WorkFlow.Infrastructure.Contracts;
using WorkFlow.Application.Contracts.Repositories;
namespace WorkFlow.Application.Services
{

View File

@@ -5,7 +5,7 @@ using DigitalData.Core.DTO;
using WorkFlow.Application.Contracts;
using WorkFlow.Application.DTO.ProfileObjState;
using WorkFlow.Domain.Entities;
using WorkFlow.Infrastructure.Contracts;
using WorkFlow.Application.Contracts.Repositories;
namespace WorkFlow.Application.Services;

View File

@@ -4,7 +4,7 @@ using DigitalData.Core.Application;
using WorkFlow.Application.Contracts;
using WorkFlow.Application.DTO.State;
using WorkFlow.Domain.Entities;
using WorkFlow.Infrastructure.Contracts;
using WorkFlow.Application.Contracts.Repositories;
namespace WorkFlow.Application.Services;