重新调整结构的测试
This commit is contained in:
parent
8121aee460
commit
ee7cf3e871
8
pom.xml
8
pom.xml
@ -14,20 +14,20 @@
|
|||||||
<artifactId>onemall</artifactId>
|
<artifactId>onemall</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<modules>
|
<modules>
|
||||||
<module>product</module>
|
<!-- <module>product</module>-->
|
||||||
<module>order</module>
|
<!-- <module>order</module>-->
|
||||||
<module>user</module>
|
<module>user</module>
|
||||||
<module>common</module>
|
<module>common</module>
|
||||||
<module>system</module>
|
<module>system</module>
|
||||||
<!-- <module>ops</module>-->
|
<!-- <module>ops</module>-->
|
||||||
<!-- <module>pay</module>-->
|
<!-- <module>pay</module>-->
|
||||||
<module>promotion</module>
|
<!-- <module>promotion</module>-->
|
||||||
<!-- <module>search</module>-->
|
<!-- <module>search</module>-->
|
||||||
<!-- <module>demo</module>-->
|
<!-- <module>demo</module>-->
|
||||||
<module>mall-dependencies</module>
|
<module>mall-dependencies</module>
|
||||||
<!-- <module>mall-spring-boot-starter-cache</module>-->
|
<!-- <module>mall-spring-boot-starter-cache</module>-->
|
||||||
<module>user-service-project</module>
|
<module>user-service-project</module>
|
||||||
<module>user-application-project</module>
|
<module>user-web-app</module>
|
||||||
</modules>
|
</modules>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
<?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>onemall</artifactId>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<artifactId>user-application-project</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<modules>
|
|
||||||
<module>user-application-rest</module>
|
|
||||||
</modules>
|
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<!-- onemall 基础 bom 文件 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>mall-dependencies</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Web 相关 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>mall-spring-boot-starter-web</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>mall-spring-boot-starter-security</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>mall-spring-boot-starter-swagger</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,13 +0,0 @@
|
|||||||
package cn.iocoder.mall.userapplication;
|
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {"cn.iocoder.mall.userapplication"})
|
|
||||||
public class UserApplication {
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(UserApplication.class, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
package cn.iocoder.mall.userapplication.controller.user;
|
|
||||||
|
|
||||||
public class UsersPassportController {
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
spring:
|
|
||||||
# Spring Cloud 配置项
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
# Spring Cloud Nacos Discovery 配置项
|
|
||||||
discovery:
|
|
||||||
server-addr: 400-infra.server.iocoder.cn:8848 # Nacos 服务器地址
|
|
||||||
namespace: dev # Nacos 命名空间
|
|
||||||
|
|
||||||
# Dubbo 配置项
|
|
||||||
dubbo:
|
|
||||||
# Dubbo 注册中心
|
|
||||||
registry:
|
|
||||||
address: spring-cloud://400-infra.server.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
|
|
@ -1,14 +0,0 @@
|
|||||||
spring:
|
|
||||||
# Spring Cloud 配置项
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
# Spring Cloud Nacos Discovery 配置项
|
|
||||||
discovery:
|
|
||||||
server-addr: 400-infra.server.iocoder.cn:8848 # Nacos 服务器地址
|
|
||||||
namespace: local # Nacos 命名空间
|
|
||||||
|
|
||||||
# Dubbo 配置项
|
|
||||||
dubbo:
|
|
||||||
# Dubbo 注册中心
|
|
||||||
registry:
|
|
||||||
address: spring-cloud://400-infra.server.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
|
|
@ -1,19 +0,0 @@
|
|||||||
# 服务器的配置项
|
|
||||||
server:
|
|
||||||
port: 18082
|
|
||||||
servlet:
|
|
||||||
context-path: /user-api/
|
|
||||||
|
|
||||||
spring:
|
|
||||||
# Application 的配置项
|
|
||||||
application:
|
|
||||||
name: user-application
|
|
||||||
# Profile 的配置项
|
|
||||||
profiles:
|
|
||||||
active: local
|
|
||||||
|
|
||||||
# Dubbo 配置项
|
|
||||||
dubbo:
|
|
||||||
# Spring Cloud Alibaba Dubbo 专属配置
|
|
||||||
cloud:
|
|
||||||
subscribed-services: 'user-service' # 设置订阅的应用列表,默认为 * 订阅所有应用
|
|
@ -13,11 +13,8 @@
|
|||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<description>用户服务</description>
|
<description>用户服务</description>
|
||||||
<modules>
|
<modules>
|
||||||
<module>user-service-dal</module>
|
<module>user-service-api</module>
|
||||||
<module>user-service-biz</module>
|
<module>user-service-app</module>
|
||||||
<module>user-service-rpc</module>
|
|
||||||
<module>user-service-rpc-api</module>
|
|
||||||
<module>user-service-common</module>
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -31,25 +28,16 @@
|
|||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
|
<artifactId>common-framework</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 自身项目 -->
|
<!-- 自身项目 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<artifactId>user-service-common</artifactId>
|
<artifactId>user-service-api</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>user-service-rpc-api</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>user-service-biz</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>user-service-dal</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>user-service-rpc-api</artifactId>
|
<artifactId>user-service-api</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<artifactId>user-service-common</artifactId>
|
<artifactId>common-framework</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -9,12 +9,9 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>user-service-rpc</artifactId>
|
<artifactId>user-service-app</artifactId>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
|
||||||
<artifactId>user-service-rpc-api</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- RPC 相关 -->
|
<!-- RPC 相关 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -22,6 +19,12 @@
|
|||||||
<artifactId>spring-cloud-starter-dubbo</artifactId>
|
<artifactId>spring-cloud-starter-dubbo</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<!-- 用户服务 -->
|
||||||
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
|
<artifactId>user-service-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Registry 和 Config 相关 -->
|
<!-- Registry 和 Config 相关 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.mall.userservice.app;
|
package cn.iocoder.mall.userservice;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
@ -1 +0,0 @@
|
|||||||
package cn.iocoder.mall.userservice.app.dal.mysql.mapper;
|
|
@ -1,4 +0,0 @@
|
|||||||
package cn.iocoder.mall.userservice.app.service.user.bo;
|
|
||||||
|
|
||||||
public class UserBO {
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.mall.userservice.app.config;
|
package cn.iocoder.mall.userservice.config;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
|
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
|
||||||
import com.baomidou.mybatisplus.core.injector.ISqlInjector;
|
import com.baomidou.mybatisplus.core.injector.ISqlInjector;
|
@ -1,7 +1,7 @@
|
|||||||
package cn.iocoder.mall.userservice.app.convert.user;
|
package cn.iocoder.mall.userservice.convert.user;
|
||||||
|
|
||||||
import cn.iocoder.mall.userservice.app.service.user.bo.UserBO;
|
import cn.iocoder.mall.userservice.service.user.bo.UserBO;
|
||||||
import cn.iocoder.mall.userservice.app.dal.mysql.dataobject.user.UserDO;
|
import cn.iocoder.mall.userservice.dal.mysql.dataobject.user.UserDO;
|
||||||
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.mall.userservice.app.dal.mysql.dataobject.user;
|
package cn.iocoder.mall.userservice.dal.mysql.dataobject.user;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.constant.CommonStatusEnum;
|
import cn.iocoder.common.framework.constant.CommonStatusEnum;
|
||||||
import cn.iocoder.mall.mybatis.dataobject.DeletableDO;
|
import cn.iocoder.mall.mybatis.dataobject.DeletableDO;
|
@ -0,0 +1 @@
|
|||||||
|
package cn.iocoder.mall.userservice.dal.mysql.mapper;
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.mall.userservice.app.dal.mysql.mapper.user;
|
package cn.iocoder.mall.userservice.dal.mysql.mapper.user;
|
||||||
|
|
||||||
import cn.iocoder.mall.userservice.app.dal.mysql.dataobject.user.UserDO;
|
import cn.iocoder.mall.userservice.dal.mysql.dataobject.user.UserDO;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package cn.iocoder.mall.userservice.app.manager.user;
|
package cn.iocoder.mall.userservice.manager.user;
|
||||||
|
|
||||||
import cn.iocoder.mall.userservice.app.service.user.bo.UserBO;
|
import cn.iocoder.mall.userservice.service.user.bo.UserBO;
|
||||||
import cn.iocoder.mall.userservice.app.service.user.UserService;
|
import cn.iocoder.mall.userservice.service.user.UserService;
|
||||||
import cn.iocoder.mall.userservice.app.convert.user.UserConvert;
|
import cn.iocoder.mall.userservice.convert.user.UserConvert;
|
||||||
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
@ -1,8 +1,7 @@
|
|||||||
package cn.iocoder.mall.userservice.app.rpc.user;
|
package cn.iocoder.mall.userservice.rpc.user;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.vo.CommonResult;
|
import cn.iocoder.common.framework.vo.CommonResult;
|
||||||
import cn.iocoder.mall.userservice.app.manager.user.UserManager;
|
import cn.iocoder.mall.userservice.manager.user.UserManager;
|
||||||
import cn.iocoder.mall.userservice.rpc.user.UserRpc;
|
|
||||||
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
import cn.iocoder.mall.userservice.rpc.user.vo.UserVO;
|
||||||
import org.apache.dubbo.config.annotation.Service;
|
import org.apache.dubbo.config.annotation.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,9 +1,9 @@
|
|||||||
package cn.iocoder.mall.userservice.app.service.user;
|
package cn.iocoder.mall.userservice.service.user;
|
||||||
|
|
||||||
import cn.iocoder.mall.userservice.app.dal.mysql.dataobject.user.UserDO;
|
import cn.iocoder.mall.userservice.convert.user.UserConvert;
|
||||||
import cn.iocoder.mall.userservice.app.dal.mysql.mapper.user.UserMapper;
|
import cn.iocoder.mall.userservice.dal.mysql.dataobject.user.UserDO;
|
||||||
import cn.iocoder.mall.userservice.app.service.user.bo.UserBO;
|
import cn.iocoder.mall.userservice.dal.mysql.mapper.user.UserMapper;
|
||||||
import cn.iocoder.mall.userservice.biz.convert.user.UserConvert;
|
import cn.iocoder.mall.userservice.service.user.bo.UserBO;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
package cn.iocoder.mall.userservice.service.user.bo;
|
||||||
|
|
||||||
|
public class UserBO {
|
||||||
|
}
|
@ -29,7 +29,7 @@ dubbo:
|
|||||||
port: -1
|
port: -1
|
||||||
# Dubbo 提供服务的扫描基础包
|
# Dubbo 提供服务的扫描基础包
|
||||||
scan:
|
scan:
|
||||||
base-packages: cn.iocoder.mall.userservice.rpc.rpc
|
base-packages: cn.iocoder.mall.userservice.rpc
|
||||||
# Dubbo 服务提供者的配置
|
# Dubbo 服务提供者的配置
|
||||||
provider:
|
provider:
|
||||||
filter: -exception
|
filter: -exception
|
||||||
|
@ -3,18 +3,22 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>user-application-project</artifactId>
|
<artifactId>onemall</artifactId>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>user-application-rest</artifactId>
|
<artifactId>user-web-app</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- onemall 基础 bom 文件 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<artifactId>user-service-rpc-api</artifactId>
|
<artifactId>mall-dependencies</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Web 相关 -->
|
<!-- Web 相关 -->
|
||||||
@ -32,7 +36,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<!-- 用户服务 -->
|
<!-- 用户服务 -->
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<artifactId>user-service-rpc-api</artifactId>
|
<artifactId>user-service-api</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user