类 Department.Builder

java.lang.Object
com.lark.oapi.service.corehr.v2.model.Department.Builder
封闭类:
Department

public static class Department.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • id

      public Department.Builder id(String id)
      部门 ID

      示例值:4719456877659520852

      参数:
      id -
      返回:
    • versionId

      public Department.Builder versionId(String versionId)
      部门记录版本 ID

      示例值:6890452208593372611

      参数:
      versionId -
      返回:
    • departmentName

      public Department.Builder departmentName(I18n[] departmentName)
      部门名称

      示例值:

      参数:
      departmentName -
      返回:
    • subType

      public Department.Builder subType(Enum subType)
      部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

      示例值:

      参数:
      subType -
      返回:
    • parentDepartmentId

      public Department.Builder parentDepartmentId(String parentDepartmentId)
      上级部门 ID

      示例值:4719456877659520111

      参数:
      parentDepartmentId -
      返回:
    • manager

      public Department.Builder manager(String manager)
      部门负责人雇佣 ID,枚举值及详细信息可通过【查询员工信息】接口查询获得

      示例值:6893013238632416777

      参数:
      manager -
      返回:
    • treeOrder

      public Department.Builder treeOrder(String treeOrder)
      树形排序,代表同层级的部门排序序号

      示例值:001000

      参数:
      treeOrder -
      返回:
    • listOrder

      public Department.Builder listOrder(String listOrder)
      列表排序,代表所有部门的混排序号

      示例值:001000-001000

      参数:
      listOrder -
      返回:
    • code

      public Department.Builder code(String code)
      编码

      示例值:D00000456

      参数:
      code -
      返回:
    • isRoot

      public Department.Builder isRoot(Boolean isRoot)
      是否根部门

      示例值:false

      参数:
      isRoot -
      返回:
    • isConfidential

      public Department.Builder isConfidential(Boolean isConfidential)
      是否保密

      示例值:false

      参数:
      isConfidential -
      返回:
    • effectiveDate

      public Department.Builder effectiveDate(String effectiveDate)
      生效日期

      示例值:2020-05-01

      参数:
      effectiveDate -
      返回:
    • expirationDate

      public Department.Builder expirationDate(String expirationDate)
      失效日期

      示例值:2020-05-02

      参数:
      expirationDate -
      返回:
    • active

      public Department.Builder active(Boolean active)
      是否启用

      示例值:true

      参数:
      active -
      返回:
    • description

      public Department.Builder description(I18n[] description)
      描述

      示例值:

      参数:
      description -
      返回:
    • customFields

      public Department.Builder customFields(CustomFieldData[] customFields)
      自定义字段

      示例值:

      参数:
      customFields -
      返回:
    • staffingModel

      public Department.Builder staffingModel(Enum staffingModel)
      是否使用职务

      示例值:

      参数:
      staffingModel -
      返回:
    • build

      public Department build()