package com.cubetiqs.demo.service; import com.cubetiqs.demo.domain.PostEntity; import com.cubetiqs.demo.repository.BaseRepository; import com.cubetiqs.demo.repository.PostRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import java.util.List; @Service public class PostServiceImpl extends BaseServiceImpl implements PostService { private final PostRepository postRepository; @Autowired public PostServiceImpl(PostRepository postRepository) { this.postRepository = postRepository; } @Override public BaseRepository getRepository() { return postRepository; } @Override public Page findAll(Pageable pageable, String q) { return null; } @Override public List findAllActives() { return postRepository.findAllActives(); } }