Skip to content

Commit

Permalink
[type:refactor]Decouple apidoc module from rule and selector modules (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Co-authored-by: aias00 <[email protected]>
Co-authored-by: aias00 <[email protected]>
Co-authored-by: zhengpeng <[email protected]>
Co-authored-by: moremind <[email protected]>
  • Loading branch information
6 people authored Dec 31, 2024
1 parent b18f4f9 commit b8e562d
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
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;
Expand Down Expand Up @@ -126,11 +125,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 +152,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 b8e562d

Please sign in to comment.