瀏覽代碼

feat :接入erp和double依赖

bilingfeng 2 年之前
父節點
當前提交
7faec4e107

+ 13 - 0
game-module/game-manage/pom.xml

@@ -43,6 +43,19 @@
             <artifactId>hutool-all</artifactId>
             <version>5.8.0.M1</version>
         </dependency>
+        <!-- erp权限 -->
+        <dependency>
+            <groupId>com.zanxiang.erp</groupId>
+            <artifactId>erp-security</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-spring-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-metadata-definition-protobuf</artifactId>
+        </dependency>
     </dependencies>
 
     <build>

+ 4 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/ManageApplication.java

@@ -1,15 +1,19 @@
 package com.zanxiang.manage;
 
 import lombok.extern.slf4j.Slf4j;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
 @Slf4j
 @EnableDiscoveryClient
 @SpringBootApplication
 @MapperScan({"com.zanxiang.mybatis.mapper", "com.zanxiang.manage.domain.mapper"})
+@EnableDubbo
+@EnableSwagger2
 public class ManageApplication {
 
     public static void main(String[] args) {

+ 0 - 1
game-module/game-manage/src/main/java/com/zanxiang/manage/service/Impl/GamePayWayServiceImpl.java

@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fasterxml.jackson.databind.util.JSONPObject;
 import com.zanxiang.common.enums.DeleteEnum;
 import com.zanxiang.common.enums.PayWayEnum;
 import com.zanxiang.common.enums.StatusEnum;

+ 24 - 0
game-module/game-manage/src/main/resources/bootstrap.yml

@@ -24,4 +24,28 @@ spring:
         shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
         max-retry: 10
 
+dubbo:
+  application:
+    name: game-manage-dubbo
+    register-mode: instance
+    qos-enable: false
+    qos-accept-foreign-ip: false
+    metadata-service-protocol: dubbo
+    metadata-service-port: 20881
+  registry:
+    address: nacos://118.178.187.109:8848
+    timeout: 3000
+    parameters:
+      namespace: DEV_game
+    group: GAME
+    use-as-metadata-center: false
+    use-as-config-center: false
+  protocol:
+    name: tri
+    port: -1
+  consumer:
+    check: false
+  scan:
+    base-packages: com.zanxiang.manage.controller
+