package com.muzhi.dingtalk.test.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Department部门列表", description = "部门列表")
public class Department {

    @ApiModelProperty(value = "部门id")
    private String id;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "父部门id，根部门为1")
    private String parentid;

    @ApiModelProperty(value = "是否同步创建一个关联此部门的企业群，true表示是，false表示不是")
    private String createDeptGroup;

    @ApiModelProperty(value = "当群已经创建后，是否有新人加入部门会自动加入该群，true表示是，false表示不是")
    private String autoAddUser;

    @ApiModelProperty(value = "部门自定义字段")
    private String ext;
}
