parent
96aeeb53eb
commit
8feaf148ea
@ -1,14 +1,24 @@
|
|||||||
package com.taxi.servicedriveruser.controller;
|
package com.taxi.servicedriveruser.controller;
|
||||||
|
|
||||||
|
import com.internal.dto.DriverUser;
|
||||||
|
import com.internal.dto.ResponseResult;
|
||||||
import com.taxi.servicedriveruser.service.DriverUserService;
|
import com.taxi.servicedriveruser.service.DriverUserService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
public class DriverUserController {
|
public class DriverUserController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DriverUserService driverUserService;
|
private DriverUserService driverUserService;
|
||||||
|
|
||||||
|
@PostMapping("/users")
|
||||||
|
public ResponseResult addDriverUser(@RequestBody DriverUser driverUser){
|
||||||
|
|
||||||
|
return driverUserService.addDriverUser(driverUser);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue