package com.bcxin.api.interfaces.tenants.responses;

import com.bcxin.api.interfaces.ResponseAbstract;
import com.bcxin.api.interfaces.enums.DepartImPermissionType;
import lombok.Getter;

import java.util.Collection;

@Getter
public class DepartmentGetResponse extends ResponseAbstract {
    private final String id;
    private final String name;
    private final String parentId;
    private final int displayOrder;
    private final int totalMember;
    private final DepartImPermissionType permissionType;
    private final Collection<String> allowedDepartIds;

    private final int level;

    public DepartmentGetResponse(String id, String name,
                                 String parentId, int displayOrder,
                                 int totalMember,
                                 DepartImPermissionType permissionType,
                                 Collection<String> allowedDepartIds,
                                 int level) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.displayOrder = displayOrder;
        this.totalMember = totalMember;
        this.permissionType = permissionType;
        this.allowedDepartIds = allowedDepartIds;
        this.level = level;
    }
}
