CsdnArticleInfoService.java 1.0 KB
Newer Older
1 2 3 4
package com.kwan.springbootkwan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kwan.springbootkwan.entity.CsdnArticleInfo;
5 6 7
import com.kwan.springbootkwan.entity.resp.BusinessInfoResponse;

import java.util.List;
8 9 10 11 12 13 14 15

/**
 * csdn文章信息(CsdnArticleInfo)表服务接口
 *
 * @author makejava
 * @since 2023-10-28 01:58:46
 */
public interface CsdnArticleInfoService extends IService<CsdnArticleInfo> {
16 17 18 19 20 21 22 23 24 25 26 27 28 29
    /**
     * 通过文章id获取文章信息
     *
     * @return
     */
    CsdnArticleInfo getArticleByArticleId(String articleId);

    /**
     * 保存文章Blog
     *
     * @return
     */
    void saveArticle(CsdnArticleInfo csdnArticleInfo);

30

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    /**
     * 获取最新的10篇文章
     *
     * @param username
     * @return
     */
    List<BusinessInfoResponse.ArticleData.Article> getArticles(String username);

    /**
     * 获取最新的10篇博客(只能是blog类型)
     *
     * @param username
     * @return
     */
    List<BusinessInfoResponse.ArticleData.Article> getBlogs(String username);
46 47
}