From 7a069ede4355780d0ece737884c9315e5a16bb81 Mon Sep 17 00:00:00 2001 From: wangtongzhou Date: Wed, 15 May 2019 20:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=A8=A1=E5=9D=97Bo=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AE=9E=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/order/api/bo/OrderCommentBo.java | 87 ++++++++++ .../mall/order/api/bo/OrderCommentInfoBO.java | 158 ++++++++++++++++++ .../mall/order/api/bo/OrderCommentPageBo.java | 104 ++++++++++++ 3 files changed, 349 insertions(+) create mode 100644 order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentBo.java create mode 100644 order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentInfoBO.java create mode 100644 order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentPageBo.java diff --git a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentBo.java b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentBo.java new file mode 100644 index 000000000..466a12808 --- /dev/null +++ b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentBo.java @@ -0,0 +1,87 @@ +package cn.iocoder.mall.order.api.bo; + +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +/** + * + * 订单评价 + * + * @author wtz + * @time 2019-05-14 20:00:00 + */ +@Data +@Accessors(chain = true) +public class OrderCommentBo implements Serializable { + + /** + * 总条数 + */ + private Integer total; + + /** + * 好评 + */ + private Integer positiveTotal; + + /** + * 中评 + */ + private Integer moderateTotal; + + /** + * 差评 + */ + private Integer negativeTotal; + + /** + * 评论id + */ + private Integer id; + + /** + * 用户头像 + */ + private String userAvatar; + + /** + * 用户的真实姓名 + */ + private String userNickName; + + /** + * 评价星 + */ + private Integer star; + + /** + * 评论的内容 + */ + private String commentContent; + + /** + * 评论的图片地址 + */ + private String commentPics; + + /** + * 回复条数 + */ + private Integer replayCount; + + /** + * 点赞数 + */ + private Integer collectCount; + + /** + * 创建时间 + */ + private Date createTime; + + +} diff --git a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentInfoBO.java b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentInfoBO.java new file mode 100644 index 000000000..ffad53638 --- /dev/null +++ b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentInfoBO.java @@ -0,0 +1,158 @@ +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 + * + */ +public class OrderCommentInfoBO { + + /** + * 评论id + */ + private Integer id; + + /** + * 用户头像 + */ + private String userAvatar; + + /** + * 用户的真实姓名 + */ + private String userNickName; + + /** + * 评价星 + */ + private Integer star; + + /** + * 评论的内容 + */ + private String commentContent; + + /** + * 评论的图片地址 + */ + private String commentPics; + + /** + * 回复条数 + */ + private Integer replayCount; + + /** + * 点赞数 + */ + private Integer collectCount; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 商品SKUid + */ + private int productSkuId; + + /** + * 商品SKU属性 + */ + private String productSkuAttrs; + + /** + * 商品SKU价格 + */ + private String productSkuPrice; + + /** + * 商品SKU地址 + */ + private String productSkuPicUrl; + + + /** + * 商家回复 + */ + List orderCommentReplayMerchantItems; + + /** + * 用户回复 + */ + List orderCommentReplayUserItems; + + @Data + @Accessors(chain = true) + private static class OrderCommentReplayMerchantItem{ + /** + * 回复的内容 + */ + private String replyContent; + } + + + + @Data + @Accessors(chain = true) + private static class OrderCommentReplayUserItem{ + /** + * 回复id + */ + private Integer id; + + /** + * 回复的类型 + */ + private Integer replyType; + + /** + * 回复的内容 + */ + private String replyContent; + + /** + * 回复的用户id + */ + private int replyUserId; + + /** + * 回复用户的真实姓名 + */ + private String replyUserNickName; + + /** + * 回复用户的头像 + */ + private String replyUserAvatar; + + /** + * 回复的点赞数 + */ + private int replyCollectCount; + + /** + * 回复目标用户昵称 + */ + private String parentUserNickName; + + /** + * 创建时间 + */ + private Date createTime; + + } + + + +} diff --git a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentPageBo.java b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentPageBo.java new file mode 100644 index 000000000..0547cafb6 --- /dev/null +++ b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/bo/OrderCommentPageBo.java @@ -0,0 +1,104 @@ +package cn.iocoder.mall.order.api.bo; + +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + + +/** + * + * 订单评论分页展示 + * + * @author wtz + * @time 2019-05-14 20:00:00 + */ +@Data +@Accessors(chain = true) +public class OrderCommentPageBo implements Serializable { + + /** + * 总条数 + */ + private Integer total; + + /** + * 好评 + */ + private Integer positiveTotal; + + /** + * 中评 + */ + private Integer moderateTotal; + + /** + * 差评 + */ + private Integer negativeTotal; + + /** + * 评论列表 + */ + private List orderCommentItems; + + + @Data + @Accessors(chain = true) + private static class OrderCommentItem{ + /** + * 评论id + */ + private Integer id; + + /** + * 用户头像 + */ + private String userAvatar; + + /** + * 用户的真实姓名 + */ + private String userNickName; + + /** + * 评价星 + */ + private Integer star; + + /** + * 评论的内容 + */ + private String commentContent; + + /** + * 评论的图片地址 + */ + private String commentPics; + + /** + * 回复条数 + */ + private Integer replayCount; + + /** + * 点赞数 + */ + private Integer collectCount; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 商家回复列表 + * 只展示最近的一条 + */ + private String MerchantRaplayContent; + + } + +}