类 Notification.Builder
- 封闭类:
Notification
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()chatList(NotificationChat[] chatList) 非必填,push推送到的会话列表(群)非必填,创建时间(毫秒时间戳)createUser(NotificationUser createUser) 非必填,创建人departmentList(NotificationDepartment[] departmentList) 非必填,push推送到的部门信息列表非必填,预留扩展字段非必填,创建成功后返回必填,任务名称newStaffScopeDepartmentList(NotificationDepartment[] newStaffScopeDepartmentList) 非必填,新人入职生效部门列表newStaffScopeType(Integer newStaffScopeType) 非必填,;新人入职范围类型(push_type为1时生效) 0:组织内所有新人 1:组织内特定的部门(new_staff_scope_department_list 字段不能为空)pushContent(String pushContent) 必填,推送内容,详见:https://open.feishu.cn/tool/cardbuilder?pushScopeType(Integer pushScopeType) 必填,;推送范围(服务台私信) 0:组织内全部成员(user_list和department_list必须为空) 1:不推送任何成员(user_list和department_list必须为空,chat_list不可为空) 2:推送到部分成员(user_list或department_list不能为空) 3:入职新人 以上四种状态,chat_list都相对独立,只有在推送范围为1时,必须需要设置chat_list必填,;0(定时推送:push_scope不能等于3) 1(新人入职推送:push_scope必须等于1或者3;new_staff_scope_type不能为空)readUserCount(Integer readUserCount) 非必填,已读用户总数非必填,推送任务触发时间(毫秒时间戳)sentUserCount(Integer sentUserCount) 非必填,已推送用户总数非必填,创建成功后返回targetUserCount(Integer targetUserCount) 非必填,目标推送用户总数非必填,更新时间(毫秒时间戳)updateUser(NotificationUser updateUser) 非必填,更新用户userList(NotificationUser[] userList) 非必填,push推送到成员列表
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
id
非必填,创建成功后返回示例值:6981801914270744596
- 参数:
id-- 返回:
-
jobName
必填,任务名称示例值:测试推送任务
- 参数:
jobName-- 返回:
-
status
非必填,创建成功后返回示例值:0
- 参数:
status-- 返回:
-
createUser
非必填,创建人示例值:{"avatar_url":"","name":"","user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}
- 参数:
createUser-- 返回:
-
createdAt
非必填,创建时间(毫秒时间戳)示例值:1626332244719
- 参数:
createdAt-- 返回:
-
updateUser
非必填,更新用户示例值:{"avatar_url":"","name":"","user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}
- 参数:
updateUser-- 返回:
-
updatedAt
非必填,更新时间(毫秒时间戳)示例值:1626332244719
- 参数:
updatedAt-- 返回:
-
targetUserCount
非必填,目标推送用户总数示例值:1
- 参数:
targetUserCount-- 返回:
-
sentUserCount
非必填,已推送用户总数示例值:1
- 参数:
sentUserCount-- 返回:
-
readUserCount
非必填,已读用户总数示例值:1
- 参数:
readUserCount-- 返回:
-
sendAt
非必填,推送任务触发时间(毫秒时间戳)示例值:1626332244719
- 参数:
sendAt-- 返回:
-
pushContent
必填,推送内容,详见:https://open.feishu.cn/tool/cardbuilder?from=howtoguide示例值:{ \"config\": { \"wide_screen_mode\": true }, \"elements\": [ { \"tag\": \"div\", \"text\": { \"tag\": \"lark_md\", \"content\": \"[飞书](https://www.feishu.cn)整合即时沟通、日历、音视频会议、云文档、云盘、工作台等功能于一体,成就组织和个人,更高效、更愉悦。\" } } ] }
- 参数:
pushContent-- 返回:
-
pushType
必填,;0(定时推送:push_scope不能等于3) 1(新人入职推送:push_scope必须等于1或者3;new_staff_scope_type不能为空)示例值:0
- 参数:
pushType-- 返回:
-
pushScopeType
必填,;推送范围(服务台私信) 0:组织内全部成员(user_list和department_list必须为空) 1:不推送任何成员(user_list和department_list必须为空,chat_list不可为空) 2:推送到部分成员(user_list或department_list不能为空) 3:入职新人 以上四种状态,chat_list都相对独立,只有在推送范围为1时,必须需要设置chat_list示例值:0
- 参数:
pushScopeType-- 返回:
-
newStaffScopeType
非必填,;新人入职范围类型(push_type为1时生效) 0:组织内所有新人 1:组织内特定的部门(new_staff_scope_department_list 字段不能为空)示例值:0
- 参数:
newStaffScopeType-- 返回:
-
newStaffScopeDepartmentList
public Notification.Builder newStaffScopeDepartmentList(NotificationDepartment[] newStaffScopeDepartmentList) 非必填,新人入职生效部门列表示例值:[{"department_id":"od_7c1a2815c9846b5e518b950de0e62de8"}]
- 参数:
newStaffScopeDepartmentList-- 返回:
-
userList
非必填,push推送到成员列表示例值:[{"user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}]
- 参数:
userList-- 返回:
-
departmentList
非必填,push推送到的部门信息列表示例值:[{"department_id":"od_7c1a2815c9846b5e518b950de0e62de8"}]
- 参数:
departmentList-- 返回:
-
chatList
非必填,push推送到的会话列表(群)示例值:[{"chat_id":"oc_7c1a2815c9846b5e518b950de0e62de8"}]
- 参数:
chatList-- 返回:
-
ext
非必填,预留扩展字段示例值:{}
- 参数:
ext-- 返回:
-
build
-