package com.sckw.system.model.vo.res;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sckw.core.utils.LongToStringUtils;
import lombok.Data;

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

/**
 * 数据权限企业树节点
 *
 * @author cxf
 * @date 2026-03-26
 */
@Data
public class DataPermissionEntTreeResVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 企业ID
     */
    @JsonSerialize(using = LongToStringUtils.class)
    private Long id;

    /**
     * 上级企业ID
     */
    @JsonSerialize(using = LongToStringUtils.class)
    private Long pid;

    /**
     * 企业名称
     */
    private String firmName;

    /**
     * 子企业列表
     */
    private List<DataPermissionEntTreeResVo> children;

}
