【8.0.5】更新一个基础类,用来通用响应下拉列表的选择

pull/60/head
fengshuonan 2024-01-29 14:10:21 +08:00
parent b5bc1d3ffa
commit cae3519e7f
1 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,90 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.rule.pojo.dict;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.tree.factory.base.AbstractTreeNode;
import lombok.Data;
import java.util.List;
/**
* id,name,codepojo
*
* @author fengshuonan
* @since 2024-01-29 14:03
*/
@Data
public class SimpleTreeDict implements AbstractTreeNode<SimpleTreeDict> {
/**
* id
*/
@ChineseDescription("业务id")
private String id;
/**
*
*/
@ChineseDescription("业务名称")
private String name;
/**
*
*/
@ChineseDescription("业务编码")
private String code;
/**
* id
*/
@ChineseDescription("业务父级id")
private String parentId;
/**
*
*/
@ChineseDescription("子集节点")
private List<SimpleTreeDict> children;
public SimpleTreeDict() {
}
@Override
public String getNodeId() {
return id;
}
@Override
public String getNodeParentId() {
return parentId;
}
@Override
public void setChildrenNodes(List<SimpleTreeDict> childrenNodes) {
this.children = childrenNodes;
}
}