类的使用
com.lark.oapi.service.helpdesk.v1.model.Notification.Builder
使用Notification.Builder的程序包
-
com.lark.oapi.service.helpdesk.v1.model中Notification.Builder的使用
修饰符和类型方法说明Notification.Builder.chatList(NotificationChat[] chatList) 非必填,push推送到的会话列表(群)非必填,创建时间(毫秒时间戳)Notification.Builder.createUser(NotificationUser createUser) 非必填,创建人Notification.Builder.departmentList(NotificationDepartment[] departmentList) 非必填,push推送到的部门信息列表非必填,预留扩展字段非必填,创建成功后返回必填,任务名称static Notification.BuilderNotification.newBuilder()Notification.Builder.newStaffScopeDepartmentList(NotificationDepartment[] newStaffScopeDepartmentList) 非必填,新人入职生效部门列表Notification.Builder.newStaffScopeType(Integer newStaffScopeType) 非必填,;新人入职范围类型(push_type为1时生效) 0:组织内所有新人 1:组织内特定的部门(new_staff_scope_department_list 字段不能为空)Notification.Builder.pushContent(String pushContent) 必填,推送内容,详见:https://open.feishu.cn/tool/cardbuilder?Notification.Builder.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不能为空)Notification.Builder.readUserCount(Integer readUserCount) 非必填,已读用户总数非必填,推送任务触发时间(毫秒时间戳)Notification.Builder.sentUserCount(Integer sentUserCount) 非必填,已推送用户总数非必填,创建成功后返回Notification.Builder.targetUserCount(Integer targetUserCount) 非必填,目标推送用户总数非必填,更新时间(毫秒时间戳)Notification.Builder.updateUser(NotificationUser updateUser) 非必填,更新用户Notification.Builder.userList(NotificationUser[] userList) 非必填,push推送到成员列表