package com.bizzan.bitrade.dao;

import com.bizzan.bitrade.dao.base.BaseDao;
import com.bizzan.bitrade.entity.ExperienceGiftGrantType;
import com.bizzan.bitrade.entity.ExperienceGiftProduct;
import com.bizzan.bitrade.entity.ExperienceGiftProductStatus;
import com.bizzan.bitrade.entity.ExperienceGiftTriggerType;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExperienceGiftProductDao extends BaseDao<ExperienceGiftProduct>, ExperienceGiftProductDaoCustom {

    List<ExperienceGiftProduct> findByStatus(ExperienceGiftProductStatus status);

    List<ExperienceGiftProduct> findByStatusAndGrantType(ExperienceGiftProductStatus status, ExperienceGiftGrantType grantType);

    List<ExperienceGiftProduct> findByStatusAndGrantTypeAndTriggerType(
            ExperienceGiftProductStatus status,
            ExperienceGiftGrantType grantType,
            ExperienceGiftTriggerType triggerType);
}
