FlowAPI / FlowAPI.Application /Interfaces /IHabitRecordRepository.cs
danylokhodus's picture
feat(habits): support custom checked date in backend DTO, repository, and service
03ee889
Raw
History Blame Contribute Delete
415 Bytes
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);
}
}