42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.yunhai.campusnotice.model.bsch;
|
||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
import lombok.Data;
|
||
|
||
import java.util.List;
|
||
|
||
/**
|
||
* bschclass 组织树节点 DTO(/oapi/SchGroup/GetTeaTree、GetStuTree,TeaTreeVO 视图)。
|
||
* type=1 组节点(学校/学段/年级/班级、教师组),type=2 人员叶子(学生/教师)。
|
||
*/
|
||
@Data
|
||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||
public class SchTreeNodeDto {
|
||
|
||
/** 节点ID(学校/学段/年级/班级为对应业务ID,叶子为学生 stuId 或教师 teaId) */
|
||
private Integer id;
|
||
|
||
/** 节点名称 */
|
||
private String name;
|
||
|
||
/** 父节点ID(根节点为 0) */
|
||
private Integer pid;
|
||
|
||
/** 排序号(组取 sort,叶子固定 0) */
|
||
private Integer no;
|
||
|
||
/** 1=组节点,2=人员叶子 */
|
||
private Integer type;
|
||
|
||
/** 是否父节点(组 true,叶子 false) */
|
||
@JsonProperty("isParent")
|
||
private Boolean isParent;
|
||
|
||
/** 头像(当前固定空串) */
|
||
private String photo;
|
||
|
||
/** 子节点(叶子为 null,组节点非 null) */
|
||
private List<SchTreeNodeDto> children;
|
||
}
|