package com.ema.admin.modules.system.converter;


import com.ema.admin.modules.system.entity.SysRole;
import com.ema.admin.modules.system.vo.SysMenuVo;
import com.ema.admin.modules.system.vo.SysRoleInfoVo;
import com.ema.admin.modules.system.vo.SysRoleSaveVo;
import com.ema.common.mapstruct.MyMapStructMapper;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring", uses = MyMapStructMapper.class)
public interface SysRoleConverter {

    SysRole toSysRole(SysRoleSaveVo sysRole);

    SysRoleInfoVo toSysRoleInfoVo(SysRole sysRole, List<SysMenuVo> menuTree);
}
