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