|
@@ -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);
|
|
|
}
|
|
|
|