package org.springblade.system.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author bfhuange
 * @date 2024/8/27
 */
@Data
@Schema(description = "DeptListVO")
public class DeptListVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "主键id")
    private Long id;
    /**
     * 部门编码
     */
    @Schema(description = "部门编码")
    private String deptCode;
    /**
     * 机构名
     */
    @Schema(description = "机构名")
    private String deptName;
    /**
     * 父主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "父主键")
    private Long parentId;
    /**
     * 父部门编码
     */
    @Schema(description = "父部门编码")
    private String parentCode;
    /**
     * 部门类型
     */
    @Schema(description = "部门类型")
    private Integer deptCategory;
}
