api-boss调用service-driver-user实现司机信息修改

main
topsun 2 years ago
parent f9c1a9eb8f
commit 870857edc6

@ -5,6 +5,7 @@ import com.internal.dto.ResponseResult;
import com.taxi.aipboss.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@ -18,4 +19,9 @@ public class DriverUserController {
public ResponseResult addDriverUser(@RequestBody DriverUser driverUser){
return driverUserService.addDriverUser(driverUser);
}
@PutMapping("/driver-user")
public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){
return driverUserService.updateDriverUser(driverUser);
}
}

@ -12,4 +12,7 @@ public interface ServiceDriverUserClient {
@RequestMapping(method = RequestMethod.POST,value = "/users")
ResponseResult addDriverUser(@RequestBody DriverUser driverUser);
@RequestMapping(method = RequestMethod.PUT,value = "/user")
ResponseResult updateDriverUser(@RequestBody DriverUser driverUser);
}

@ -14,4 +14,8 @@ public class DriverUserService {
public ResponseResult addDriverUser(DriverUser driverUser){
return serviceDriverUserClient.addDriverUser(driverUser);
}
public ResponseResult updateDriverUser(DriverUser driverUser){
return serviceDriverUserClient.updateDriverUser(driverUser);
}
}

Loading…
Cancel
Save