forest/src/main/java/com/rymcu/vertical/service/ArticleService.java

26 lines
857 B
Java
Raw Normal View History

2019-11-17 01:24:42 +08:00
package com.rymcu.vertical.service;
import com.rymcu.vertical.core.service.Service;
2019-11-18 01:22:27 +08:00
import com.rymcu.vertical.dto.ArticleDTO;
2019-11-17 01:24:42 +08:00
import com.rymcu.vertical.entity.Article;
2019-12-02 09:39:23 +08:00
import com.rymcu.vertical.web.api.exception.BaseApiException;
2019-11-17 01:24:42 +08:00
2019-11-18 01:22:27 +08:00
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
2019-11-18 01:22:27 +08:00
import java.util.List;
import java.util.Map;
2019-11-17 01:24:42 +08:00
public interface ArticleService extends Service<Article> {
List<ArticleDTO> findArticles(String searchText, String tag);
2019-11-18 01:22:27 +08:00
ArticleDTO findArticleDTOById(Integer id, int i);
List<ArticleDTO> findArticlesByTopicName(String name);
List<ArticleDTO> findArticlesByTagName(String name);
List<ArticleDTO> findUserArticlesByIdUser(Integer idUser);
2019-12-02 09:39:23 +08:00
Map postArticle(ArticleDTO article, HttpServletRequest request) throws UnsupportedEncodingException, BaseApiException;
2019-11-17 01:24:42 +08:00
}