|
@@ -5,16 +5,13 @@ 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 org.springframework.cloud.openfeign.FeignClient;
|
|
|
-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;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@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);
|
|
|
+ @GetMapping(value = "examRoom/get")
|
|
|
+ ExamRoom getExamRoom(@RequestParam("id") Integer id);
|
|
|
|
|
|
@PostMapping(value = "student/apply")
|
|
|
Object studentApply(@RequestParam("organId") Integer organId, @RequestParam("phone") String phone);
|