package com.rymcu.vertical.service; import com.rymcu.vertical.core.service.Service; import com.rymcu.vertical.dto.ArticleDTO; import com.rymcu.vertical.entity.Article; import com.rymcu.vertical.web.api.exception.BaseApiException; import javax.servlet.http.HttpServletRequest; import java.io.UnsupportedEncodingException; import java.util.List; import java.util.Map; public interface ArticleService extends Service
{ List findArticles(String searchText, String tag); ArticleDTO findArticleDTOById(Integer id, int i); List findArticlesByTopicName(String name); List findArticlesByTagName(String name); List findUserArticlesByIdUser(Integer idUser); Map postArticle(ArticleDTO article, HttpServletRequest request) throws UnsupportedEncodingException, BaseApiException; }