宋悦 7 years ago
parent
commit
5b000df1b9

+ 2 - 2
core-api/src/main/java/cn/com/qmth/examcloud/service/core/api/CourseApi.java

@@ -103,8 +103,8 @@ public class CourseApi {
     }
 
     @ApiOperation(value="按orgId查询课程",notes="orgId查询")
-    @GetMapping()
-    public ResponseEntity getCourseByOrgId(@RequestParam Long orgId){
+    @GetMapping("/{orgId}")
+    public ResponseEntity getCourseByOrgId(@PathVariable Long orgId){
         return new ResponseEntity(courseRepo.findByOrgId(orgId),HttpStatus.OK);
     }