[xingyu.guo] feat: 【获取【学习会话】所有的学习残片数据,以列表返回】API

This commit is contained in:
guo
2024-09-22 11:00:39 +08:00
parent da6a25996d
commit 54af814b5e
4 changed files with 39 additions and 6 deletions
@@ -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);
}
}