package com.kcim.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("责任中心对照视图对象")
public class CenterDepartmentVO {

    @JsonIgnore
    private Long id;

    private Long responsibilityId;

    private String responsibilityCode;

    private String responsibilityName;

//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DepartVO> departments;

    private Boolean isParent;

    private Integer isGatherCenter;

    @JsonIgnore
    private Long parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CenterDepartmentVO> child;
}
