|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|