package com.zbkj.common.response;

import com.zbkj.common.vo.ReplyReviewTagsVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 商品评价数量和好评度

 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StoreProductReplayCountResponse对象", description="产品评价数量和好评度")
public class StoreProductReplayCountResponse implements Serializable {

    private static final long serialVersionUID=1L;

    public StoreProductReplayCountResponse() {}
    public StoreProductReplayCountResponse(Long sumCount, Long goodCount, Long inCount, Long poorCount, String replyChance, Integer replyStar, List<ReplyReviewTagsVo> reviewTags) {
        this.sumCount = sumCount;
//        this.goodCount = goodCount;
//        this.inCount = inCount;
//        this.poorCount = poorCount;
//        this.replyChance = replyChance;
//        this.replyStar = replyStar;
        this.reviewTags = reviewTags;
    }

    public StoreProductReplayCountResponse(Long sumCount, Long picsCount, List<ReplyReviewTagsVo> reviewTags) {
        this.sumCount = sumCount;
        this.picsCount = picsCount;
        this.reviewTags = reviewTags;
    }

    @ApiModelProperty(value = "评论总数")
    private Long sumCount;

//    @ApiModelProperty(value = "好评总数")
//    private Long goodCount;
//
//    @ApiModelProperty(value = "中评总数")
//    private Long inCount;
//
//    @ApiModelProperty(value = "差评总数")
//    private Long poorCount;
//
//    @ApiModelProperty(value = "好评率")
//    private String replyChance;
//
//    @ApiModelProperty(value = "评分星数")
//    private Integer replyStar;

    @ApiModelProperty(value = "有图片评论数")
    private Long picsCount;

    @ApiModelProperty(value = "评论标签")
    private List<ReplyReviewTagsVo> reviewTags;

}
