package com.zhongshu.card.client.model.school;

import com.zhongshu.card.client.model.base.SuperModel;
import com.zhongshu.card.client.utils.ITree;
import com.zhongshu.card.client.type.DataState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @author TRX
 * @date 2024/6/3
 */
@Data
public class CollegeModel extends SuperModel implements ITree<CollegeModel>, Serializable {

    @Schema(description = "院级名称")
    private String name;

    @Schema(description = "院级编码")
    private String code;

    @Schema(description = "院级状态")
    private DataState state = DataState.Enable;

    @Schema(description = "上级ID")
    private String parentId;

    @Schema(description = "子层级")
    private List<CollegeModel> children = new ArrayList<>();
}
