forked from Cookies_Github_mirror/AquaDX
[api] Add rest of the player data to api
This commit is contained in:
@@ -45,4 +45,5 @@ public class UserCharacterService {
|
||||
public Optional<UserCharacter> getByUserAndCharacterId(UserData user, int characterId) {
|
||||
return userCharacterRepository.findTopByUserAndCharacterIdOrderByIdDesc(user, characterId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,4 +44,8 @@ public class UserItemService {
|
||||
Pageable page = PageRequest.of(pageNumber, maxCount);
|
||||
return userItemRepository.findAllByUser_Card_ExtIdAndItemKind(Integer.parseInt(userId), kind, page);
|
||||
}
|
||||
|
||||
public Page<UserItem> getByUserId(String userId, int page, int size) {
|
||||
return userItemRepository.findByUser_Card_ExtId(Integer.parseInt(userId), PageRequest.of(page, size));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user