cloudroam
3 天以前 3a819e4f668c15e8b77b188b322470da12bb7a43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.mzl.flower.service.comment;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mzl.flower.dto.request.comment.*;
import com.mzl.flower.dto.response.comment.FlowerCommentStatisVO;
import com.mzl.flower.dto.response.comment.FlowerCommentVO;
import com.mzl.flower.entity.FlowerCommentDO;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * <p>
 * 商品评论表 服务类
 * </p>
 *
 * @author @TaoJie
 * @since 2024-09-29
 */
public interface FlowerCommentService extends IService<FlowerCommentDO> {
 
    boolean createFlowerComment(CreateFlowerCommentDTO dto);
 
    boolean updateFlowerComment(UpdateFlowerCommentDTO dto);
 
    boolean deleteFlowerComment(String id);
 
    FlowerCommentVO getDetailById(String id);
 
    Page<FlowerCommentVO> getPage(Page page, QueryFlowerCommentDTO dto);
 
    List<FlowerCommentVO> getList(QueryFlowerCommentDTO dto);
 
    FlowerCommentVO getByOrderItemId(String orderItemId);
 
 
    /**
     * 获取供应商的评论平均分
     * @param supplierId 供应商
     * @return
     */
    BigDecimal getSupplierAvgScore(Long supplierId);
 
    /**
     * 订单下所有商品的评论
     * @param dto
     * @return
     */
    boolean createFlowerCommentBatch(CreateFlowerCommentBatchDTO dto);
 
    FlowerCommentStatisVO getSupplierStatis(Long id);
 
    /**
     * 评论的显示隐藏
     * @param dto
     * @return
     */
    boolean updateShowFlowerComment(ShowFlowerCommentDTO dto);
 
    boolean updateReplayFlowerComment(ReplayFlowerCommentDTO dto);
}