Skip to content

Commit

Permalink
refactor admin : decouple apidoc from rule and selector
Browse files Browse the repository at this point in the history
  • Loading branch information
478320 committed Oct 1, 2024
1 parent e33f551 commit 7f98cd7
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ private String update(final ApiDTO apiDTO) {
tagRelationMapper.deleteByApiId(apiDO.getId());
tagRelationMapper.batchInsert(tags);
}
if (ApiStateEnum.PUBLISHED.getState() == apiDO.getState()) {
register(apiDO);
} else if (ApiStateEnum.OFFLINE.getState() == apiDO.getState()) {
removeRegister(apiDO);
}
}
return ShenyuResultMessage.UPDATE_SUCCESS;
}
Expand Down Expand Up @@ -158,9 +153,6 @@ private String create(final ApiDTO apiDTO) {
.build()).collect(Collectors.toList());
tagRelationMapper.batchInsert(tags);
}
if (ApiStateEnum.PUBLISHED.getState() == apiDO.getState()) {
register(apiDO);
}
}
return ShenyuResultMessage.CREATE_SUCCESS;
}
Expand Down

0 comments on commit 7f98cd7

Please sign in to comment.