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

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

import java.util.Optional;

/**
 * @author:slambb
 * @date:2019/12/13
 */
//  extends JpaRepository<WxInfo,String>
public interface WxInfoRepository extends CommonRepository<WxInfo,String> {

   Optional<WxInfo>  findByOpenid(String openid);

   Optional<WxInfo>  findByUnionid(String unionid);
}
