package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 部门实体。
 */
@Schema(description = "部门实体")
public class Dept {

    @Schema(description = "部门ID")
    private Long id;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "父部门ID")
    private Long parentId;

    @Schema(description = "排序号")
    private Integer sortOrder;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "状态：0-停用，1-启用")
    private Integer status;

    public Dept() {
    }

    public Dept(Long id, String deptName, Long parentId, Integer sortOrder, String leader, Integer status) {
        this.id = id;
        this.deptName = deptName;
        this.parentId = parentId;
        this.sortOrder = sortOrder;
        this.leader = leader;
        this.status = status;
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getDeptName() { return deptName; }
    public void setDeptName(String deptName) { this.deptName = deptName; }
    public Long getParentId() { return parentId; }
    public void setParentId(Long parentId) { this.parentId = parentId; }
    public Integer getSortOrder() { return sortOrder; }
    public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; }
    public String getLeader() { return leader; }
    public void setLeader(String leader) { this.leader = leader; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
}
