ba669f40 by 村长大人

修改BUG

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