Example #1
0
 @Override
 public ArticleWithContent getLastArticle(String currentBlogId, String type) {
   return entityMapper.getNextArticle(currentBlogId, type);
 }
Example #2
0
 @Override
 public void saveArticle(ArticleWithContent articleWithContent) {
   entityMapper.insert(articleWithContent);
 }
Example #3
0
 public List<ArticleWithContent> getRecentTwoArticle(String username) {
   return entityMapper.getRecentTwoArticle(username);
 }
Example #4
0
 @Override
 public ArticleWithContent getLastArticle(String username) {
   return entityMapper.getLastArtile(username);
 }