|
|
|
@ -2,13 +2,12 @@ package com.taxi.apidriver.remote;
|
|
|
|
|
|
|
|
|
|
import com.internal.dto.DriverUser;
|
|
|
|
|
import com.internal.dto.ResponseResult;
|
|
|
|
|
import com.internal.response.DriverUserExistsResponse;
|
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
@FeignClient("service-driver-user")
|
|
|
|
|
public interface ServiceDirverUserClient {
|
|
|
|
|
public interface ServiceDriverUserClient {
|
|
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.POST,value = "/users")
|
|
|
|
|
ResponseResult addDriverUser(@RequestBody DriverUser driverUser);
|
|
|
|
@ -16,4 +15,7 @@ public interface ServiceDirverUserClient {
|
|
|
|
|
@RequestMapping(method = RequestMethod.PUT,value = "/user")
|
|
|
|
|
ResponseResult updateDriverUser(@RequestBody DriverUser driverUser);
|
|
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET,value = "/check-driver/{driverPhone}")
|
|
|
|
|
ResponseResult<DriverUserExistsResponse> getUser(@PathVariable("driverPhone") String driverPhone);
|
|
|
|
|
|
|
|
|
|
}
|