package org.qinan.safetyeval.client.dto;

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

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 机构信息启用/禁用命令
 */
@Data
public class OrgInfoUpdateStateCmd {

    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "机构ID不能为空")
    private Long id;

    @ApiModelProperty(value = "状态(0启用1禁用)")
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态值无效")
    @Max(value = 1, message = "状态值无效")
    private Integer state;
}
