Skip to content

Commit

Permalink
修改权限校验接口定义
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jul 21, 2019
1 parent 637e3b5 commit 50d0315
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 117 deletions.
13 changes: 1 addition & 12 deletions src/main/kotlin/io/zhudy/kitty/service/AuthorityService.kt
Expand Up @@ -24,19 +24,8 @@ import io.zhudy.kitty.auth.UserContext
*/
interface AuthorityService {

/**
* @property uri 请求的`uri`
* @property method 请求的`method`
* @property contentType 请求的`content-type`
*/
data class Request(
val uri: String,
val method: String,
val contentType: String?
)

/**
* 校验用户是否有指定的访问权限。
*/
fun checkAuthority(request: Request, uc: UserContext): Boolean
fun checkAuthority(params: Map<String, Any?>, uc: UserContext): Boolean
}
105 changes: 0 additions & 105 deletions src/main/kotlin/io/zhudy/kitty/web/mvc/handlers.kt

This file was deleted.

0 comments on commit 50d0315

Please sign in to comment.