diff --git a/api-driver/.gitignore b/api-driver/.gitignore
new file mode 100644
index 0000000..bdd28b0
--- /dev/null
+++ b/api-driver/.gitignore
@@ -0,0 +1,48 @@
+# .gitignore
+
+### IntelliJ IDEA Project ###
+.idea
+*.iws
+*.iml
+*.ipr
+/.idea
+target
+src/test/
+!**/src/test/**/target/
+#!**/src/main/**/target/
+
+### Maven template
+HELP.md
+README.md
+.mvn
+mvnw
+mvnw.cmd
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+timing.properties
+#.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+
+### VS Code ###
+.vscode/
diff --git a/api-driver/pom.xml b/api-driver/pom.xml
new file mode 100644
index 0000000..1c84256
--- /dev/null
+++ b/api-driver/pom.xml
@@ -0,0 +1,34 @@
+
+
+
+ online-taxi-public
+ com.mashibing
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ api-driver
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-loadbalancer
+
+
+
+
\ No newline at end of file
diff --git a/api-driver/src/main/java/com/mashibing/apidriver/ApiDriverApplication.java b/api-driver/src/main/java/com/mashibing/apidriver/ApiDriverApplication.java
new file mode 100644
index 0000000..d45b824
--- /dev/null
+++ b/api-driver/src/main/java/com/mashibing/apidriver/ApiDriverApplication.java
@@ -0,0 +1,15 @@
+package com.mashibing.apidriver;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+
+@SpringBootApplication
+@EnableDiscoveryClient
+@EnableFeignClients
+public class ApiDriverApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(ApiDriverApplication.class);
+ }
+}
diff --git a/api-driver/src/main/java/com/mashibing/apidriver/controller/DriverUserController.java b/api-driver/src/main/java/com/mashibing/apidriver/controller/DriverUserController.java
new file mode 100644
index 0000000..2806048
--- /dev/null
+++ b/api-driver/src/main/java/com/mashibing/apidriver/controller/DriverUserController.java
@@ -0,0 +1,27 @@
+package com.mashibing.apidriver.controller;
+
+import com.mashibing.apidriver.service.UserSerive;
+import com.mashibing.internalcommon.dto.DriverUser;
+import com.mashibing.internalcommon.dto.ResponseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class DriverUserController {
+
+ @Autowired
+ private UserSerive serive;
+
+ /**
+ * 修改 司机 用户信息
+ * @param driverUser
+ * @return
+ */
+ @PutMapping("/driver-user")
+ public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){
+ return serive.updateDriverUser(driverUser);
+ }
+
+}
diff --git a/api-driver/src/main/java/com/mashibing/apidriver/controller/TestControler.java b/api-driver/src/main/java/com/mashibing/apidriver/controller/TestControler.java
new file mode 100644
index 0000000..a2bcb6d
--- /dev/null
+++ b/api-driver/src/main/java/com/mashibing/apidriver/controller/TestControler.java
@@ -0,0 +1,18 @@
+package com.mashibing.apidriver.controller;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class TestControler {
+
+ @Value("${spring.application.name}")
+ private String serviceName;
+
+ @GetMapping("/")
+ public String test() {
+ return serviceName;
+ }
+
+}
diff --git a/api-driver/src/main/java/com/mashibing/apidriver/remote/ServiceDriverUserClient.java b/api-driver/src/main/java/com/mashibing/apidriver/remote/ServiceDriverUserClient.java
new file mode 100644
index 0000000..a2ab85f
--- /dev/null
+++ b/api-driver/src/main/java/com/mashibing/apidriver/remote/ServiceDriverUserClient.java
@@ -0,0 +1,17 @@
+package com.mashibing.apidriver.remote;
+
+import com.mashibing.internalcommon.dto.DriverUser;
+import com.mashibing.internalcommon.dto.ResponseResult;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+@Service
+@FeignClient("service-driver-user")
+public interface ServiceDriverUserClient {
+
+ @PutMapping("/user")
+ public ResponseResult updateUser(@RequestBody DriverUser driverUser);
+
+}
diff --git a/api-driver/src/main/java/com/mashibing/apidriver/service/UserSerive.java b/api-driver/src/main/java/com/mashibing/apidriver/service/UserSerive.java
new file mode 100644
index 0000000..78d2392
--- /dev/null
+++ b/api-driver/src/main/java/com/mashibing/apidriver/service/UserSerive.java
@@ -0,0 +1,19 @@
+package com.mashibing.apidriver.service;
+
+import com.mashibing.apidriver.remote.ServiceDriverUserClient;
+import com.mashibing.internalcommon.dto.DriverUser;
+import com.mashibing.internalcommon.dto.ResponseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class UserSerive {
+
+ @Autowired
+ private ServiceDriverUserClient client;
+
+ public ResponseResult updateDriverUser(DriverUser driverUser){
+ return client.updateUser(driverUser);
+ }
+
+}
diff --git a/api-driver/src/main/resources/application.yml b/api-driver/src/main/resources/application.yml
new file mode 100644
index 0000000..410aea4
--- /dev/null
+++ b/api-driver/src/main/resources/application.yml
@@ -0,0 +1,9 @@
+server:
+ port: 8088
+spring:
+ application:
+ name: api-driver
+ cloud:
+ nacos:
+ discovery:
+ server-addr: localhost:8848
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index ce21e29..a4e784d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,6 +31,7 @@
service-map
service-driver-user
api-boss
+ api-driver
diff --git a/项目端口预设.md b/项目端口预设.md
index 6ef4b72..4a3794e 100644
--- a/项目端口预设.md
+++ b/项目端口预设.md
@@ -6,4 +6,5 @@
| service-price|8084|
|service-map|8085|
|service-driver-user|8086|
-|api-boss|8087|
\ No newline at end of file
+|api-boss|8087|
+|api-driver|8088|
\ No newline at end of file