完成评论回复列表和评论商家详情列表,用户验证暂时等下次增加点赞接口以后加上
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.iocoder.mall.order.api;
|
||||
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentMerchantReplyBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentReplyCreateBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentReplyPageBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentReplyCreateDTO;
|
||||
@@ -22,7 +23,7 @@ public interface OrderCommentReplyService {
|
||||
* @param orderCommentReplyPageDTO
|
||||
* @return
|
||||
*/
|
||||
List<OrderCommentReplyPageBO> getOrderCommentReplyPage(OrderCommentReplyPageDTO orderCommentReplyPageDTO);
|
||||
OrderCommentReplyPageBO getOrderCommentReplyPage(OrderCommentReplyPageDTO orderCommentReplyPageDTO);
|
||||
|
||||
|
||||
/**
|
||||
@@ -31,4 +32,15 @@ public interface OrderCommentReplyService {
|
||||
* @return
|
||||
*/
|
||||
OrderCommentReplyCreateBO createOrderCommentReply(OrderCommentReplyCreateDTO orderCommentReplyCreateDTO);
|
||||
|
||||
|
||||
/**
|
||||
* 获取商家评论回复
|
||||
* @param commentId
|
||||
* @return
|
||||
*/
|
||||
List<OrderCommentMerchantReplyBO> getOrderCommentMerchantReply(Integer commentId);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.iocoder.mall.order.api;
|
||||
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentCreateBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentInfoAndMerchantReplyBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentInfoBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentPageBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentCreateDTO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentPageDTO;
|
||||
@@ -32,11 +32,11 @@ public interface OrderCommentService {
|
||||
|
||||
|
||||
/**
|
||||
* 获取评论详情和商家回复
|
||||
* 获取评论详情
|
||||
* @param commentId
|
||||
* @return
|
||||
*/
|
||||
OrderCommentInfoAndMerchantReplyBO getOrderCommentInfo(Integer commentId, Integer userType);
|
||||
OrderCommentInfoBO getOrderCommentInfo(Integer commentId);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,97 +3,27 @@ package cn.iocoder.mall.order.api.bo;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 订单回复评价详情和商加回复
|
||||
* 评论详情和商家评论回复
|
||||
*
|
||||
* @author wtz
|
||||
* @time 2019-05-16 18:40
|
||||
*
|
||||
* @time 2019-06-03 20:30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentInfoAndMerchantReplyBO {
|
||||
|
||||
/**
|
||||
* 评论 id
|
||||
* 评论详情
|
||||
*/
|
||||
private Integer id;
|
||||
private OrderCommentInfoBO orderCommentInfoBO;
|
||||
|
||||
/**
|
||||
* 用户头像
|
||||
* 商家评论回复
|
||||
*/
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String userNickName;
|
||||
|
||||
/**
|
||||
* 评价星
|
||||
*/
|
||||
private Integer star;
|
||||
|
||||
/**
|
||||
* 评论的内容
|
||||
*/
|
||||
private String commentContent;
|
||||
|
||||
/**
|
||||
* 评论的图片地址
|
||||
*/
|
||||
private String commentPics;
|
||||
|
||||
|
||||
/**
|
||||
* 点赞数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 商品 sku id
|
||||
*/
|
||||
private int productSkuId;
|
||||
|
||||
/**
|
||||
* 商品 sku 属性
|
||||
*/
|
||||
private String productSkuAttrs;
|
||||
|
||||
/**
|
||||
* 商品 sku 价格
|
||||
*/
|
||||
private String productSkuPrice;
|
||||
|
||||
/**
|
||||
* 商品 sku 地址
|
||||
*/
|
||||
private String productSkuPicUrl;
|
||||
|
||||
|
||||
/**
|
||||
* 商家回复
|
||||
*/
|
||||
List<OrderCommentReplayMerchantItem> orderCommentReplayMerchantItems;
|
||||
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public static class OrderCommentReplayMerchantItem{
|
||||
/**
|
||||
* 回复的内容
|
||||
*/
|
||||
private String replyContent;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private List<OrderCommentMerchantReplyBO> orderCommentMerchantReplyBOS;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
package cn.iocoder.mall.order.api.bo;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* 订单回复评价详情
|
||||
*
|
||||
* @author wtz
|
||||
* @time 2019-05-16 18:40
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentInfoBO {
|
||||
|
||||
/**
|
||||
* 评论 id
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String userNickName;
|
||||
|
||||
/**
|
||||
* 评价星
|
||||
*/
|
||||
private Integer star;
|
||||
|
||||
/**
|
||||
* 评论的内容
|
||||
*/
|
||||
private String commentContent;
|
||||
|
||||
/**
|
||||
* 评论的图片地址
|
||||
*/
|
||||
private String commentPics;
|
||||
|
||||
|
||||
/**
|
||||
* 点赞数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 商品 sku id
|
||||
*/
|
||||
private int productSkuId;
|
||||
|
||||
/**
|
||||
* 商品 sku 属性
|
||||
*/
|
||||
private String productSkuAttrs;
|
||||
|
||||
/**
|
||||
* 商品 sku 价格
|
||||
*/
|
||||
private String productSkuPrice;
|
||||
|
||||
/**
|
||||
* 商品 sku 地址
|
||||
*/
|
||||
private String productSkuPicUrl;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.iocoder.mall.order.api.bo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
*
|
||||
* 商家评论回复
|
||||
*
|
||||
* @author wtz
|
||||
* @time 2019-06-03 19:30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentMerchantReplyBO {
|
||||
|
||||
/**
|
||||
* 商家评论回复
|
||||
*/
|
||||
private String replyContent;
|
||||
}
|
||||
@@ -15,19 +15,24 @@ import java.util.List;
|
||||
* @time 2019-05-19 14:19
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentReplyPageBO {
|
||||
|
||||
/**
|
||||
* 评论回复总数
|
||||
*/
|
||||
private Integer total;
|
||||
|
||||
/**
|
||||
* 用户回复
|
||||
*/
|
||||
List<OrderCommentReplayUserItem> orderCommentReplayUserItems;
|
||||
List<OrderCommentReplayItem> orderCommentReplayItems;
|
||||
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
private static class OrderCommentReplayUserItem{
|
||||
public static class OrderCommentReplayItem{
|
||||
/**
|
||||
* 回复 id
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user