Commit d20d5e96 by 向延琳

增加请求路径

1 parent 7b74707c
...@@ -7,6 +7,8 @@ import com.glsx.plat.core.web.R; ...@@ -7,6 +7,8 @@ import com.glsx.plat.core.web.R;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
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.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -24,8 +26,9 @@ public class SpeedingController implements DeviceSpeedingClient { ...@@ -24,8 +26,9 @@ public class SpeedingController implements DeviceSpeedingClient {
@Autowired @Autowired
private SpeedingService speedingService; private SpeedingService speedingService;
@PostMapping(value = "/save")
@Override @Override
public R saveDeviceSpeeding(DeviceSpeedingDTO deviceSpeedingDTO) { public R saveDeviceSpeeding(@RequestBody DeviceSpeedingDTO deviceSpeedingDTO) {
speedingService.saveDeviceSpeeding(deviceSpeedingDTO); speedingService.saveDeviceSpeeding(deviceSpeedingDTO);
return R.ok(); return R.ok();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!