2018-12-06 09:52:20 +08:00
|
|
|
package com.gzzn.omms.msgexchangeapi.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import com.gzzn.omms.msgexchangeapi.dto.ResponseDto;
|
2018-12-07 15:29:28 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD;
|
2018-12-06 09:52:20 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.service.flightInfo.IFlightInfoService;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
public class FlightsController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IFlightInfoService flightInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取最新完整的动态航班信息
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/all/flights")
|
2018-12-07 15:29:28 +08:00
|
|
|
public ResponseDto<List<SCHD.FLTR>> findAll( ) {
|
2018-12-06 09:52:20 +08:00
|
|
|
return ResponseDto.success(flightInfoService.findAll());
|
|
|
|
|
}
|
|
|
|
|
}
|