diff --git a/src/main/java/neatlogic/module/cmdb/api/resourcecenter/config/RebuildResourceEntityApi.java b/src/main/java/neatlogic/module/cmdb/api/resourcecenter/config/RebuildResourceEntityApi.java deleted file mode 100644 index 43b202d40e62a4f5d7a8fe8bdaab6e6b483c09b9..0000000000000000000000000000000000000000 --- a/src/main/java/neatlogic/module/cmdb/api/resourcecenter/config/RebuildResourceEntityApi.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright(c) 2023 NeatLogic Co., Ltd. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package neatlogic.module.cmdb.api.resourcecenter.config; - -import neatlogic.framework.auth.core.AuthAction; -import neatlogic.framework.cmdb.dto.resourcecenter.config.ResourceEntityVo; -import neatlogic.framework.restful.annotation.Description; -import neatlogic.framework.restful.annotation.OperationType; -import neatlogic.framework.restful.constvalue.OperationTypeEnum; -import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; -import neatlogic.framework.cmdb.auth.label.RESOURCECENTER_MODIFY; -import neatlogic.module.cmdb.service.resourcecenter.resource.IResourceCenterResourceService; -import com.alibaba.fastjson.JSONObject; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import javax.annotation.Resource; -import java.util.List; - -/** - * @author linbq - * @since 2022/07/20 17:19 - **/ -@Service -@AuthAction(action = RESOURCECENTER_MODIFY.class) -@OperationType(type = OperationTypeEnum.OPERATE) -@Transactional -public class RebuildResourceEntityApi extends PrivateApiComponentBase { - @Resource - private IResourceCenterResourceService resourceCenterResourceService; - - @Override - public String getToken() { - return "resourcecenter/resourceentity/rebuild"; - } - - @Override - public String getName() { - return "重建所有资源视图"; - } - - @Override - public String getConfig() { - return null; - } - - @Description(desc = "重建所有资源视图接口") - @Override - public Object myDoService(JSONObject paramObj) throws Exception { - List resourceEntityList = resourceCenterResourceService.rebuildResourceEntity(); - return resourceEntityList; - } -}