// Package dispatcher code generated by oapi sdk gen
/*
 * MIT License
 *
 * Copyright (c) 2022 Lark Technologies Pte. Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package dispatcher

import (
	"context"
	"github.com/larksuite/oapi-sdk-go/v3/service/corehr/v2"
)
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ApprovalGroupsUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ApprovalGroupsUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.approval_groups.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.approval_groups.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.approval_groups.updated_v2"] = larkcorehr.NewP2ApprovalGroupsUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CompanyCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2CompanyCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.company.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.company.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.company.created_v2"] = larkcorehr.NewP2CompanyCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CompanyDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2CompanyDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.company.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.company.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.company.deleted_v2"] = larkcorehr.NewP2CompanyDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CompanyUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2CompanyUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.company.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.company.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.company.updated_v2"] = larkcorehr.NewP2CompanyUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CostCenterCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2CostCenterCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.cost_center.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.cost_center.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.cost_center.created_v2"] = larkcorehr.NewP2CostCenterCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CostCenterDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2CostCenterDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.cost_center.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.cost_center.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.cost_center.deleted_v2"] = larkcorehr.NewP2CostCenterDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CostCenterUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2CostCenterUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.cost_center.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.cost_center.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.cost_center.updated_v2"] = larkcorehr.NewP2CostCenterUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CustomOrgCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2CustomOrgCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.custom_org.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.custom_org.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.custom_org.created_v2"] = larkcorehr.NewP2CustomOrgCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CustomOrgDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2CustomOrgDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.custom_org.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.custom_org.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.custom_org.deleted_v2"] = larkcorehr.NewP2CustomOrgDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2CustomOrgUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2CustomOrgUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.custom_org.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.custom_org.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.custom_org.updated_v2"] = larkcorehr.NewP2CustomOrgUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2DepartmentCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2DepartmentCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.department.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.department.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.department.created_v2"] = larkcorehr.NewP2DepartmentCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2DepartmentUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2DepartmentUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.department.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.department.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.department.updated_v2"] = larkcorehr.NewP2DepartmentUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2EmployeeDomainEventV2(handler func(ctx context.Context, event *larkcorehr.P2EmployeeDomainEventV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.employee.domain_event_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.employee.domain_event_v2")
	}
	dispatcher.eventType2EventHandler["corehr.employee.domain_event_v2"] = larkcorehr.NewP2EmployeeDomainEventV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobChangeStatusUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobChangeStatusUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_change.status_updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_change.status_updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_change.status_updated_v2"] = larkcorehr.NewP2JobChangeStatusUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobChangeUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobChangeUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_change.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_change.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_change.updated_v2"] = larkcorehr.NewP2JobChangeUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobFamilyCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobFamilyCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_family.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_family.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_family.created_v2"] = larkcorehr.NewP2JobFamilyCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobFamilyDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2JobFamilyDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_family.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_family.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_family.deleted_v2"] = larkcorehr.NewP2JobFamilyDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobFamilyUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobFamilyUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_family.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_family.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_family.updated_v2"] = larkcorehr.NewP2JobFamilyUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobGradeCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobGradeCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_grade.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_grade.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_grade.created_v2"] = larkcorehr.NewP2JobGradeCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobGradeDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2JobGradeDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_grade.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_grade.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_grade.deleted_v2"] = larkcorehr.NewP2JobGradeDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobGradeUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobGradeUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_grade.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_grade.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_grade.updated_v2"] = larkcorehr.NewP2JobGradeUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobLevelCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobLevelCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_level.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_level.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_level.created_v2"] = larkcorehr.NewP2JobLevelCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobLevelDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2JobLevelDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_level.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_level.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_level.deleted_v2"] = larkcorehr.NewP2JobLevelDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2JobLevelUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2JobLevelUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.job_level.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.job_level.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.job_level.updated_v2"] = larkcorehr.NewP2JobLevelUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2LocationCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2LocationCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.location.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.location.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.location.created_v2"] = larkcorehr.NewP2LocationCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2LocationDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2LocationDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.location.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.location.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.location.deleted_v2"] = larkcorehr.NewP2LocationDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2LocationUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2LocationUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.location.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.location.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.location.updated_v2"] = larkcorehr.NewP2LocationUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2OffboardingChecklistUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2OffboardingChecklistUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.offboarding.checklist_updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.offboarding.checklist_updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.offboarding.checklist_updated_v2"] = larkcorehr.NewP2OffboardingChecklistUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2OffboardingStatusUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2OffboardingStatusUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.offboarding.status_updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.offboarding.status_updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.offboarding.status_updated_v2"] = larkcorehr.NewP2OffboardingStatusUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2OffboardingUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2OffboardingUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.offboarding.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.offboarding.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.offboarding.updated_v2"] = larkcorehr.NewP2OffboardingUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PathwayCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2PathwayCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.pathway.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.pathway.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.pathway.created_v2"] = larkcorehr.NewP2PathwayCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PathwayDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2PathwayDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.pathway.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.pathway.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.pathway.deleted_v2"] = larkcorehr.NewP2PathwayDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PathwayUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2PathwayUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.pathway.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.pathway.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.pathway.updated_v2"] = larkcorehr.NewP2PathwayUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PositionCreatedV2(handler func(ctx context.Context, event *larkcorehr.P2PositionCreatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.position.created_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.position.created_v2")
	}
	dispatcher.eventType2EventHandler["corehr.position.created_v2"] = larkcorehr.NewP2PositionCreatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PositionDeletedV2(handler func(ctx context.Context, event *larkcorehr.P2PositionDeletedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.position.deleted_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.position.deleted_v2")
	}
	dispatcher.eventType2EventHandler["corehr.position.deleted_v2"] = larkcorehr.NewP2PositionDeletedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PositionUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2PositionUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.position.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.position.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.position.updated_v2"] = larkcorehr.NewP2PositionUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2PreHireOnboardingTaskChangedV2(handler func(ctx context.Context, event *larkcorehr.P2PreHireOnboardingTaskChangedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.pre_hire.onboarding_task_changed_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.pre_hire.onboarding_task_changed_v2")
	}
	dispatcher.eventType2EventHandler["corehr.pre_hire.onboarding_task_changed_v2"] = larkcorehr.NewP2PreHireOnboardingTaskChangedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProbationUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProbationUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.probation.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.probation.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.probation.updated_v2"] = larkcorehr.NewP2ProbationUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process.updated_v2"] = larkcorehr.NewP2ProcessUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessApproverUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessApproverUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process.approver.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process.approver.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process.approver.updated_v2"] = larkcorehr.NewP2ProcessApproverUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessCcUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessCcUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process.cc.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process.cc.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process.cc.updated_v2"] = larkcorehr.NewP2ProcessCcUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessNodeUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessNodeUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process.node.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process.node.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process.node.updated_v2"] = larkcorehr.NewP2ProcessNodeUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessStatusUpdateV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessStatusUpdateV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process.status.update_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process.status.update_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process.status.update_v2"] = larkcorehr.NewP2ProcessStatusUpdateV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2ProcessCommentInfoUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2ProcessCommentInfoUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.process_comment_info.updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.process_comment_info.updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.process_comment_info.updated_v2"] = larkcorehr.NewP2ProcessCommentInfoUpdatedV2Handler(handler)
	return dispatcher
}
// 
//
// - 
//
// - 事件描述文档链接:
func ( dispatcher * EventDispatcher ) OnP2SignatureFileStatusUpdatedV2(handler func(ctx context.Context, event *larkcorehr.P2SignatureFileStatusUpdatedV2) error) * EventDispatcher{
	_, existed := dispatcher.eventType2EventHandler["corehr.signature_file.status_updated_v2"]
	if existed {
		panic("event: multiple handler registrations for " + "corehr.signature_file.status_updated_v2")
	}
	dispatcher.eventType2EventHandler["corehr.signature_file.status_updated_v2"] = larkcorehr.NewP2SignatureFileStatusUpdatedV2Handler(handler)
	return dispatcher
}