Optimize code
This commit is contained in:
@@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.tags.Tag
|
||||
import org.springframework.web.bind.annotation.GetMapping
|
||||
import org.springframework.web.bind.annotation.RequestMapping
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
import top.fatweb.api.converter.permission.PowerConverter
|
||||
import top.fatweb.api.entity.common.ResponseResult
|
||||
import top.fatweb.api.service.permission.IPowerService
|
||||
|
||||
@@ -20,5 +19,5 @@ class PowerController(
|
||||
) {
|
||||
@Operation(summary = "获取权限列表")
|
||||
@GetMapping
|
||||
fun get() = ResponseResult.databaseSuccess(data = PowerConverter.powerSetToPowerSetVo(powerService.getAll()))
|
||||
fun get() = ResponseResult.databaseSuccess(data = powerService.getAll())
|
||||
}
|
||||
Reference in New Issue
Block a user