Bläddra i källkod

feat : 架构初始化代码提交

bilingfeng 1 år sedan
förälder
incheckning
76c73fd66a
23 ändrade filer med 962 tillägg och 41 borttagningar
  1. 0 15
      game-module/game-sdk/src/main/java/com/zanxiang/sdk/config/RestTemplateConfig.java
  2. 0 26
      game-module/game-sdk/src/main/java/com/zanxiang/sdk/domain/params/ProductPayParam.java
  3. 19 0
      game-platform/game-platform-base/pom.xml
  4. 141 0
      game-platform/game-platform-serve/pom.xml
  5. 35 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/GamePlatformApplication.java
  6. 28 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/MybatisPlusConfig.java
  7. 42 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/RestTemplateConfig.java
  8. 48 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/SwaggerConfig.java
  9. 37 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/controller/PlatformDeYangController.java
  10. 41 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/controller/api/PlatformDeYangApiController.java
  11. 12 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/dao/mapper/PlatformDeYangOrderMapper.java
  12. 12 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/dao/mapper/PlatformDeYangUserMapper.java
  13. 84 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/dto/PlatformDeYangOrderDTO.java
  14. 99 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/dto/PlatformDeYangUserDTO.java
  15. 109 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/entity/PlatformDeYangOrder.java
  16. 123 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/entity/PlatformDeYangUser.java
  17. 12 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/IPlatformDeYangOrderService.java
  18. 12 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/IPlatformDeYangUserService.java
  19. 18 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/impl/PlatformDeYangOrderServiceImpl.java
  20. 18 0
      game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/impl/PlatformDeYangUserServiceImpl.java
  21. 47 0
      game-platform/game-platform-serve/src/main/resources/bootstrap.yml
  22. 24 0
      game-platform/pom.xml
  23. 1 0
      pom.xml

+ 0 - 15
game-module/game-sdk/src/main/java/com/zanxiang/sdk/config/RestTemplateConfig.java

@@ -15,20 +15,5 @@ public class RestTemplateConfig {
     @Bean
     public RestTemplate restTemplate() {
         return new RestTemplate();
-//        SimpleClientHttpRequestFactory httpRequestFactory = new SimpleClientHttpRequestFactory();
-//        SocketAddress address = new InetSocketAddress("localhost", 8888);
-//        Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
-//        httpRequestFactory.setProxy(proxy);
-//        RestTemplate restTemplate = new RestTemplate(httpRequestFactory);
-
-
-        // 实体类序列化化 java.time包的问题
-        /*List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
-        MappingJackson2HttpMessageConverter jsonMessageConverter = new MappingJackson2HttpMessageConverter();
-        jsonMessageConverter.setObjectMapper(JsonUtil.JACKSON);
-        messageConverters.add(jsonMessageConverter);
-        restTemplate.setMessageConverters(messageConverters);*/
-
-//        return restTemplate;
     }
 }

+ 0 - 26
game-module/game-sdk/src/main/java/com/zanxiang/sdk/domain/params/ProductPayParam.java

