package com.yunzhupaas.base.model.base;

import io.swagger.v3.oas.annotations.media.Schema;
import com.yunzhupaas.constant.YunzhupaasConst;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：云筑产品开发平台组
 * @version: V3.1.0
 * @copyright 深圳市乐程软件有限公司
 * @date ：2022/6/21 15:50
 */
@Data
public class SystemListVO implements Serializable {

    @Schema(description = "主键")
    private String id;

    @Schema(description = "名称")
    private String fullName;

    @Schema(description = "编码")
    private String enCode;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "说明")
    private String description;

    @Schema(description = "排序码")
    private Long sortCode;

    @Schema(description = "有效标志")
    private Integer enabledMark;

    @Schema(description = "扩展属性")
    private String propertyJson;

    @Schema(description = "是否主系统")
    private Integer isMain;
    @Schema(description = "是否为开发平台")
    private boolean mainSystem;
    @Schema(description = "导航图片")
    private String navigationIcon;
    @Schema(description = "Logo图片")
    private String workLogoIcon;

    @Schema(description = "禁用")
    private Boolean disabled = false;

    public boolean isMainSystem() {
        if (YunzhupaasConst.MAIN_SYSTEM_CODE.equals(this.getEnCode())) {
            return true;
        }
        return false;
    }

}
