/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package com.vci.ubcs.omd.vo; import com.fasterxml.jackson.annotation.JsonInclude; import com.vci.ubcs.omd.entity.Enum; import com.vci.ubcs.omd.entity.EnumItem; import com.vci.ubcs.starter.util.node.INodeOid; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.ArrayList; import java.util.List; /** * 枚举定义 视图实体类 * * @author yuxc * @since 2023-05-08 */ @Data @EqualsAndHashCode(callSuper = true) public class EnumVO extends Enum implements INodeOid { private static final long serialVersionUID = 1L; /** * 子孙节点 */ @JsonInclude(JsonInclude.Include.NON_EMPTY) private List children = new ArrayList<>(); /** * 是否有子孙节点 */ private Boolean hasChildren = false; /** * 子节点OID */ private String itemOid; /** * 子节点枚举编码 */ private String itemName; /** * 子节点枚举值 */ private String itemValue; /** * 子节点枚描述 */ private String itemDescription; @Override public String getParentOid() { return null; } @Override public List getChildren() { return this.children; } }