package com.zhongshu.card.server.core.dao.projectAbout;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.github.microservice.types.payment.PaymentChannelType;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.server.core.dao.projectAbout.extend.PayChannelConfigDaoExtend;
import com.zhongshu.card.server.core.domain.paySetting.PayChannelConfig;

import java.util.List;

/**
 * 项目关联的 支付配置
 */
public interface PayChannelConfigDao extends MongoDao<PayChannelConfig>, PayChannelConfigDaoExtend {

    PayChannelConfig findTopById(String id);

    PayChannelConfig findTopByPaymentChannelType(PaymentChannelType paymentChannelType);

    PayChannelConfig findTopByPaymentType(PaymentType paymentType);

    List<PayChannelConfig> findByState(DataState state);

}
