feat(Middleware, Route): 递归处理父类中间件和 DisableDefaultRoute 注解#126
Merged
walkor merged 3 commits intowalkor:masterfrom Mar 26, 2025
Merged
feat(Middleware, Route): 递归处理父类中间件和 DisableDefaultRoute 注解#126walkor merged 3 commits intowalkor:masterfrom
walkor merged 3 commits intowalkor:masterfrom
Conversation
- 添加了对父类中间件的处理逻辑 - 通过反射机制获取父类,并调用自身方法进行递归处理 - 这个改动使得中间件可以继承并正确处理父类的中间件
- 添加了对父类中间件的处理逻辑 - 通过反射机制获取父类,并调用自身方法进行递归处理 - 这个改动使得中间件可以继承并正确处理父类的中间件
- 将 DisableDefaultRoute 注解检查逻辑抽离到独立的方法中 - 增加对父类的递归检查,以支持继承链中的注解
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.