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.
34 lines
1.1 KiB
34 lines
1.1 KiB
// ==========================================================================
|
|
// IAppProvider.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Squidex.Domain.Apps.Entities.Apps;
|
|
using Squidex.Domain.Apps.Entities.Rules;
|
|
using Squidex.Domain.Apps.Entities.Schemas;
|
|
|
|
namespace Squidex.Domain.Apps.Entities
|
|
{
|
|
public interface IAppProvider
|
|
{
|
|
Task<(IAppEntity, ISchemaEntity)> GetAppWithSchemaAsync(Guid appId, Guid id);
|
|
|
|
Task<IAppEntity> GetAppAsync(string appName);
|
|
|
|
Task<ISchemaEntity> GetSchemaAsync(Guid appId, Guid id);
|
|
|
|
Task<ISchemaEntity> GetSchemaAsync(Guid appId, string name);
|
|
|
|
Task<List<ISchemaEntity>> GetSchemasAsync(Guid appId);
|
|
|
|
Task<List<IRuleEntity>> GetRulesAsync(Guid appId);
|
|
|
|
Task<List<IAppEntity>> GetUserApps(string userId);
|
|
}
|
|
}
|
|
|