[xingyu.guo] fix: 统一Id为Num,在自己的业务领域中使用id,在非本身业务范畴的领域使用num
This commit is contained in:
@@ -5,6 +5,7 @@ import com.guo.learningprogresstracker.common.Ops;
|
||||
import com.guo.learningprogresstracker.dto.response.StudySessionResponce;
|
||||
import com.guo.learningprogresstracker.entity.CommonResult;
|
||||
import com.guo.learningprogresstracker.dto.request.TaskRequest;
|
||||
import com.guo.learningprogresstracker.exception.NotFindEntitiesException;
|
||||
import com.guo.learningprogresstracker.service.TasksService;
|
||||
import com.guo.learningprogresstracker.service.impl.StudySessionsServiceImpl;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -71,10 +72,10 @@ public class TaskController {
|
||||
* 开始或继续一个【学习会话】
|
||||
*
|
||||
*/
|
||||
@GetMapping("/{taskId}/studay-sessions/start-or-continue")
|
||||
@GetMapping("/{taskNum}/studay-sessions/start-or-continue")
|
||||
public CommonResult startOrContinueStudySession(@NotEmpty(message = "taskId不可为空")
|
||||
@PathVariable String taskId) {
|
||||
StudySessionResponce responce = studySessionsServiceImpl.startOrContinueStudySession(taskId);
|
||||
@PathVariable String taskNum) throws NotFindEntitiesException {
|
||||
StudySessionResponce responce = studySessionsServiceImpl.startOrContinueStudySession(taskNum);
|
||||
return CommonResult.success(responce);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user