package com.hdkj.lt.core.sys.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hdkj.lt.utils.tree.TreeNode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author luorui
 * @date 2025/6/23 15:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StruTreeCacheDTO implements TreeNode<StruTreeCacheDTO>,Serializable {

    //机构编码
    private Long struId;
    //机构类型
    private String struType;
    //组织别名
    private String organAlias;
    //上级机构编码
    private Long parentId;
    //级别
    private Integer struLevel;
    //成员局部排序值
    private Integer struOrder;
    //ISC组织机构ID
    private String iscOrgId;
    //简称
    private String name;
    //子节点
    private List<StruTreeCacheDTO> children;

    @Override
    public Long getId() {
        return struId;
    }
}
