mirror of https://github.com/Squidex/squidex.git
2 changed files with 38 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||
|
// ==========================================================================
|
||||
|
// IContentEntity.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using Newtonsoft.Json.Linq; |
||||
|
|
||||
|
namespace Squidex.Read.Contents |
||||
|
{ |
||||
|
public interface IContentEntity : IEntity |
||||
|
{ |
||||
|
JToken Data { get; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,21 @@ |
|||||
|
// ==========================================================================
|
||||
|
// IContentRepoitory.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Squidex.Read.Contents.Repositories |
||||
|
{ |
||||
|
public interface IContentRepoitory |
||||
|
{ |
||||
|
Task<List<IContentEntity>> QueryAsync(); |
||||
|
|
||||
|
Task<IContentEntity> FindContentAsync(Guid id); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue