We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
//第一个annotation @retention(AnnotationRetention.RUNTIME) @target(AnnotationTarget.FUNCTION) @MustBeDocumented
@before(invokeBy = [RoleCheck::class]) annotation class PreRole( val value: String, ) //第二个annotation @retention(AnnotationRetention.RUNTIME) @target(AnnotationTarget.FUNCTION) @MustBeDocumented
@before(invokeBy = [PermissionCheck::class]) annotation class PreAuthorize( val value: String, )
// @API("/api/log") class LogController : Resource() {
@GET("/list") @PreRole("admin") @PreAuthorize("log:list") suspend fun list() { //...... }
}
跟踪代码发现: 问题在NextServer.kt 第169行,beforeRouteHandlersTable[resourceUrl]?.get(httpMethod)?.plus(annotation)
The text was updated successfully, but these errors were encountered:
预计下版本解决。
Sorry, something went wrong.
已经在开发分支上修复:f6b5231
3.0.2.0-SNAPSHOT 版本已经更新了这个提交。
f6b5231
T-baby
No branches or pull requests
//第一个annotation
@retention(AnnotationRetention.RUNTIME)
@target(AnnotationTarget.FUNCTION)
@MustBeDocumented
@before(invokeBy = [RoleCheck::class])
annotation class PreRole(
val value: String,
)
//第二个annotation
@retention(AnnotationRetention.RUNTIME)
@target(AnnotationTarget.FUNCTION)
@MustBeDocumented
@before(invokeBy = [PermissionCheck::class])
annotation class PreAuthorize(
val value: String,
)
//
@API("/api/log")
class LogController : Resource() {
}
跟踪代码发现:
问题在NextServer.kt 第169行,beforeRouteHandlersTable[resourceUrl]?.get(httpMethod)?.plus(annotation)
The text was updated successfully, but these errors were encountered: