mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 00:15:06 +08:00
fix:完善商品评论 review 提到的问题
This commit is contained in:
@ -9,14 +9,12 @@ import cn.iocoder.yudao.module.product.api.comment.dto.ProductCommentCreateReqDT
|
||||
*/
|
||||
public interface ProductCommentApi {
|
||||
|
||||
// TODO @puhui:Long orderId 放到 createReqDTO 里噶?
|
||||
/**
|
||||
* 创建评论
|
||||
*
|
||||
* @param createReqDTO 评论参数
|
||||
* @param orderId 订单 id
|
||||
* @return 返回评论创建后的 id
|
||||
*/
|
||||
Long createComment(ProductCommentCreateReqDTO createReqDTO, Long orderId);
|
||||
Long createComment(ProductCommentCreateReqDTO createReqDTO);
|
||||
|
||||
}
|
||||
|
@ -16,21 +16,15 @@ public class ProductCommentCreateReqDTO {
|
||||
* 商品 SKU 编号
|
||||
*/
|
||||
private Long skuId;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
private Long orderId;
|
||||
/**
|
||||
* 交易订单项编号
|
||||
*/
|
||||
private Long orderItemId;
|
||||
|
||||
// TODO @huihui:spuId、spuName 去查询哇?通过 skuId
|
||||
/**
|
||||
* 商品 SPU 编号
|
||||
*/
|
||||
private Long spuId;
|
||||
/**
|
||||
* 商品 SPU 名称
|
||||
*/
|
||||
private String spuName;
|
||||
|
||||
/**
|
||||
* 评分星级 1-5 分
|
||||
*/
|
||||
@ -60,14 +54,6 @@ public class ProductCommentCreateReqDTO {
|
||||
* 评价人
|
||||
*/
|
||||
private Long userId;
|
||||
// TODO @puhui999:是不是 userNickname、userAvatar 去掉?通过 userId 查询
|
||||
/**
|
||||
* 评价人名称
|
||||
*/
|
||||
private String userNickname;
|
||||
/**
|
||||
* 评价人头像
|
||||
*/
|
||||
private String userAvatar;
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user