订单评论状态接口
This commit is contained in:
@@ -3,8 +3,10 @@ package cn.iocoder.mall.order.api;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentCreateBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentInfoBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentPageBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentStateInfoPageBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentCreateDTO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentPageDTO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentStateInfoPageDTO;
|
||||
|
||||
/**
|
||||
* 订单评论模块
|
||||
@@ -39,6 +41,12 @@ public interface OrderCommentService {
|
||||
OrderCommentInfoBO getOrderCommentInfo(Integer commentId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取订单评论状态详情
|
||||
* @param orderCommentStateInfoPageDTO
|
||||
* @return
|
||||
*/
|
||||
OrderCommentStateInfoPageBO getOrderCommentStateInfoPage(OrderCommentStateInfoPageDTO orderCommentStateInfoPageDTO);
|
||||
|
||||
/**
|
||||
* 订单评价超时自动好评
|
||||
|
||||
@@ -21,4 +21,5 @@ public class OrderCommentCreateBO implements Serializable {
|
||||
* 订单评论 id
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ package cn.iocoder.mall.order.api.bo;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@@ -16,7 +17,7 @@ import java.util.Date;
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentInfoBO {
|
||||
public class OrderCommentInfoBO implements Serializable {
|
||||
|
||||
/**
|
||||
* 评论 id
|
||||
@@ -52,7 +53,7 @@ public class OrderCommentInfoBO {
|
||||
/**
|
||||
* 点赞数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
private Integer likeCount;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
|
||||
@@ -4,6 +4,7 @@ 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;
|
||||
|
||||
@@ -17,7 +18,7 @@ import java.util.List;
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentReplyPageBO {
|
||||
public class OrderCommentReplyPageBO implements Serializable {
|
||||
|
||||
/**
|
||||
* 评论回复总数
|
||||
|
||||
@@ -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-06-07 10:39
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentStateInfoPageBO implements Serializable {
|
||||
|
||||
/**
|
||||
* (待/已)评论总数
|
||||
*/
|
||||
private Integer total;
|
||||
|
||||
/**
|
||||
* 评论状态
|
||||
*/
|
||||
private List<OrderCommentStateInfoItem> orderCommentStateInfoItems;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public static class OrderCommentStateInfoItem{
|
||||
|
||||
/**
|
||||
* 订单 id
|
||||
*/
|
||||
private Integer orderId;
|
||||
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
private String orderNo;
|
||||
|
||||
/**
|
||||
* 商品 id
|
||||
*/
|
||||
private Integer productSpuId;
|
||||
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String productSpuName;
|
||||
|
||||
/**
|
||||
* 商品 sku id
|
||||
*/
|
||||
private Integer productSkuId;
|
||||
|
||||
/**
|
||||
* 商品 sku 属性
|
||||
*/
|
||||
private String productSkuAttrs;
|
||||
|
||||
/**
|
||||
* 商品 sku 价格
|
||||
*/
|
||||
private Integer productSkuPrice;
|
||||
|
||||
/**
|
||||
* 商品 sku url
|
||||
*/
|
||||
private String productSkuPicUrl;
|
||||
|
||||
/**
|
||||
* 订单评论状态
|
||||
*/
|
||||
private Integer commentState;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -55,7 +55,6 @@ public class OrderCommentCreateDTO implements Serializable {
|
||||
private String productSkuPicUrl;
|
||||
|
||||
@ApiModelProperty(value = "用户 id", required = true)
|
||||
@NotNull(message = "用户 id 不能为空")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "用户头像", required = true)
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package cn.iocoder.mall.order.api.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* 订单评论状态分页信息 query
|
||||
*
|
||||
* @author wtz
|
||||
* @time 2019-06-07 10:45
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderCommentStateInfoPageDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 用户 id
|
||||
*/
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 评论状态
|
||||
*/
|
||||
private Integer commentState;
|
||||
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
private Integer pageNo;
|
||||
|
||||
/**
|
||||
* 每页条数
|
||||
*/
|
||||
private Integer pageSize;
|
||||
}
|
||||
Reference in New Issue
Block a user