Add get power set
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package top.fatweb.api.converter.permission
|
||||
|
||||
import top.fatweb.api.entity.permission.Element
|
||||
import top.fatweb.api.vo.permission.ElementVo
|
||||
|
||||
object ElementConverter {
|
||||
fun elementToElementVo(element: Element) = ElementVo(
|
||||
id = element.id,
|
||||
name = element.name,
|
||||
powerId = element.powerId,
|
||||
parentId = element.parentId,
|
||||
menuId = element.menuId
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user