| | |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.system.domain.GpsLoginRequest; |
| | | import com.ruoyi.system.domain.GpsLoginResponse; |
| | | import com.ruoyi.system.domain.*; |
| | | import com.ruoyi.system.service.IGpsCollectService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | GpsLoginResponse response = gpsCollectService.login(request); |
| | | return success(response); |
| | | } |
| | | |
| | | @Anonymous() |
| | | @GetMapping("/testGetDevices") |
| | | public AjaxResult testGetDevices() { |
| | | |
| | | |
| | | GpsDeviceListResponse response = gpsCollectService.getDeviceList(); |
| | | return success(response); |
| | | } |
| | | |
| | | @Anonymous() |
| | | @GetMapping("/testGetLastPosition") |
| | | public AjaxResult testGetLastPosition() { |
| | | GpsLastPositionRequest request = new GpsLastPositionRequest(); |
| | | // request.setDeviceids(Arrays.asList("1234567890")); |
| | | GpsLastPositionResponse response = gpsCollectService.getLastPosition(request); |
| | | return success(response); |
| | | } |
| | | |
| | | |
| | | } |