mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.2 KiB
27 lines
1.2 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Squidex.Domain.Apps.Entities.Schemas;
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Contents
|
|
{
|
|
public interface IContentQueryService
|
|
{
|
|
Task<IResultList<IEnrichedContentEntity>> QueryAsync(Context context, Q q, CancellationToken ct = default);
|
|
|
|
Task<IResultList<IEnrichedContentEntity>> QueryAsync(Context context, string schemaIdOrName, Q query, CancellationToken ct = default);
|
|
|
|
Task<IEnrichedContentEntity?> FindAsync(Context context, string schemaIdOrName, DomainId id, long version = EtagVersion.Any, CancellationToken ct = default);
|
|
|
|
Task<ISchemaEntity> GetSchemaOrThrowAsync(Context context, string schemaIdOrName);
|
|
|
|
Task<ISchemaEntity?> GetSchemaAsync(Context context, string schemaIdOrNama);
|
|
}
|
|
}
|
|
|