package com.starry.admin.modules.order.module.vo;

import com.starry.common.enums.EvaluateHiddenState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import lombok.Data;

/**
 * 订单评价状态修改对象
 *
 * @author admin
 */
@Data
@ApiModel(value = "评价状态修改参数", description = "修改订单评价显示状态的请求参数")
public class PlayOrderEvaluateEditStateVo {

    /**
     * UUID
     */
    @NotBlank(message = "id不能为空")
    @ApiModelProperty(value = "评价ID", required = true, example = "1", notes = "需要修改状态的评价ID")
    private String id;

    /**
     * 数据是否隐藏（0:显示，1:隐藏）
     * @see EvaluateHiddenState
     */
    @NotBlank(message = "是否隐藏不能为空")
    @Pattern(regexp = "[01]", message = "是否隐藏数据错误,只能位0或者1")
    @ApiModelProperty(value = "是否隐藏", required = true, example = "1", notes = "数据是否隐藏，0:显示，1:隐藏。使用 EvaluateHiddenState 枚举值")
    private String hidden;
}
