package net.northking.cctp.platform.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("选项视图")
public class OptionVO {
    /**
     * 标签
     */
    @ApiModelProperty(value = "标签", example = "名称")
    private String label;

    /**
     * 值
     */
    @ApiModelProperty(value = "值", example = "ID或CODE")
    private String value;

    @ApiModelProperty(value = "是否禁用", example = "false")
    private Boolean disabled;

    public OptionVO(String label, String value) {
        this.label = label;
        this.value = value;
    }
}
