using System.Collections.Generic;
using System.Threading.Tasks;
using ASHermed.SinoInterface.Api.ContractModel.App.Entity;
using ASHermed.SinoInterface.Repository.MySql;

namespace ASHermed.SinoInterface.Api.IRepository.App
{
    public interface IPubClubYouZanOrderRepository : IBaseRepositoryToASHermed_SinoInterface<Pub_Club_YouZanOrder>
    {
        /// <summary>
        /// 根据id查询
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<Pub_Club_YouZanOrder> GetByUserIdAsync(int userId);

        /// <summary>
        /// 根据有赞订单号查询
        /// </summary>
        /// <param name="youZanOrderId"></param>
        /// <returns></returns>
        Task<Pub_Club_YouZanOrder> GetByYouZanOrderId(string youZanOrderId);

        /// <summary>
        /// 查询所有
        /// </summary>
        /// <returns></returns>
        Task<List<Pub_Club_YouZanOrder>> GetAllListAsync();

        /// <summary>
        /// 插入返回id
        /// </summary>
        /// <param name="youZanOrder"></param>
        /// <returns></returns>
        Task<int> InsertAndReturnIdAsync(Pub_Club_YouZanOrder youZanOrder);
    }
}