@@ -83,32 +83,6 @@ public class ProductPayParam {
     @NotBlank(message = "角色id不可为空")
     private String roleId;
 
-    /**
-     * 角色名称
-     */
-    @ApiModelProperty(notes = "角色名称")
-    @NotBlank(message = "角色名称不可为空")
-    private String roleName;
-
-    /**
-     * 角色等级
-     */
-    @ApiModelProperty(notes = "角色等级")
-    @NotNull(message = "角色等级不可为空")
-    private Long roleLevel;
-
-    /**
-     * 角色VIP等级
-     */
-    @ApiModelProperty(notes = "角色VIP等级")
-    private Long roleVipLevel;
-
-    /**
-     * SDK订单id,(米大师充值完成调支付的时候传回)
-     */
-    @ApiModelProperty(notes = "SDK订单id,(米大师充值完成调支付的时候传回)")
-    private String sourceOrderId;
-
     /**
      * CP订单id
      */

+ 19 - 0
game-platform/game-platform-base/pom.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>game-platform</artifactId>
+        <groupId>com.zanxiang.game</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>game-platform-base</artifactId>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 141 - 0
game-platform/game-platform-serve/pom.xml

@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>game-platform</artifactId>
+        <groupId>com.zanxiang.game</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>game-platform-serve</artifactId>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter</artifactId>
+        </dependency>
+        <!-- spring boot默认不去扫描 bootstrap.yml文件了 -->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bootstrap</artifactId>
+        </dependency>
+        <!-- SpringBoot start -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <!-- nacos配置中心 默认的 nacos-client 2.0.3有 bug -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>com.alibaba.nacos</groupId>
+                    <artifactId>nacos-client</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <!-- nacos注册中心 -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>com.alibaba.nacos</groupId>
+                    <artifactId>nacos-client</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba.nacos</groupId>
+            <artifactId>nacos-client</artifactId>
+        </dependency>
+        <!-- dubbo -->
+        <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>
+        <dependency>
+            <groupId>com.zanxiang.module</groupId>
+            <artifactId>zx-web</artifactId>
+        </dependency>
+        <!-- Mybatis Plus -->
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+        </dependency>
+        <!-- Mysql Connector -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+        </dependency>
+        <!-- swagger2 -->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+            <version>2.9.2</version>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>2.9.2</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <!-- 不发布到 maven仓库 -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <version>2.8.2</version>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.1</version>
+                <configuration>
+                    <source>8</source>
+                    <target>8</target>
+                    <encoding>${project.build.sourceEncoding}</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <version>2.5.14</version>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 35 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/GamePlatformApplication.java

@@ -0,0 +1,35 @@
+package com.zanxiang.game.platform.serve;
+
+import lombok.extern.slf4j.Slf4j;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-19
+ * @description : 启动类
+ */
+@Slf4j
+@EnableDiscoveryClient
+@SpringBootApplication
+@Configuration
+@EnableDubbo
+@EnableScheduling
+public class GamePlatformApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(GamePlatformApplication.class, args);
+        System.out.println("游戏第三方平台数据服务启动成功 ( ´・・)ノ(._.`) \n" +
+                " ______  __     __     \n" +
+                "/_____/\\/__/\\ /__/\\    \n" +
+                "\\:::__\\/\\ \\::\\\\:.\\ \\   \n" +
+                "   /: /  \\_\\::_\\:_\\/   \n" +
+                "  /::/___  _\\/__\\_\\_/\\ \n" +
+                " /_:/____/\\\\ \\ \\ \\::\\ \\\n" +
+                " \\_______\\/ \\_\\/  \\__\\/\n");
+    }
+}

+ 28 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/MybatisPlusConfig.java

@@ -0,0 +1,28 @@
+package com.zanxiang.game.platform.serve.config;
+
+import com.baomidou.mybatisplus.annotation.DbType;
+import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
+import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * @author bilingfeng
+ */
+@Configuration
+@EnableTransactionManagement
+@MapperScan("com.zanxiang.game.serve.dao.mapper")
+public class MybatisPlusConfig {
+
+    /**
+     * 分页插件
+     */
+    @Bean
+    public MybatisPlusInterceptor mybatisPlusInterceptor() {
+        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
+        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
+        return interceptor;
+    }
+}

+ 42 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/RestTemplateConfig.java

@@ -0,0 +1,42 @@
+package com.zanxiang.game.platform.serve.config;
+
+import com.zanxiang.module.util.JsonUtil;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.client.ClientHttpResponse;
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
+import org.springframework.web.client.ResponseErrorHandler;
+import org.springframework.web.client.RestTemplate;
+
+import java.io.IOException;
+
+/**
+ * @author bilingfeng
+ */
+@Configuration
+public class RestTemplateConfig {
+
+    @Bean
+    public RestTemplate restTemplate() {
+        RestTemplate restTemplate = new RestTemplate();
+        // java.time包序列化问题
+        MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter();
+        jsonConverter.setObjectMapper(JsonUtil.JACKSON);
+        restTemplate.getMessageConverters().add(0, jsonConverter);
+        // 非 2xx直接抛异常的问题
+        restTemplate.setErrorHandler(new RestTemplateErrorHandler());
+        return restTemplate;
+    }
+
+    public static class RestTemplateErrorHandler implements ResponseErrorHandler {
+        @Override
+        public boolean hasError(ClientHttpResponse response) throws IOException {
+            return false;
+        }
+
+        @Override
+        public void handleError(ClientHttpResponse response) throws IOException {
+
+        }
+    }
+}

+ 48 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/config/SwaggerConfig.java

