package com.engine.salary.entity.siaccount.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author weaver_cl
 * 
 * @Date 2022/4/12
 * @Version V1.0
 **/
@Data
@Builder
public class Permission {

    private boolean visible;

    private boolean disabled;

    public Permission() {
        this.visible = Boolean.TRUE;
        this.disabled = Boolean.FALSE;
    }

    public Permission(boolean visible) {
        this.visible = Boolean.TRUE;
        this.disabled = Boolean.FALSE;
        this.visible = visible;
    }

    public Permission(boolean visible, boolean disabled) {
        this.visible = Boolean.TRUE;
        this.disabled = Boolean.FALSE;
        this.visible = visible;
        this.disabled = disabled;
    }
}
