cloud-server-competition/src/main/java/com/dsh/competition/feignclient/account/StudentClient.java
@@ -6,6 +6,7 @@ import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import java.util.List; @@ -34,4 +35,11 @@ @PostMapping("/student/queryById") TStudent queryById(Integer id); /** * 添加学员 * * @return */ @RequestMapping("/base/student/addStudent") public Object addStudent(@RequestBody TStudent student); }