Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

方法变更为public,方便重写,使用自定义反序列化方法 #212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Inmord
Copy link

@Inmord Inmord commented Aug 1, 2024

目标:jackson等方式解析请求体,方法改为public,此时用户可以更方便自定义CustomHandler继承NotificationHandler,重写parseBody方法,直接调用CustomHandler#parse方法即可(免去使用SDK自带jackson版本反序列化,免去升级、降级jackson版本)
下图为目前版本重写方式,比较繁琐:
image

下图为pr合并、方法变更为public后,可直接重写parse方法,即可实现自定义反序列化:
image

下图为解析请求提使用方式,直接调用子类parse即可:
image

Inmord added 2 commits August 1, 2024 18:14
…写parseBody方法,直接调用CustomHandler#parse方法即可(免去使用SDK自带json版本反序列化)
…写parseBody方法,直接调用CustomHandler#parse方法即可(免去使用SDK自带json版本反序列化)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant