Complete core functions #9

Merged
FatttSnake merged 171 commits from FatttSnake into dev 2024-02-23 11:56:35 +08:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 3735ded9f2 - Show all commits

View File

@@ -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())
}

View File

@@ -13,5 +13,5 @@ import top.fatweb.api.vo.permission.PowerSetVo
* @since 2023-10-25
*/
interface IPowerService : IService<Power> {
fun getAll(): PowerSetVo
fun getList(): PowerSetVo
}

View File

@@ -23,7 +23,7 @@ class PowerServiceImpl(
private val elementService: IElementService,
private val operationService: IOperationService
) : ServiceImpl<PowerMapper, Power>(), IPowerService {
override fun getAll() = PowerConverter.powerSetToPowerSetVo(PowerSet().apply {
override fun getList() = PowerConverter.powerSetToPowerSetVo(PowerSet().apply {
moduleList = moduleService.list()
menuList = menuService.list()
elementList = elementService.list()