Browse Source

忽略展示不想暴露的服务

feature/big-screen
Maksim 5 years ago
parent
commit
a70c2e2c6f
  1. 3
      designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

3
designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

@ -250,8 +250,7 @@ public class EnvChangeEntrance {
FineLoggerFactory.getLogger().info("workspace service {} get annotation failed", clazz); FineLoggerFactory.getLogger().info("workspace service {} get annotation failed", clazz);
continue; continue;
} }
//一些不想暴露给用户的服务,可以在注解中不添加description,检测但不做提示,如固件回传 if(workspaceAPI.ignore()){
if(StringUtils.isEmpty(workspaceAPI.description())){
continue; continue;
} }
String descriptionOfCN = InterProviderFactory.getProvider().getLocText(workspaceAPI.description()); String descriptionOfCN = InterProviderFactory.getProvider().getLocText(workspaceAPI.description());

Loading…
Cancel
Save