package com.mychaldea.api.event.type.summoncampaign.user.servant.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mychaldea.api.event.type.summoncampaign.user.servant.entity.UserSummonCampaignServant;
import com.mychaldea.api.event.type.summoncampaign.user.servant.repository.UserSummonCampaignServantRepository;

@Service
public class UserSummonCampaignServantService {

	@Autowired
	private UserSummonCampaignServantRepository repository;

	public List<UserSummonCampaignServant> getUserSummonCampaignServants(String userUID, int eventID) {
		return (List<UserSummonCampaignServant>) repository.findAllByUserUIDAndEventID(userUID, eventID);
	}

}
