浏览代码

删除无用文件

bihuisong 3 月之前
父节点
当前提交
8190874118

+ 0 - 22
src/main/java/com/sooka/sponest/monitor/remoteapi/EnableSookaFeignClients.java

@@ -1,22 +0,0 @@
-package com.sooka.sponest.monitor.remoteapi;
-
-import org.springframework.cloud.openfeign.EnableFeignClients;
-
-import java.lang.annotation.*;
-
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-@Documented
-@EnableFeignClients
-public @interface EnableSookaFeignClients {
-
-    String[] value() default {};
-
-    String[] basePackages() default {"com.ruoyi", "com.sooka" };
-
-    Class<?>[] basePackageClasses() default {};
-
-    Class<?>[] defaultConfiguration() default {};
-
-    Class<?>[] clients() default {};
-}

+ 0 - 4
src/main/java/com/sooka/sponest/monitor/remoteapi/RemoveApiBaseService.java

@@ -1,4 +0,0 @@
-package com.sooka.sponest.monitor.remoteapi;
-
-public interface RemoveApiBaseService {
-}

+ 0 - 39
src/main/java/com/sooka/sponest/monitor/remoteapi/fallback/system/RemoteSystemBaseServiceFallbackFactory.java

@@ -1,39 +0,0 @@
-package com.sooka.sponest.monitor.remoteapi.fallback.system;
-
-import com.ruoyi.common.core.domain.R;
-import com.ruoyi.system.api.domain.SysDept;
-import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
-import com.sooka.sponest.monitor.remoteapi.service.system.RemoteService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.cloud.openfeign.FallbackFactory;
-import org.springframework.stereotype.Component;
-
-/**
- * @program: ruoyi
- * @description: yy
- * @author: yy
- * @create: 2022-06-16 11:05
- **/
-@Component
-public class RemoteSystemBaseServiceFallbackFactory implements FallbackFactory<RemoteService> {
-
-    private static final Logger log = LoggerFactory.getLogger(RemoteUserFallbackFactory.class);
-
-    @Override
-    public RemoteService create(Throwable cause) {
-        log.error("消息中心-服务调用失败:{}", cause.getMessage());
-
-        return new RemoteService() {
-
-            /**
-             * 根据用户名查询dept_id, parent_id, ancestors, dept_name
-             */
-            @Override
-            public R<SysDept> findDeptIdByUserName(String userName) {
-                return null;
-            }
-
-        };
-    }
-}

+ 0 - 51
src/main/java/com/sooka/sponest/monitor/remoteapi/service/ModulesServiceNameContants.java

@@ -1,51 +0,0 @@
-package com.sooka.sponest.monitor.remoteapi.service;
-
-import com.ruoyi.common.core.constant.ServiceNameConstants;
-
-public class ModulesServiceNameContants extends ServiceNameConstants {
-
-    //综合治理中心中心
-   public static final String CENTER_COMPREHENSIVE = "sooka-sponest-center-comprehensive";
-
-   //数据中心
-   public static final String CENTER_DATA = "sooka-sponest-center-data";
-
-   //测评中心
-   public static final String CENTER_EVALUATION = "sooka-sponest-center-evaluation";
-
-    //事件中心
-    public static final String CENTER_EVENT = "sooka-sponest-center-event";
-
-    //森林防火中心
-    public static final String CENTER_FIRE = "sooka-sponest-center-fire";
-
-    //监控中心
-    public static final String CENTER_MONITOR = "sooka-sponest-center-monitor";
-
-    //一体化平台
-    public static final String CENTER_ONEST = "sooka-sponest-center-onest";
-
-    //病虫灾害中心
-    public static final String CENTER_PESTS = "sooka-sponest-center-pests";
-
-    //秸秆禁烧中心
-    public static final String CENTER_STRAW = "sooka-sponest-center-straw";
-
-    //任务中心
-    public static final String CENTER_TASK = "sooka-sponest-center-task";
-
-    //运管中心
-    public static final String CENTER_TRANMANAGER = "sooka-sponest-center-tranmanager";
-    //文件中心
-    public static final String CENTER_FILE = "sooka-sponest-file";
-    /**
-     * 系统模块的serviceid
-     */
-    public static final String SYSTEM_SERVICE = "sooka-sponest-system";
-
-    public static final String MIDDLE_GROUND_SERVICE = "sooka-middleGround";
-
-    //执法
-    public static final String CENTER_LAWENFORCEMENT = "sooka-sponest-lawenforcement";
-
-}

+ 0 - 22
src/main/java/com/sooka/sponest/monitor/remoteapi/service/system/RemoteService.java

@@ -1,22 +0,0 @@
-package com.sooka.sponest.monitor.remoteapi.service.system;
-
-import com.ruoyi.common.core.domain.R;
-import com.ruoyi.system.api.domain.SysDept;
-import com.sooka.sponest.monitor.remoteapi.fallback.system.RemoteSystemBaseServiceFallbackFactory;
-import com.sooka.sponest.monitor.remoteapi.service.ModulesServiceNameContants;
-import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-
-@FeignClient(contextId = "remoteService", fallbackFactory = RemoteSystemBaseServiceFallbackFactory.class,value = ModulesServiceNameContants.SYSTEM_SERVICE)
-public interface RemoteService {
-
-    /**
-     * 根据用户名查询dept_id, parent_id, ancestors, dept_name
-     */
-    @GetMapping(value = "/dept/findDeptIdByUserName/{userName}")
-    R<SysDept> findDeptIdByUserName(@PathVariable("userName") String userName);
-
-
-
-}