puzhibing
2023-10-08 22199bbdda579861736420fe26c2873ab0f5d21c
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
package com.sinata.rest.modular.mall.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sinata.rest.modular.mall.controller.vo.VoGoodsUserEvaluation;
import com.sinata.rest.modular.mall.model.MallUserEvaluation;
 
import java.util.List;
 
/**
 * <p>
 * 用户评价 服务类
 * </p>
 *
 * @author goku
 * @since 2023-03-10
 */
public interface IMallUserEvaluationService extends IService<MallUserEvaluation> {
 
    /**
     * <p>
     * 获取商品最新的一条评价
     * </p>
     * @author sl
     * @Description 获取商品最新的一条评价
     * @date 2023/3/15 15:21
     * @param [goodsId]
     * @return com.sinata.rest.modular.mall.controller.vo.VoGoodsUserEvaluation
     */
    VoGoodsUserEvaluation goodsNewestEvaluation(Integer goodsId);
 
    /**
     * 获取商品评价列表
     * @author chenhang
     * @param page
     * @return
     */
    List<VoGoodsUserEvaluation> selectEvaluationList(Integer merchantId, Integer goodsId, Page<VoGoodsUserEvaluation> page);
    /**
     * 获取商品评价列表
     * @author chenhang
     * @param page
     * @return
     */
    List<VoGoodsUserEvaluation> selectEvaluationListForUser(Integer userId,Page<VoGoodsUserEvaluation> page);
 
}