Зависимости на контракты
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Knot.Contracts.Stories.Infrastructure.Persistence;
|
||||
|
||||
public interface IStoryCollection
|
||||
{
|
||||
Task<List<StoryContract>> GetAllAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
public class StoryContract
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
public string? MediaUrl { get; set; }
|
||||
public string? MediaType { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime? ExpiresAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user