Зависимости на контракты
This commit is contained in:
13
backend/src/Contracts/Admin/Abstractions/IQuery.cs
Normal file
13
backend/src/Contracts/Admin/Abstractions/IQuery.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Knot.Contracts.Admin.Abstractions;
|
||||
|
||||
public interface IQuery<TResponse> : IRequest<Result<TResponse>>
|
||||
{
|
||||
}
|
||||
|
||||
public interface IQueryHandler<TQuery, TResponse>
|
||||
: IRequestHandler<TQuery, Result<TResponse>>
|
||||
where TQuery : IQuery<TResponse>
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user