package com.seer.teach.mall.request;

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

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

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

    @NotNull(message = "订单编号不能为空")
    @Schema(description = "订单编号", example = "1")
    private Long orderId;

    @NotNull(message = "子订单编号不能为空")
    @Schema(description = "子订单编号", example = "1")
    private Integer childOrderId;

    @NotEmpty(message = "评价项列表不能为空")
    @Schema(description="评价项列表")
    private List<GoodsCommentCreateReq> CommentItems;
}