The requirepermissions in each controller method is inconsistent with the required permissions path. Is it possible to use Aspect to obtain the name of the class object, complete the permissions path, and verify the permissions see code
@RequestMapping(value = "/delete", method - RequestMethod.POST)
@RequiresPermissions("sys:" + getNameT(clazz) + ":delete")
public BaseResult<?> delete(String[] ids) {
try {
return baseservice.delete(ids);
} catch (Exception e) {
e.printStackTrace();
return BaseResult.fail();
}
}
public static String getNameT(Class<?> cls){
return cls.getSimpleName().toLowerCase();
}