package com.uas.platform.b2b.manage.dao;

import com.uas.platform.b2b.manage.model.SecretKeyRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 秘钥记录
 *
 * Created by hejq on 2018-04-27.
 */
@Repository
public interface SecretKeyRecordDao extends JpaRepository<SecretKeyRecord, Long> {

    /**
     * 通过秘钥查询相关信息
     *
     * @param secretKey
     * @return
     */
    SecretKeyRecord findBySecretKey(String secretKey);

    /**
     * 通过邮箱查询时间
     *
     * @param email 邮箱
     * @return
     */
    SecretKeyRecord findByEmail(String email);
}
