package com.YuyeTech.TPlat.game.TP_AppleInfo.repository;

import com.YuyeTech.TPlat.common.repository.CommonRepository;
import com.YuyeTech.TPlat.game.TP_AppleInfo.projo.AppleInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author:slambb
 * @date:2020/6/4
 */
// extends JpaRepository<AppleInfo,String>
public interface AppleInfoServiceRepository extends CommonRepository<AppleInfo,String> {

    Optional<AppleInfo> findByAppleId(String appleId);

    Optional<AppleInfo> findByUserId(String userId);
}
