liujie
2023-07-26 5b2c156d6d29d946b3b1bf0d7a55847f108d5e03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.dsh.course.feignClient.competition;
 
import com.dsh.course.feignClient.competition.model.Competition;
import com.dsh.course.feignClient.competition.model.ListQuery;
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("mb-cloud-competition")
public interface CompetitionClient {
 
    @PostMapping("/base/competition/queryById")
    Competition queryById(Integer id);
 
    @PostMapping("/base/competition/list")
    List<Competition> list(ListQuery listQuery);
}