diff --git a/src/main/kotlin/top/fatweb/api/controller/permission/PowerController.kt b/src/main/kotlin/top/fatweb/api/controller/permission/PowerController.kt index 567ebd3..422c835 100644 --- a/src/main/kotlin/top/fatweb/api/controller/permission/PowerController.kt +++ b/src/main/kotlin/top/fatweb/api/controller/permission/PowerController.kt @@ -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()) } \ No newline at end of file diff --git a/src/main/kotlin/top/fatweb/api/service/permission/IPowerService.kt b/src/main/kotlin/top/fatweb/api/service/permission/IPowerService.kt index 0f0993a..3ae9e61 100644 --- a/src/main/kotlin/top/fatweb/api/service/permission/IPowerService.kt +++ b/src/main/kotlin/top/fatweb/api/service/permission/IPowerService.kt @@ -2,7 +2,7 @@ package top.fatweb.api.service.permission import com.baomidou.mybatisplus.extension.service.IService import top.fatweb.api.entity.permission.Power -import top.fatweb.api.entity.permission.PowerSet +import top.fatweb.api.vo.permission.PowerSetVo /** *
@@ -13,5 +13,5 @@ import top.fatweb.api.entity.permission.PowerSet
* @since 2023-10-25
*/
interface IPowerService : IService