/** 安装 */
 @RequestMapping(value = "/install", method = RequestMethod.POST)
 public @ResponseBody Result install() {
   if (!plugin.getIsInstalled()) {
     PluginConfig pluginConfig = pluginConfigService.newEntity();
     pluginConfig.setPluginId(plugin.getId());
     pluginConfig.setIsEnabled(false);
     pluginConfigService.save(pluginConfig);
   }
   return Result.success();
 }
 /**
  * 获取LOGO
  *
  * @return LOGO
  */
 public String getLogo() {
   PluginConfig pluginConfig = getPluginConfig();
   return pluginConfig != null ? pluginConfig.getAttribute(ICON_ATTRIBUTE_NAME) : null;
 }
 /**
  * 获取描述
  *
  * @return 描述
  */
 public String getDescription() {
   PluginConfig pluginConfig = getPluginConfig();
   return pluginConfig != null ? pluginConfig.getAttribute(DESCRIPTION_ATTRIBUTE_NAME) : null;
 }
 /**
  * 获取客户端密钥
  *
  * @return
  */
 public String getClientSecret() {
   PluginConfig pluginConfig = getPluginConfig();
   return pluginConfig != null ? pluginConfig.getAttribute(CLIENT_SECRET_ATTRIBUTE_NAME) : null;
 }