@@ -0,0 +1,48 @@
+package com.zanxiang.game.platform.serve.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.builders.PathSelectors;
+import springfox.documentation.builders.RequestHandlerSelectors;
+import springfox.documentation.service.ApiInfo;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spring.web.plugins.Docket;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
+
+/**
+ * @author : lingfeng
+ * @time : 2022-3-31
+ * @description : Swagger2 配置
+ */
+@Configuration
+@EnableSwagger2
+public class SwaggerConfig {
+
+    /**
+     * 包扫描
+     */
+    @Bean
+    public Docket createRestApi() {
+        return new Docket(DocumentationType.SWAGGER_2)
+                .useDefaultResponseMessages(false)
+                .apiInfo(apiInfo())
+                .select()
+                .apis(RequestHandlerSelectors
+                        .basePackage("com.zanxiang.game.platform.serve"))
+                .paths(PathSelectors.any())
+                .build();
+    }
+
+    /**
+     * api文档构造
+     *
+     * @return : 返回api模板
+     */
+    private ApiInfo apiInfo() {
+        return new ApiInfoBuilder()
+                .title("游戏第三方平台数据服务")
+                .version("1.0")
+                .build();
+    }
+}

+ 37 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/controller/PlatformDeYangController.java

@@ -0,0 +1,37 @@
+package com.zanxiang.game.platform.serve.controller;
+
+import com.zanxiang.module.util.pojo.ResultVO;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬接口
+ */
+@Api(tags = {"通用分组"})
+@Slf4j
+@RestController
+@RequestMapping("/deYang/game")
+public class PlatformDeYangController {
+
+    @ApiOperation(value = "用户信息同步接口")
+    @GetMapping("/user")
+    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
+    public ResultVO<Boolean> syncUserInfo() {
+        return ResultVO.ok(Boolean.FALSE);
+    }
+
+    @ApiOperation(value = "订单信息同步接口")
+    @GetMapping("/order")
+    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
+    public ResultVO<Boolean> syncOrderInfo() {
+        return ResultVO.ok(Boolean.FALSE);
+    }
+}

+ 41 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/controller/api/PlatformDeYangApiController.java

@@ -0,0 +1,41 @@
+package com.zanxiang.game.platform.serve.controller.api;
+
+import com.zanxiang.game.platform.serve.pojo.dto.PlatformDeYangOrderDTO;
+import com.zanxiang.game.platform.serve.pojo.dto.PlatformDeYangUserDTO;
+import com.zanxiang.module.util.pojo.ResultVO;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬接口
+ */
+@Api(tags = {"通用分组"})
+@Slf4j
+@RestController
+@RequestMapping("/api/deYang/game")
+public class PlatformDeYangApiController {
+
+    @ApiOperation(value = "用户信息推送接口")
+    @PostMapping("/user")
+    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
+    public ResultVO<Boolean> pushUserInfo(@RequestBody PlatformDeYangUserDTO userDTO) {
+        return ResultVO.ok(Boolean.FALSE);
+    }
+
+    @ApiOperation(value = "订单信息推送接口")
+    @PostMapping("/order")
+    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
+    public ResultVO<Boolean> pushOrderInfo(@RequestBody PlatformDeYangOrderDTO orderDTO) {
+        return ResultVO.ok(Boolean.FALSE);
+    }
+
+}

+ 12 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/dao/mapper/PlatformDeYangOrderMapper.java

@@ -0,0 +1,12 @@
+package com.zanxiang.game.platform.serve.dao.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangOrder;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : ${description}
+ */
+public interface PlatformDeYangOrderMapper extends BaseMapper<PlatformDeYangOrder> {
+}

+ 12 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/dao/mapper/PlatformDeYangUserMapper.java

@@ -0,0 +1,12 @@
+package com.zanxiang.game.platform.serve.dao.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangUser;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : ${description}
+ */
+public interface PlatformDeYangUserMapper extends BaseMapper<PlatformDeYangUser> {
+}

+ 84 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/dto/PlatformDeYangOrderDTO.java

@@ -0,0 +1,84 @@
+package com.zanxiang.game.platform.serve.pojo.dto;
+
+import lombok.Data;
+
+import java.time.LocalDateTime;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬订单
+ */
+@Data
+public class PlatformDeYangOrderDTO {
+
+    /**
+     * 订单id
+     */
+    private String orderId;
+
+    /**
+     * openId
+     */
+    private String openId;
+
+    /**
+     * 状态
+     */
+    private Integer status;
+
+    /**
+     * 金额(单位:分)
+     */
+    private Long amount;
+
+    /**
+     * 下单时间
+     */
+    private LocalDateTime createdTime;
+
+    /**
+     * 支付时间
+     */
+    private LocalDateTime payTime;
+
+    /**
+     * 是否首充
+     */
+    private Boolean isFirst;
+
+    /**
+     * 游戏角色名
+     */
+    private String roleName;
+
+    /**
+     * 游戏区服
+     */
+    private String severName;
+
+    /**
+     * 商户订单号
+     */
+    private String merchantNumber;
+
+    /**
+     * 商户类型
+     */
+    private String merchantType;
+
+    /**
+     * 游戏商品ID
+     */
+    private String productId;
+
+    /**
+     * 游戏商品名称
+     */
+    private String productName;
+
+    /**
+     * 游戏名称
+     */
+    private String gameName;
+}

