Changeset 73b69b2 for ChapterX.Domain


Ignore:
Timestamp:
03/24/26 22:13:36 (3 months ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
7fbb91c
Parents:
acf690c
Message:

Fixed reading lists,comments and likes

Location:
ChapterX.Domain
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Domain/Entities/Notification.cs

    racf690c r73b69b2  
    1414        public bool IsRead { get; set; }
    1515        public DateTime CreatedAt { get; set; }
     16        public int? RecipientUserId { get; set; }
     17        public string? Type { get; set; }
     18        public string? Link { get; set; }
    1619
    1720        public ICollection<ContentType> ContentTypes { get; set; } = [];
  • ChapterX.Domain/Repositories/ICommentRepository.cs

    racf690c r73b69b2  
    66    {
    77        Task<IEnumerable<Comment>> GetByChapterIdAsync(int chapterId, CancellationToken cancellationToken = default);
     8        Task<IEnumerable<Comment>> GetByStoryIdAsync(int storyId, CancellationToken cancellationToken = default);
    89    }
    910}
  • ChapterX.Domain/Repositories/ILikesRepository.cs

    racf690c r73b69b2  
    55    public interface ILikesRepository : IRepository<Likes>
    66    {
     7        Task<IEnumerable<Likes>> GetByStoryIdAsync(int storyId, CancellationToken cancellationToken = default);
     8        Task<bool> DeleteByUserAndStoryAsync(int userId, int storyId, CancellationToken cancellationToken = default);
     9        Task<bool> ExistsAsync(int userId, int storyId, CancellationToken cancellationToken = default);
    710    }
    811}
  • ChapterX.Domain/Repositories/IReadingListItemsRepository.cs

    racf690c r73b69b2  
    66    {
    77        Task<bool> ExistsAsync(int listId, int storyId, CancellationToken cancellationToken = default);
     8        Task<bool> DeleteByListAndStoryAsync(int listId, int storyId, CancellationToken cancellationToken = default);
    89    }
    910}
Note: See TracChangeset for help on using the changeset viewer.