package com.dsh.course.feignClient.driver; import com.dsh.guns.modular.system.model.DriverTrain; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import java.util.List; @FeignClient(value = "mb-cloud-driver",path = "driverTrain") public interface DriverTrainClient { @PostMapping("/queryDriverTrainById") DriverTrain queryDriverTrainById(Integer driverTrainId); @PostMapping("/queryAllTrain") List queryAllTrain(Integer driverId); @PostMapping("/deleteById") void deleteById( Integer id); @PostMapping("/updateById") void updateById(@RequestBody DriverTrain driverTrain); @PostMapping("/updateById") void insert(@RequestBody DriverTrain driverTrain); }