|
@@ -4,19 +4,18 @@ package com.keao.edu.user.api.client;
|
|
|
import com.keao.edu.common.config.FeignConfiguration;
|
|
|
import com.keao.edu.user.api.client.fallback.EduUserFeignServiceFallback;
|
|
|
import com.keao.edu.user.api.entity.ExamRoom;
|
|
|
-import com.keao.edu.user.api.entity.Student;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
-import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
-@FeignClient(name = "user-server", configuration = { FeignConfiguration.class }, fallback = EduUserFeignServiceFallback.class)
|
|
|
+@FeignClient(contextId = "eduUserFeignService", name = "user-server", configuration = { FeignConfiguration.class }, fallback = EduUserFeignServiceFallback.class)
|
|
|
public interface EduUserFeignService {
|
|
|
|
|
|
@RequestMapping(value = "examRoom/get", method = RequestMethod.GET)
|
|
|
ExamRoom getExamRoom(Integer id);
|
|
|
|
|
|
- @PostMapping(value = "student/apply", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- Object studentApply(Student student);
|
|
|
+ @PostMapping(value = "student/apply")
|
|
|
+ Object studentApply(@RequestParam("organId") Integer organId, @RequestParam("phone") String phone);
|
|
|
}
|