|
|
|
@ -55,12 +55,12 @@ public class TerminalGPSController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "轮询获取GPS位置", notes = "获取GPS位置接口", httpMethod = "POST")
|
|
|
|
|
@ApiOperation(value = "获取GPS位置触发", notes = "获取GPS位置触发接口", httpMethod = "POST")
|
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
|
@RequestMapping("/getTermGPSPosition")
|
|
|
|
|
@Log(title = "轮询获取GPS位置", type = "查询")
|
|
|
|
|
public ResponseReult<TerminalGpsModel> getReturnedTermGPS(@RequestBody @Validated TerminalGpsVo vo) {
|
|
|
|
|
ServiceBody<TerminalGpsModel> serviceBody = terminalGpsService.getReturnedGPS(vo);
|
|
|
|
|
@Log(title = "获取GPS位置触发", type = "查询")
|
|
|
|
|
public ResponseReult<Integer> getReturnedTermGPS(@RequestBody @Validated TerminalGpsVo vo) {
|
|
|
|
|
ServiceBody<Integer> serviceBody = terminalGpsService.getReturnedGPS(vo);
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
|
} else {
|
|
|
|
|