类 ScopeGroup.Builder

java.lang.Object
com.lark.oapi.service.attendance.v1.model.ScopeGroup.Builder
封闭类:
ScopeGroup

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

    • Builder

      public Builder()
  • 方法详细资料

    • scopeValueType

      public ScopeGroup.Builder scopeValueType(Integer scopeValueType)
      类型: 1: 部门 2:人员 3:国家地区 4:员工类型 5:工作城市 6:职级 7:序列 8:职务(企业版)9:工时制度(企业版) 100:自定义字段(企业版)

      示例值:1

      参数:
      scopeValueType -
      返回:
    • operationType

      public ScopeGroup.Builder operationType(Integer operationType)
      范围类型(是否包含)

      示例值:1

      参数:
      operationType -
      返回:
    • right

      public ScopeGroup.Builder right(ScopeValue[] right)
      如果是人员/部门类型 不需要使用该字段

      示例值:

      参数:
      right -
      返回:
    • memberIds

      public ScopeGroup.Builder memberIds(String[] memberIds)
      部门/人员id列表(具体类型根据scope_value_type判断)

      示例值:

      参数:
      memberIds -
      返回:
    • customFieldID

      public ScopeGroup.Builder customFieldID(String customFieldID)
      企业版自定义字段唯一键 ID, 需要从飞书人事那边获取

      示例值:123213123

      参数:
      customFieldID -
      返回:
    • customFieldObjType

      public ScopeGroup.Builder customFieldObjType(String customFieldObjType)
      企业版自定义字段对象类型 "employment":主数据对象,员工雇佣信息 , "person":主数据对象,个人

      示例值:employment

      参数:
      customFieldObjType -
      返回:
    • build

      public ScopeGroup build()