package cn.quantgroup.xyqb.repository;

import cn.quantgroup.xyqb.entity.SmsTemplateEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * Created by hechao on 2020/2/17.
 */
@Repository
public interface ISmsTemplateRepository extends JpaRepository<SmsTemplateEntity, Long> {
    Optional<SmsTemplateEntity> findFirstByClientIdAndType(Long clientId, String type);
}