CsdnArticleInfoService.java 811 字节
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 16

/**
 * csdn文章信息(CsdnArticleInfo)表服务接口
 *
 * @author makejava
 * @since 2023-10-28 01:58:46
 */
public interface CsdnArticleInfoService extends IService<CsdnArticleInfo> {

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    /**
     * 获取最新的10篇文章
     *
     * @param username
     * @return
     */
    List<BusinessInfoResponse.ArticleData.Article> getArticles(String username);

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