puzhibing
2023-06-13 7860e5cb6db60aeb82c640651998f8294635df5b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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<DriverTrain> queryAllTrain(Integer driverId);
 
    @PostMapping("/deleteById")
    void deleteById( Integer id);
 
    @PostMapping("/updateById")
    void updateById(@RequestBody DriverTrain driverTrain);
 
    @PostMapping("/updateById")
    void insert(@RequestBody DriverTrain driverTrain);
}