This is an automated email from the ASF dual-hosted git repository. liuhongyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push: new b8e562d96b [type:refactor]Decouple apidoc module from rule and selector modules (#5685) b8e562d96b is described below commit b8e562d96b0d25702662015b53461c48e283bf9e Author: Yu Siheng <143899446+478...@users.noreply.github.com> AuthorDate: Tue Dec 31 16:43:54 2024 +0800 [type:refactor]Decouple apidoc module from rule and selector modules (#5685) * refactor admin : decouple apidoc from rule and selector * refactor admin : decouple apidoc from rule and selector * refactor admin : remove unused imports * trigger ci * refactor admin : remove unnecessary annotations. --------- Co-authored-by: xiaoyu <xia...@apache.org> Co-authored-by: aias00 <rok...@163.com> Co-authored-by: aias00 <liuhon...@apache.org> Co-authored-by: zhengpeng <847850...@qq.com> Co-authored-by: moremind <hefen...@apache.org> --- .../org/apache/shenyu/admin/service/impl/ApiServiceImpl.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java index 1cf994a5f9..0475650f1c 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java @@ -50,7 +50,6 @@ import org.apache.shenyu.admin.service.SelectorService; import org.apache.shenyu.admin.utils.ShenyuResultMessage; import org.apache.shenyu.common.constant.AdminConstants; import org.apache.shenyu.common.dto.RuleData; -import org.apache.shenyu.common.enums.ApiStateEnum; import org.apache.shenyu.common.utils.GsonUtils; import org.apache.shenyu.common.utils.UUIDUtils; import org.apache.shenyu.register.common.dto.ApiDocRegisterDTO; @@ -126,11 +125,6 @@ public class ApiServiceImpl implements ApiService { 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; } @@ -158,9 +152,6 @@ public class ApiServiceImpl implements ApiService { .build()).collect(Collectors.toList()); tagRelationMapper.batchInsert(tags); } - if (ApiStateEnum.PUBLISHED.getState() == apiDO.getState()) { - register(apiDO); - } } return ShenyuResultMessage.CREATE_SUCCESS; }