订单评价的接口

pull/1/head
wangtongzhou 2019-05-16 20:18:33 +08:00
parent b14169a747
commit 15a25ba5f7
7 changed files with 255 additions and 2 deletions

View File

@ -0,0 +1,51 @@
package cn.iocoder.mall.order.api;
import cn.iocoder.common.framework.vo.CommonResult;
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.OrderCommentReplyCreateBO;
import cn.iocoder.mall.order.api.dto.OrderCommentCreateDTO;
import cn.iocoder.mall.order.api.dto.OrderCommentReplyCreateDTO;
/**
*
*
* @author wtz
* @time 2019-05-14 22:10
*/
public interface OrderCommentService {
/**
*
* @param orderCommentCreateDTO
* @return
*/
CommonResult<OrderCommentCreateBO> createOrderComment(OrderCommentCreateDTO orderCommentCreateDTO);
/**
*
* @param orderCommentReplyCreateDTO
* @return
*/
CommonResult<OrderCommentReplyCreateBO> createOrderCommentReply(OrderCommentReplyCreateDTO orderCommentReplyCreateDTO);
/**
*
* @param productSpuId
* @return
*/
CommonResult<OrderCommentPageBO> getOrderCommentPage(Integer productSpuId);
/**
*
* @param commentId
* @return
*/
CommonResult<OrderCommentInfoBO> getOrderCommentInfo(Integer commentId);
}

View File

@ -0,0 +1,23 @@
package cn.iocoder.mall.order.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
/**
*
*
*
* @author wtz
* @time 2019-05-15 20:35
*
*/
@Data
@Accessors(chain = true)
public class OrderCommentCreateBO {
/**
* id
*/
private Integer id;
}

View File

@ -8,7 +8,7 @@ import java.util.List;
/**
*
*
*
*
* @author wtz
* @time 2019-05-16 18:40

View File

@ -17,7 +17,7 @@ import java.util.List;
*/
@Data
@Accessors(chain = true)
public class OrderCommentPageBo implements Serializable {
public class OrderCommentPageBO implements Serializable {
/**
*

View File

@ -0,0 +1,16 @@
package cn.iocoder.mall.order.api.bo;
/**
*
*
*
* @author wtz
* @time 2019-05-16 18:00:00
*/
public class OrderCommentReplyCreateBO {
/**
* id
*/
private Integer id;
}

View File

@ -0,0 +1,98 @@
package cn.iocoder.mall.order.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
*
*
* @author wtz
* @time 2019-05-15 20:42
*
*/
@Data
@Accessors(chain = true)
public class OrderCommentCreateDTO implements Serializable {
/**
* id
*/
private int orderId;
/**
*
*/
private String orderNo;
/**
* SPU id
*/
private int productSpuId;
/**
* SPU SPU
*/
private String productSpuName;
/**
* SKU id
*/
private int productSkuId;
/**
* SKU
*/
private String productSkuAttrs;
/**
* SKU
*/
private int productSkuPrice;
/**
* SKU
*/
private String productSkuPicUrl;
/**
* id
*/
private Integer userId;
/**
*
*/
private String userAvatar;
/**
*
*/
private String userNickName;
/**
*
*/
private Integer star;
/**
*
*/
private Integer productDescriptionStar;
/**
*
*/
private Integer logisticsStar;
/**
*
*/
private Integer merchantStar;
/**
*
*/
private String commentContent;
}

View File

@ -0,0 +1,65 @@
package cn.iocoder.mall.order.api.dto;
import java.io.Serializable;
/**
*
*
*
* @author wtz
* @time 2019-05-16 19:07
*
*/
public class OrderCommentReplyCreateDTO implements Serializable {
/**
* id
*/
private Integer commentId;
/**
* id
*/
private Integer parentId;
/**
* id
*/
private Integer parentUserId;
/**
*
*/
private String parentUserNickName;
/**
*
*/
private String parentUserAvatar;
/**
*
*/
private String replyContent;
/**
* id
*/
private Integer replyUserId;
/**
*
*/
private String replyUserNickName;
/**
*
*/
private String replyUserAvatar;
/**
*
*/
private Integer replyUserType;
}