diff --git a/order/order-biz-api/pom.xml b/order/order-biz-api/pom.xml
new file mode 100644
index 000000000..b024bd6de
--- /dev/null
+++ b/order/order-biz-api/pom.xml
@@ -0,0 +1,24 @@
+
+
+
+ onemall
+ cn.iocoder.mall
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ order-biz-api
+
+
+
+
+ cn.iocoder.mall
+ common-framework
+ 1.0-SNAPSHOT
+
+
+
+
+
diff --git a/order/order-biz-api/src/main/java/cn/iocoder/mall/order/biz/package-info.java b/order/order-biz-api/src/main/java/cn/iocoder/mall/order/biz/package-info.java
new file mode 100644
index 000000000..6c1bb4730
--- /dev/null
+++ b/order/order-biz-api/src/main/java/cn/iocoder/mall/order/biz/package-info.java
@@ -0,0 +1,6 @@
+/**
+ * 该项目,主要用于暴露一些共享的枚举类等。
+ *
+ * 例如说,RPC 接口提供错误码给调用方
+ */
+package cn.iocoder.mall.order.biz;
diff --git a/order/order-biz/pom.xml b/order/order-biz/pom.xml
new file mode 100644
index 000000000..3a30bd194
--- /dev/null
+++ b/order/order-biz/pom.xml
@@ -0,0 +1,73 @@
+
+
+
+ onemall
+ cn.iocoder.mall
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ order-biz
+
+
+
+ cn.iocoder.mall
+ order-biz-api
+ 1.0-SNAPSHOT
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+
+ mysql
+ mysql-connector-java
+
+
+ org.springframework
+ spring-tx
+
+
+ org.springframework
+ spring-jdbc
+
+
+ com.alibaba
+ druid-spring-boot-starter
+
+
+
+ cn.iocoder.mall
+ mall-spring-boot-starter-mybatis
+ 1.0-SNAPSHOT
+
+
+
+
+ org.mapstruct
+ mapstruct
+
+
+ org.mapstruct
+ mapstruct-jdk8
+
+
+ org.projectlombok
+ lombok
+
+
+
+ com.alibaba
+ fastjson
+
+
+
+
+
+
diff --git a/order/order-biz/src/main/resources/biz.yaml b/order/order-biz/src/main/resources/biz.yaml
new file mode 100644
index 000000000..ba156c62e
--- /dev/null
+++ b/order/order-biz/src/main/resources/biz.yaml
@@ -0,0 +1,19 @@
+spring:
+ # 数据源配置项
+ datasource:
+ url: jdbc:mysql://s1.iocoder.cn:3306/mall_system?useSSL=false&useUnicode=true&characterEncoding=UTF-8
+ driver-class-name: com.mysql.jdbc.Driver
+ username: root
+ password: 3WLiVUBEwTbvAfsh
+
+# MyBatis Plus 配置项
+mybatis-plus:
+ configuration:
+ map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
+ global-config:
+ db-config:
+ id-type: auto
+ logic-delete-value: 1 # 逻辑已删除值(默认为 1)
+ logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
+ mapper-locations: classpath*:mapper/*.xml
+ type-aliases-package: cn.iocoder.mall.system.biz.dataobject
diff --git a/order/order-rest/pom.xml b/order/order-rest/pom.xml
new file mode 100644
index 000000000..b525ca535
--- /dev/null
+++ b/order/order-rest/pom.xml
@@ -0,0 +1,42 @@
+
+
+
+ order
+ cn.iocoder.mall
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ order-rest
+ 提供 order 服务的 Rest 接口的实现,提供对外调用
+
+
+
+
+ cn.iocoder.mall
+ order-biz
+ 1.0-SNAPSHOT
+
+
+
+
+ cn.iocoder.mall
+ mall-spring-boot-starter-web
+ 1.0-SNAPSHOT
+
+
+ cn.iocoder.mall
+ mall-spring-boot-starter-security
+ 1.0-SNAPSHOT
+
+
+ cn.iocoder.mall
+ mall-spring-boot-starter-swagger
+ 1.0-SNAPSHOT
+
+
+
+
+
diff --git a/order/order-rest/src/main/resources/rest.yaml b/order/order-rest/src/main/resources/rest.yaml
new file mode 100644
index 000000000..4040f4b25
--- /dev/null
+++ b/order/order-rest/src/main/resources/rest.yaml
@@ -0,0 +1,12 @@
+# 服务器的配置项
+server:
+ port: 18083
+ servlet:
+ context-path: /system-api/
+
+# Swagger 配置项
+swagger:
+ title: 订单子系统
+ description: 订单子系统
+ version: 1.0.0
+ base-package: cn.iocoder.mall.order.rest.controller
diff --git a/order/order-rpc-api/pom.xml b/order/order-rpc-api/pom.xml
new file mode 100644
index 000000000..d8c4aa5f7
--- /dev/null
+++ b/order/order-rpc-api/pom.xml
@@ -0,0 +1,36 @@
+
+
+
+ order
+ cn.iocoder.mall
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ order-rpc-api
+
+
+
+
+ cn.iocoder.mall
+ order-biz-api
+ 1.0-SNAPSHOT
+
+
+
+
+ javax.validation
+ validation-api
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+
+
diff --git a/order/order-rpc-api/src/main/java/cn/iocoder/mall/order/rpc/package-info.java b/order/order-rpc-api/src/main/java/cn/iocoder/mall/order/rpc/package-info.java
new file mode 100644
index 000000000..5f974723b
--- /dev/null
+++ b/order/order-rpc-api/src/main/java/cn/iocoder/mall/order/rpc/package-info.java
@@ -0,0 +1,4 @@
+/**
+ * 提供 order 服务的 RPC 接口的定义,提供内部调用
+ */
+package cn.iocoder.mall.order.rpc;
diff --git a/order/order-rpc/pom.xml b/order/order-rpc/pom.xml
new file mode 100644
index 000000000..bc7aac411
--- /dev/null
+++ b/order/order-rpc/pom.xml
@@ -0,0 +1,42 @@
+
+
+
+ order
+ cn.iocoder.mall
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ order-rpc
+
+
+
+
+ cn.iocoder.mall
+ order-rpc-api
+ 1.0-SNAPSHOT
+
+
+ cn.iocoder.mall
+ order-biz
+ 1.0-SNAPSHOT
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-dubbo
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+
+
+
+
diff --git a/order/order-rpc/src/main/java/cn/iocoder/mall/order/rpc/package-info.java b/order/order-rpc/src/main/java/cn/iocoder/mall/order/rpc/package-info.java
new file mode 100644
index 000000000..ac5570aeb
--- /dev/null
+++ b/order/order-rpc/src/main/java/cn/iocoder/mall/order/rpc/package-info.java
@@ -0,0 +1,4 @@
+/**
+ * 提供 order 服务的 RPC 接口的实现,提供内部调用
+ */
+package cn.iocoder.mall.order.rpc;
diff --git a/order/order-rpc/src/main/resources/rpc-local.yaml b/order/order-rpc/src/main/resources/rpc-local.yaml
new file mode 100644
index 000000000..e056170af
--- /dev/null
+++ b/order/order-rpc/src/main/resources/rpc-local.yaml
@@ -0,0 +1,14 @@
+spring:
+ # Spring Cloud 配置项
+ cloud:
+ nacos:
+ # Spring Cloud Nacos Discovery 配置项
+ discovery:
+ server-addr: s1.iocoder.cn:8848 # Nacos 服务器地址
+ namespace: local # Nacos 命名空间
+
+# Dubbo 配置项
+dubbo:
+ # Dubbo 注册中心
+ registry:
+ address: spring-cloud://s1.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
diff --git a/order/order-rpc/src/main/resources/rpc-test.yaml b/order/order-rpc/src/main/resources/rpc-test.yaml
new file mode 100644
index 000000000..d3d0e9e69
--- /dev/null
+++ b/order/order-rpc/src/main/resources/rpc-test.yaml
@@ -0,0 +1,14 @@
+spring:
+ # Spring Cloud 配置项
+ cloud:
+ nacos:
+ # Spring Cloud Nacos Discovery 配置项
+ discovery:
+ server-addr: s1.iocoder.cn:8848 # Nacos 服务器地址
+ namespace: test # Nacos 命名空间
+
+# Dubbo 配置项
+dubbo:
+ # Dubbo 注册中心
+ registry:
+ address: spring-cloud://s1.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
diff --git a/order/order-rpc/src/main/resources/rpc.yaml b/order/order-rpc/src/main/resources/rpc.yaml
new file mode 100644
index 000000000..8c8b6b591
--- /dev/null
+++ b/order/order-rpc/src/main/resources/rpc.yaml
@@ -0,0 +1,40 @@
+# Dubbo 配置项
+dubbo:
+ # Spring Cloud Alibaba Dubbo 专属配置
+ cloud:
+ subscribed-services: '' # 设置订阅的应用列表,默认为 * 订阅所有应用
+ # Dubbo 提供者的协议
+ protocol:
+ name: dubbo
+ port: -1
+ # Dubbo 提供服务的扫描基础包
+ scan:
+ base-packages: cn.iocoder.mall.order.rpc.rpc
+ # Dubbo 服务提供者的配置
+ provider:
+ filter: -exception
+ SystemLogRPC:
+ version: 1.0.0
+ OAuth2RPC:
+ version: 1.0.0
+ AuthorizationRPC:
+ version: 1.0.0
+ AdminRPC:
+ version: 1.0.0
+ UserRPC:
+ version: 1.0.0
+ UserAddressRPC:
+ version: 1.0.0
+
+ # Dubbo 服务消费者的配置
+ consumer:
+ SystemLogRPC: # 用于 AccessLogInterceptor 等拦截器,记录 HTTP API 请求的访问日志
+ version: 1.0.0
+ OAuth2RPC: # 用于 AccountAuthInterceptor 拦截器,执行认证
+ version: 1.0.0
+ AuthorizationRPC: # 用于 AccountAuthInterceptor 拦截器,执行鉴权(权限验证)
+ version: 1.0.0
+ AdminRPC:
+ version: 1.0.0
+ UserRPC:
+ version: 1.0.0
diff --git a/order/pom.xml b/order/pom.xml
index 3fe0dbfaf..26cf50f5d 100644
--- a/order/pom.xml
+++ b/order/pom.xml
@@ -13,8 +13,12 @@
pom
order-application
- order-service-api
- order-service-impl
+ order-biz
+ order-biz-api
+ order-rest
+ order-rpc
+ order-rpc-api
+
diff --git a/pom.xml b/pom.xml
index d7b0ebf35..95aded6bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
1.0-SNAPSHOT
product
-
+ order
user
common
system
@@ -25,6 +25,12 @@
mall-dependencies
+ order-biz
+ order/order-biz
+ order/order-biz-api
+ order/order-rpc
+ order/order-rpc-api
+ order-rest
pom