package cn.iocoder.yudao.module.product.controller.admin.comment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class ProductCommentBaseVO {

    @Schema(description = "评价人名称", required = true, example = "张三")
    @NotNull(message = "评价人名称不能为空")
    private String userNickname;

    @Schema(description = "评价人头像", required = true)
    @NotNull(message = "评价人头像不能为空")
    private String userAvatar;

    @Schema(description = "商品SPU编号", required = true, example = "29502")
    @NotNull(message = "商品SPU编号不能为空")
    private Long spuId;

    @Schema(description = "商品SPU名称", required = true, example = "赵六")
    @NotNull(message = "商品SPU名称不能为空")
    private String spuName;

    @Schema(description = "商品SKU编号", required = true, example = "3082")
    @NotNull(message = "商品SKU编号不能为空")
    private Long skuId;

    @Schema(description = "评分星级 1-5分", required = true)
    @NotNull(message = "评分星级 1-5分不能为空")
    private Integer scores;

    @Schema(description = "描述星级 1-5分", required = true)
    @NotNull(message = "描述星级 1-5分不能为空")
    private Integer descriptionScores;

    @Schema(description = "服务星级 1-5分", required = true)
    @NotNull(message = "服务星级 1-5分不能为空")
    private Integer benefitScores;

    @Schema(description = "配送星级 1-5分", required = true)
    @NotNull(message = "配送星级 1-5分不能为空")
    private Integer deliveryScores;

    @Schema(description = "评论内容", required = true)
    @NotNull(message = "评论内容不能为空")
    private String content;

    @Schema(description = "评论图片地址数组，以逗号分隔最多上传9张", required = true)
    @Size(max = 9, message = "评论图片地址数组长度不能超过9张")
    private List<String> picUrls;

}
