using System.Collections.Generic;
using System.Threading.Tasks;
using Datory;
using SSCMS.Models;

namespace SSCMS.Repositories
{
    public interface IWxReplyRuleRepository : IRepository
    {
        Task<int> InsertAsync(WxReplyRule rule);

        Task UpdateAsync(WxReplyRule rule);

        Task DeleteAsync(int ruleId);

        Task DeleteAllAsync(int siteId);

        Task<int> GetCount(int siteId, string keyword);

        Task<List<WxReplyRule>> GetRulesAsync(int siteId, string keyword, int page, int perPage);

        Task<WxReplyRule> GetAsync(int ruleId);
    }
}
