package com.seer.teach.mall.request;

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

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

@Schema(description = "商品评价创建 Request")
@Data
public class GoodsCommentCreateReq {


    @Schema(description = "是否匿名", example = "Y")
    @NotNull(message = "是否匿名不能为空")
    private String isAnonymous;

    @Schema(description = "交易订单项编号", example = "1")
    @NotNull(message = "交易订单项编号不能为空")
    private Integer orderItemId;

    @NotNull(message = "商品 SKU 编号不能为空")
    private Integer skuId;

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

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

    @Schema(description = "评论内容", example = "有点意思")
    @NotNull(message = "评论内容不能为空")
    private String content;

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

}