|
@@ -1,6 +1,7 @@
|
|
package cn.com.qmth.examcloud.service.examwork.service.rpc.client;
|
|
package cn.com.qmth.examcloud.service.examwork.service.rpc.client;
|
|
|
|
|
|
import org.springframework.cloud.netflix.feign.FeignClient;
|
|
import org.springframework.cloud.netflix.feign.FeignClient;
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -17,7 +18,7 @@ public interface CourseClient {
|
|
String findByOrgIdAndCode(@RequestParam("orgId") Long orgId,@RequestParam("code") String code);
|
|
String findByOrgIdAndCode(@RequestParam("orgId") Long orgId,@RequestParam("code") String code);
|
|
|
|
|
|
|
|
|
|
- @RequestMapping(method = RequestMethod.GET, value = "${app.api.core}/course")
|
|
|
|
- String findByOrgId(@RequestParam("orgId") Long orgId);
|
|
|
|
|
|
+ @RequestMapping(method = RequestMethod.GET, value = "${app.api.core}/course/{orgId}")
|
|
|
|
+ String findByOrgId(@PathVariable("orgId") Long orgId);
|
|
|
|
|
|
}
|
|
}
|