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; /** *

* 商品评论表 服务类 *

* * @author @TaoJie * @since 2024-09-29 */ public interface FlowerCommentService extends IService { boolean createFlowerComment(CreateFlowerCommentDTO dto); boolean updateFlowerComment(UpdateFlowerCommentDTO dto); boolean deleteFlowerComment(String id); FlowerCommentVO getDetailById(String id); Page getPage(Page page, QueryFlowerCommentDTO dto); List 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); }