parent
318bf0a8f5
commit
b505d01cc0
@ -1,7 +1,20 @@
|
||||
package com.taxi.servicedriveruser.service;
|
||||
|
||||
import com.internal.dto.Car;
|
||||
import com.internal.dto.ResponseResult;
|
||||
import com.taxi.servicedriveruser.mapper.CarMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class CarService {
|
||||
|
||||
@Autowired
|
||||
private CarMapper carMapper;
|
||||
|
||||
|
||||
public ResponseResult addCar(Car car) {
|
||||
carMapper.insert(car);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue