Optimize code
This commit is contained in:
@@ -18,6 +18,6 @@ class PowerController(
|
||||
private val powerService: IPowerService
|
||||
) {
|
||||
@Operation(summary = "获取权限列表")
|
||||
@GetMapping
|
||||
fun get() = ResponseResult.databaseSuccess(data = powerService.getAll())
|
||||
@GetMapping("/list")
|
||||
fun getList() = ResponseResult.databaseSuccess(data = powerService.getList())
|
||||
}
|
||||
Reference in New Issue
Block a user