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-11-21 00:46:39 +08:00
|
|
|
import com.rymcu.vertical.web.api.exception.MallApiException;
|
2019-11-17 01:24:42 +08:00
|
|
|
|
2019-11-18 01:22:27 +08:00
|
|
|
import javax.servlet.http.HttpServletRequest;
|
2019-11-23 00:57:29 +08:00
|
|
|
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> {
|
2019-11-23 00:57:29 +08:00
|
|
|
List<ArticleDTO> findArticles(String searchText, String tag);
|
2019-11-18 01:22:27 +08:00
|
|
|
|
2019-11-21 00:46:39 +08:00
|
|
|
ArticleDTO findArticleDTOById(Integer id, int i);
|
2019-11-23 00:57:29 +08:00
|
|
|
|
|
|
|
List<ArticleDTO> findArticlesByTopicName(String name);
|
|
|
|
|
|
|
|
List<ArticleDTO> findArticlesByTagName(String name);
|
|
|
|
|
|
|
|
List<ArticleDTO> findUserArticlesByIdUser(Integer idUser);
|
2019-11-24 15:54:17 +08:00
|
|
|
|
|
|
|
Map postArticle(ArticleDTO article, HttpServletRequest request) throws UnsupportedEncodingException, MallApiException;
|
2019-11-17 01:24:42 +08:00
|
|
|
}
|