[xingyu.guo] feat: 【获取【学习会话】所有的学习残片数据,以列表返回】API
This commit is contained in:
@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* 学习会话控制层
|
||||
*/
|
||||
@@ -53,4 +55,13 @@ public class StudySessionController {
|
||||
return CommonResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【学习会话】所有的学习残片数据,以列表返回
|
||||
*/
|
||||
@GetMapping("/{sessionNum}/all-fragments")
|
||||
public CommonResult getAllFragments(@PathVariable("sessionNum") String sessionNum) throws ErrorParameterException {
|
||||
ArrayList<String> allFragments = studySessionsServiceImpl.getAllFragments(sessionNum);
|
||||
return CommonResult.success(allFragments);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user