2475357c by chentao

no message

1 parent 50bd45a2
...@@ -50,7 +50,7 @@ public class CourseController extends BaseController { ...@@ -50,7 +50,7 @@ public class CourseController extends BaseController {
50 * @return 50 * @return
51 */ 51 */
52 @GetMapping("/list/{buildingBlockId}") 52 @GetMapping("/list/{buildingBlockId}")
53 public R<List<CourseVo>> list(@RequestParam("buildingBlockId") String buildingBlockId) { 53 public R<List<CourseVo>> list(@PathVariable String buildingBlockId) {
54 return R.ok(service.list(buildingBlockId)); 54 return R.ok(service.list(buildingBlockId));
55 } 55 }
56 56
...@@ -61,7 +61,7 @@ public class CourseController extends BaseController { ...@@ -61,7 +61,7 @@ public class CourseController extends BaseController {
61 * @return 61 * @return
62 */ 62 */
63 @GetMapping("/getById/{id}") 63 @GetMapping("/getById/{id}")
64 public R<CourseVo> getById(@RequestParam("id") String id) { 64 public R<CourseVo> getById(@PathVariable String id) {
65 return R.ok(service.getById(id)); 65 return R.ok(service.getById(id));
66 } 66 }
67 67
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!