package com.td.WaDa.game.complayerdog.repository;

import com.td.WaDa.common.repository.*;
import com.td.WaDa.game.complayerdog.pojo.ComPlayerDog;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ComPlayerDogRepository extends CommonRepository<ComPlayerDog, String> {

    Optional<ComPlayerDog> findByUserIdAndOtherType(String userId,Integer OtherType);

    List<ComPlayerDog> findAllByUserId(String userId);
}
