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.
30 lines
1.3 KiB
30 lines
1.3 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
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,
|
|
CancellationToken ct = default);
|
|
|
|
Task<ISchemaEntity?> GetSchemaAsync(Context context, string schemaIdOrNama,
|
|
CancellationToken ct = default);
|
|
}
|
|
}
|
|
|