CsdnCommentService.java 974 字节
Newer Older
1 2
package com.kwan.springbootkwan.service;

3
import com.kwan.springbootkwan.entity.CsdnTripletDayInfo;
4
import com.kwan.springbootkwan.entity.CsdnUserInfo;
5
import com.kwan.springbootkwan.entity.resp.BusinessInfoResponse;
6
import com.kwan.springbootkwan.entity.resp.CommentResponse;
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

/**
 * 评论
 *
 * @author : qinyingjie
 * @version : 2.2.0
 * @date : 2023/10/24 01:25
 */
public interface CsdnCommentService {

    /**
     * 查询是否评论过
     *
     * @return
     */
22
    Boolean isComment(BusinessInfoResponse.ArticleData.Article article, CsdnUserInfo csdnUserInfo);
23 24

    /**
25
     * 评论别人的文章
26 27 28
     *
     * @return
     */
29
    Boolean comment(String articleId, CsdnUserInfo csdnUserInfo, CsdnTripletDayInfo csdnTripletDayInfo);
30 31

    /**
32
     * 评论文章
33
     *
34 35 36
     * @param articleId
     * @param commentInfo
     * @param commentId
37 38
     * @return
     */
39
    CommentResponse dealComment(String articleId, String commentInfo, Integer commentId);
40
}