+ 99 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/dto/PlatformDeYangUserDTO.java

@@ -0,0 +1,99 @@
+package com.zanxiang.game.platform.serve.pojo.dto;
+
+import lombok.Data;
+
+import java.time.LocalDateTime;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬用户
+ */
+@Data
+public class PlatformDeYangUserDTO {
+
+    /**
+     * 用户id
+     */
+    private String userId;
+
+    /**
+     * openId
+     */
+    private String openId;
+
+    /**
+     * 注册IP
+     */
+    private String registerIp;
+
+    /**
+     * 注册UA
+     */
+    private String registerUa;
+
+    /**
+     * 注册时间
+     */
+    private LocalDateTime registerTime;
+
+    /**
+     * 最后登录时间
+     */
+    private LocalDateTime lastLoginTime;
+
+    /**
+     * 支付金额(单位:分)
+     */
+    private Long payAmount;
+
+    /**
+     * 手机号
+     */
+    private Long phoneNumber;
+
+    /**
+     * 游戏名称
+     */
+    private String gameName;
+
+    /**
+     * 游戏角色
+     */
+    private String gameRole;
+
+    /**
+     * 游戏等级
+     */
+    private String gameLevel;
+
+    /**
+     * 游戏付费金额(单位:分)
+     */
+    private Long gamePayAmount;
+
+    /**
+     * 实名信息
+     */
+    private String realNameAuth;
+
+    /**
+     * 公众号appId
+     */
+    private String mpAppId;
+
+    /**
+     * 公众号名称
+     */
+    private String mpAppName;
+
+    /**
+     * 渠道id
+     */
+    private String channelId;
+
+    /**
+     * 趣程标识
+     */
+    private String quChengSign;
+}

+ 109 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/entity/PlatformDeYangOrder.java

@@ -0,0 +1,109 @@
+package com.zanxiang.game.platform.serve.pojo.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬订单
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Builder
+@TableName("t_platform_deyang_order")
+public class PlatformDeYangOrder implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 订单id
+     */
+    @TableId(value = "order_id", type = IdType.INPUT)
+    private String orderId;
+
+    /**
+     * openId
+     */
+    private String openId;
+
+    /**
+     * 状态
+     */
+    private Integer status;
+
+    /**
+     * 金额(单位:分)
+     */
+    private Long amount;
+
+    /**
+     * 下单时间
+     */
+    private LocalDateTime createdTime;
+
+    /**
+     * 支付时间
+     */
+    private LocalDateTime payTime;
+
+    /**
+     * 是否首充
+     */
+    private Boolean isFirst;
+
+    /**
+     * 游戏角色名
+     */
+    private String roleName;
+
+    /**
+     * 游戏区服
+     */
+    private String severName;
+
+    /**
+     * 商户订单号
+     */
+    private String merchantNumber;
+
+    /**
+     * 商户类型
+     */
+    private String merchantType;
+
+    /**
+     * 游戏商品ID
+     */
+    private String productId;
+
+    /**
+     * 游戏商品名称
+     */
+    private String productName;
+
+    /**
+     * 游戏名称
+     */
+    private String gameName;
+
+    /**
+     * 创建时间
+     */
+    private LocalDateTime createTime;
+
+    /**
+     * 更新时间
+     */
+    private LocalDateTime updateTime;
+}

+ 123 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/entity/PlatformDeYangUser.java

