package com.ycl.platform.domain.result.HK;
|
|
import com.ycl.platform.domain.result.BaseResult;
|
import lombok.Data;
|
import org.springframework.data.mongodb.core.index.TextIndexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.List;
|
|
/**
|
* 组织树查询
|
*
|
* @author gonghl
|
*/
|
@Data
|
@Document(collection = "hk_organization_tree")
|
public class OrganizationTreeResult extends BaseResult {
|
|
/**
|
* 组织列表
|
*/
|
private List<OrganizationNode> orgList;
|
|
// 内嵌对象定义
|
|
/**
|
* 组织节点信息
|
*/
|
@Data
|
public static class OrganizationNode {
|
/**
|
* 组织编号
|
*/
|
private String orgCode;
|
|
/**
|
* 组织名称
|
*/
|
private String orgName;
|
|
/**
|
* 父组织编号
|
*/
|
private String parentOrgCode;
|
|
/**
|
* 组织级别。根组织节点为1,依次往下
|
*/
|
private int orgLevel;
|
|
/**
|
* 组织节点顺序
|
*/
|
private int sort;
|
}
|
}
|