2475357c by chentao

no message

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