package com.xunhong.erp.turbo.rbac.infrastructure.convert;


import com.xunhong.erp.turbo.rbac.domain.entity.RoleMenu;
import com.xunhong.erp.turbo.rbac.infrastructure.entity.RoleMenuDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;

/**
 * @author shenyifei
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface RoleMenuConvert {

	@Mapping(target = "menu", source = "menuDO")
	RoleMenu toRoleMenu(RoleMenuDO roleMenuDO);
}
