Add validation to utils

This commit is contained in:
2025-04-06 21:59:06 -04:00
parent 60aa0bcb7e
commit b618d57143
35 changed files with 1670 additions and 181 deletions

View File

@@ -65,6 +65,11 @@ public class PersonService{
}
}
public Person getPersonByName(String personName, UUID raidGroupId){
return personRepository.findByPersonNameAndRaidGroupId(personName, raidGroupId);
}
public List<Person> getPeopleByRaidGroup(UUID raidGroupId, int page, int pageSize){
return personRepository.findAllByRaidGroupId(raidGroupId, PageRequest.of(page, pageSize, Sort.by("personName").ascending()));
}