From 446c9e65c02129ea79d5c0c1ea17d96f57201341 Mon Sep 17 00:00:00 2001 From: linbangquan <1437892690@qq.com> Date: Sun, 19 Nov 2023 11:15:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE-=E5=B1=8F=E8=94=BD=E9=87=8D=E5=BB=BA?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=A7=86=E5=9B=BE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1025881949044736]视图设置-屏蔽重建所有视图按钮 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1025881949044736 --- .../config/RebuildResourceEntityApi.java | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 src/main/java/neatlogic/module/cmdb/api/resourcecenter/config/RebuildResourceEntityApi.java 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 43b202d4..00000000 --- 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; - } -} -- Gitee