sofastack / sofa-dashboard

Dashboard of SOFAStack.
Apache License 2.0
93 stars 51 forks source link

优化关联应用功能 #61

Open ashlee618 opened 3 years ago

ashlee618 commented 3 years ago

使用knife4j实现接口可视化功能

选择knife4j的原因

后续问题

  1. 现在这个版本是没有对接口功能添加文字描述的,在后续版本会,会对实体、接口添加必要的文字描述,帮助理解。
  2. 目前是对所有接口进行展示,后续可能根据业务,对部分接口隐藏。
sofastack-bot[bot] commented 3 years ago

Hi @ashlee618, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

ashlee618 commented 3 years ago

优化关联应用功能

以前的版本存在可以重复关联的bug image

并且可以关联在zk中不存在的应用 image (图中并没有芜湖2,但是可以进行关联)

    public boolean isRelatedByModuleAndApp(int mId, String appName) {
        return arkDao.queryRelationByModuleIdAndAppName(mId, appName).size() > 0;
    }

这里用的并非是最优雅的解决办法,用的是最简单粗暴的,有待优化。