File size: 415 Bytes
b9c7f0e
 
 
 
 
 
 
 
03ee889
b9c7f0e
 
1
2
3
4
5
6
7
8
9
10
11
12
using FlowAPI.Domain.Entities;

namespace FlowAPI.Application.Interfaces
{
    public interface IHabitRecordRepository : IGenericRepository<HabitRecord>
    {
        Task<IEnumerable<HabitRecord>> GetAllByUserIdAsync(Guid userId);
        Task<HabitRecord?> GetTodayRecordAsync(Guid userId, string habitName);
        Task<HabitRecord?> GetRecordForDateAsync(Guid userId, string habitName, DateTime date);
    }
}