@@ -0,0 +1,123 @@
+package com.zanxiang.game.platform.serve.pojo.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬用户
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Builder
+@TableName("t_platform_deyang_user")
+public class PlatformDeYangUser implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 用户id
+     */
+    @TableId(value = "user_id", type = IdType.INPUT)
+    private String userId;
+
+    /**
+     * openId
+     */
+    private String openId;
+
+    /**
+     * 注册IP
+     */
+    private String registerIp;
+
+    /**
+     * 注册UA
+     */
+    private String registerUa;
+
+    /**
+     * 注册时间
+     */
+    private LocalDateTime registerTime;
+
+    /**
+     * 最后登录时间
+     */
+    private LocalDateTime lastLoginTime;
+
+    /**
+     * 支付金额(单位:分)
+     */
+    private Long payAmount;
+
+    /**
+     * 手机号
+     */
+    private Long phoneNumber;
+
+    /**
+     * 游戏名称
+     */
+    private String gameName;
+
+    /**
+     * 游戏角色
+     */
+    private String gameRole;
+
+    /**
+     * 游戏等级
+     */
+    private String gameLevel;
+
+    /**
+     * 游戏付费金额(单位:分)
+     */
+    private Long gamePayAmount;
+
+    /**
+     * 实名信息
+     */
+    private String realNameAuth;
+
+    /**
+     * 公众号appId
+     */
+    private String mpAppId;
+
+    /**
+     * 公众号名称
+     */
+    private String mpAppName;
+
+    /**
+     * 渠道id
+     */
+    private String channelId;
+
+    /**
+     * 趣程标识
+     */
+    private String quChengSign;
+
+    /**
+     * 创建时间
+     */
+    private LocalDateTime createTime;
+
+    /**
+     * 更新时间
+     */
+    private LocalDateTime updateTime;
+}

+ 12 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/IPlatformDeYangOrderService.java

@@ -0,0 +1,12 @@
+package com.zanxiang.game.platform.serve.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangOrder;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description :
+ */
+public interface IPlatformDeYangOrderService extends IService<PlatformDeYangOrder> {
+}

+ 12 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/IPlatformDeYangUserService.java

@@ -0,0 +1,12 @@
+package com.zanxiang.game.platform.serve.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangUser;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德阳用户
+ */
+public interface IPlatformDeYangUserService extends IService<PlatformDeYangUser> {
+}

+ 18 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/impl/PlatformDeYangOrderServiceImpl.java

@@ -0,0 +1,18 @@
+package com.zanxiang.game.platform.serve.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.zanxiang.game.platform.serve.dao.mapper.PlatformDeYangOrderMapper;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangOrder;
+import com.zanxiang.game.platform.serve.service.IPlatformDeYangOrderService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬订单
+ */
+@Slf4j
+@Service
+public class PlatformDeYangOrderServiceImpl extends ServiceImpl<PlatformDeYangOrderMapper, PlatformDeYangOrder> implements IPlatformDeYangOrderService {
+}

+ 18 - 0
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/service/impl/PlatformDeYangUserServiceImpl.java

@@ -0,0 +1,18 @@
+package com.zanxiang.game.platform.serve.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.zanxiang.game.platform.serve.dao.mapper.PlatformDeYangUserMapper;
+import com.zanxiang.game.platform.serve.pojo.entity.PlatformDeYangUser;
+import com.zanxiang.game.platform.serve.service.IPlatformDeYangUserService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-05-22
+ * @description : 德扬用户
+ */
+@Slf4j
+@Service
+public class PlatformDeYangUserServiceImpl extends ServiceImpl<PlatformDeYangUserMapper, PlatformDeYangUser> implements IPlatformDeYangUserService {
+}

+ 47 - 0
game-platform/game-platform-serve/src/main/resources/bootstrap.yml

@@ -0,0 +1,47 @@
+server:
+  port: 10506
+spring:
+  application:
+    name: game-platform
+  profiles:
+    active: dev
+  cloud:
+    nacos:
+      discovery:
+        namespace: LOCAL_game
+        server-addr: 118.178.187.109:8848
+      config:
+        namespace: LOCAL_game
+        server-addr: 118.178.187.109:8848
+        file-extension: yml
+        group: GAME
+        max-retry: 10
+
+dubbo:
+  application:
+    name: game-platform-dubbo
+    register-mode: instance
+    qos-enable: false
+    qos-accept-foreign-ip: false
+    qos-port: -1
+    metadata-type: local
+    metadata-service-protocol: dubbo
+    metadata-service-port: -1
+    logger: slf4j
+  registry:
+    address: nacos://118.178.187.109:8848?registry-type=service
+    timeout: 3000
+    parameters:
+      namespace: LOCAL_game
+    group: GAME
+    use-as-metadata-center: false
+    use-as-config-center: false
+  protocol:
+    name: tri
+    port: -1
+  consumer:
+    check: false
+
+
+
+

+ 24 - 0
game-platform/pom.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>game-center</artifactId>
+        <groupId>com.zanxiang.game</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>game-platform</artifactId>
+    <packaging>pom</packaging>
+    <modules>
+        <module>game-platform-base</module>
+        <module>game-platform-serve</module>
+    </modules>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 1 - 0
pom.xml

@@ -7,6 +7,7 @@
     <modules>
         <module>game-module</module>
         <module>game-data</module>
+        <module>game-platform</module>
     </modules>
     <parent>
         <groupId>com.zanxiang</groupId>