/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.app.param;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value= "添加评论信息")
public class ProdCommParam {

    @ApiModelProperty(value = "订单号")
    @NotNull(message = "订单号不能为空")
    private String orderNumber;

    /**
     * 评价，0-5分
     */
    @ApiModelProperty(value = "评分，1-5分",required=true)
    @NotNull(message = "评分不能为空")
    private Integer score;

    @ApiModelProperty(value = "配送打包，1-5分",required=true)
    @NotNull(message = "配送打包不能为空")
    private Integer deliveryPack;

    @ApiModelProperty(value = "送货速度，1-5分",required=true)
    @NotNull(message = "送货速度不能为空")
    private Integer deliverySpeed;

    @ApiModelProperty(value = "配送员服务，1-5分",required=true)
    @NotNull(message = "配送员服务不能为空")
    private Integer deliveryService;

    @ApiModelProperty(value = "评论内容",required=true)
    @NotBlank(message = "评论内容不能为空")
    private String content;

    @ApiModelProperty(value = "评论图片, 用逗号分隔")
    private String pics;

    /**
     * 是否匿名(1:是  0:否)
     */
    @ApiModelProperty(value = "是否匿名(1:是  0:否) 默认为否")
    @NotNull(message = "是否匿名不能为空")
    private Integer isAnonymous;
}
