class Travel2ServiceImpl implements Travel2Service {

    @Override
    public Response queryAll(HttpHeaders headers) {
        List<Trip> tripList = repository.findAll();
        if (tripList != null && !tripList.isEmpty()) {
            return new Response<>(1, success, tripList);
        }
        return new Response<>(0, noCnontent, null);
    }

}