package org.example.objects; import org.example.models.Post; import org.example.models.User; import java.util.List; public class SearchDTO { private List posts; private List users; public SearchDTO() { } public SearchDTO(List posts, List users) { this.posts = posts; this.users = users; } public List getPosts() { return posts; } public void setPosts(List posts) { this.posts = posts; } public List getUsers() { return users; } public void setUsers(List users) { this.users = users; } }