All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.erupt.cloud.node.handler.ViaMenuValueNodeCtrl Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
package xyz.erupt.cloud.node.handler;

import org.springframework.stereotype.Component;
import xyz.erupt.annotation.expr.ExprBool;
import xyz.erupt.cloud.node.service.ServerRemoteService;
import xyz.erupt.core.context.MetaContext;

import javax.annotation.Resource;

/**
 * @author YuePeng
 * date 2022/3/8 22:19
 */
@Component
public class ViaMenuValueNodeCtrl implements ExprBool.ExprHandler {

    @Resource
    private ServerRemoteService serverRemoteService;

    @Override
    public boolean handler(boolean expr, String[] params) {
        return serverRemoteService.getMenuCodePermission(params[0]);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy