package co.yixiang.yshop.module.order.controller.app.order.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @ClassName ProductReplyParam
 * @Author hupeng <610796224@qq.com>
 * @Date 2023/6/20
 **/
@Getter
@Setter
public class AppProductReplyParam {

    @NotBlank(message = "评论不能为空")
    @Size(min = 1, max = 200,message = "长度超过了限制")
    @Schema(description = "商品评论内容", required = true)
    private String comment;

    @Schema(description = "商品评论图片地址", required = true)
    private String pics;

    @NotBlank(message = "请为商品评分")
    @Schema(description = "商品评分", required = true)
    private String productScore;

    @NotBlank(message = "请为商品评分")
    @Schema(description = "服务评分", required = true)
    private String serviceScore;

    @NotBlank(message = "参数有误")
    @Schema(description = "参数有误", required = true)
    private String unique;
}
