Bladeren bron

添加satoken工具类

李进 2 jaren geleden
bovenliggende
commit
163adca6ca

+ 4 - 4
device-api-service/pom.xml

@@ -23,20 +23,20 @@
             <artifactId>device-api</artifactId>
             <version>1.0</version>
         </dependency>
+
         <dependency>
             <groupId>com.xy</groupId>
-            <artifactId>authorize-api</artifactId>
+            <artifactId>xy-redis</artifactId>
             <version>1.0</version>
         </dependency>
-
         <dependency>
             <groupId>com.xy</groupId>
-            <artifactId>xy-redis</artifactId>
+            <artifactId>xy-mp</artifactId>
             <version>1.0</version>
         </dependency>
         <dependency>
             <groupId>com.xy</groupId>
-            <artifactId>xy-mp</artifactId>
+            <artifactId>xy-satoken</artifactId>
             <version>1.0</version>
         </dependency>
     </dependencies>

+ 1 - 4
device-api-service/src/main/java/com/xy/DeviceServiceImpl.java

@@ -1,6 +1,5 @@
 package com.xy;
 
-import com.xy.service.AuthorizeService;
 import com.xy.service.DeviceService;
 import lombok.AllArgsConstructor;
 import org.springframework.stereotype.Service;
@@ -9,11 +8,9 @@ import org.springframework.stereotype.Service;
 @AllArgsConstructor
 public class DeviceServiceImpl implements DeviceService {
 
-    private AuthorizeService authorizeService;
-
     @Override
     public void deviceTest() {
         System.out.println("deviceTest");
-        authorizeService.authorizeTest();
+
     }
 }

+ 0 - 5
device-start/pom.xml

@@ -17,11 +17,6 @@
             <artifactId>device-api-service</artifactId>
             <version>1.0</version>
         </dependency>
-        <dependency>
-            <groupId>com.xy</groupId>
-            <artifactId>authorize-api-cloud</artifactId>
-            <version>1.0</version>
-        </dependency>
     </dependencies>
 
     <build>

+ 1 - 1
device-start/src/main/resources/bootstrap.yml

@@ -10,6 +10,6 @@ cloud:
   center:
     url: 119.96.213.127:9007
     config:
-      shared-configs: redis.yaml,mysql.yaml
+      shared-configs: redis.yaml,mysql.yaml,sa-token.yaml
   service:
     name: device