package com.cpop.mall.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author DB
 * @createTime 2023/10/26 17:13
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户评价订单")
public class OrderEvaluateBo implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 产品id
     */
    @NotBlank(message = "产品id不能为空")
    @ApiModelProperty(value = "产品id",required = true)
    private String productId;

    /**
     * 订单id
     */
    @NotBlank(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id",required = true)
    private String orderId;

    /**
     * 评价
     */
    @NotBlank(message = "评价不能为空")
    @ApiModelProperty(value = "评价",required = true)
    private String evaluate;

    /**
     * 星
     */
    @NotBlank(message = "星不能为空")
    @ApiModelProperty(value = "星",required = true)
    private Double start;
}
