package com.xxfc.platform.tour.rest;

import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.tour.biz.TourGoodSiteBiz;
import com.xxfc.platform.tour.entity.TourGoodSite;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("tourGoodSite")
public class TourGoodSiteController extends BaseController<TourGoodSiteBiz,TourGoodSite> {

    @GetMapping("/departure_time")
    public  Long selectDepartureTimeByStartCompanyIdAndRouteId(@RequestParam(value = "companyId") Integer companyId,
                                                               @RequestParam(value = "goodId") Integer routeId){
        return baseBiz.selectDepartureTimeByStartCompanyIdAndRouteId(companyId,routeId);
    }

}