Files
taxbaik/TaxBaik.Domain/Interfaces/IBlogPostRepository.cs
T
kjh2064 f29f2c3cff
TaxBaik Browser E2E / browser-e2e (push) Failing after 1m3s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m46s
개선: 배포 검증과 관리자 UX 안정화
2026-06-27 20:57:09 +09:00

19 lines
1.0 KiB
C#

namespace TaxBaik.Domain.Interfaces;
using TaxBaik.Domain.Entities;
public interface IBlogPostRepository
{
Task<BlogPost?> GetByIdAsync(int id, CancellationToken cancellationToken = default);
Task<BlogPost?> GetBySlugAsync(string slug, CancellationToken cancellationToken = default);
Task<(IEnumerable<BlogPost> Items, int Total)> GetPublishedPagedAsync(
int page, int pageSize, int? categoryId = null, CancellationToken cancellationToken = default);
Task<IEnumerable<BlogPost>> GetAllForAdminAsync(CancellationToken cancellationToken = default);
Task<(IEnumerable<BlogPost> Items, int Total)> GetAdminPagedAsync(
int page, int pageSize, CancellationToken cancellationToken = default);
Task<int> CreateAsync(BlogPost post, CancellationToken cancellationToken = default);
Task UpdateAsync(BlogPost post, CancellationToken cancellationToken = default);
Task DeleteAsync(int id, CancellationToken cancellationToken = default);
Task IncrementViewCountAsync(int id, CancellationToken cancellationToken = default);
}