using iyixiGames.Domain.Entities;

namespace iyixiGames.Infrastructure.Services
{
    /// <summary>
    /// 网站数据仓储接口。
    /// </summary>
    public interface ISiteRepository
    {
        Task<Site?> GetByIdAsync(string id);
        Task<IEnumerable<Site>> GetAllAsync();
        Task AddAsync(Site site);
        Task UpdateAsync(Site site);
        Task DeleteAsync(string id);
        Task<bool> ExistsAsync(string id);
        Task<bool> DomainExistsAsync(string domain);
    }
}