|
@@ -9,11 +9,13 @@ import com.ynfy.buss.course.usercoursecatalog.service.IUserCourseCatalogService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
@@ -186,4 +188,17 @@ public class UserCourseCatalogController extends JeecgController<UserCourseCatal
|
|
|
return Result.OK(userCourseCatalogService.getCourseStudyProcess(courseId));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取任务学习记录
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @AutoLog(value = "获取任务学习记录")
|
|
|
+ @ApiOperation(value = "获取任务学习记录", notes = "获取任务学习记录")
|
|
|
+ @GetMapping(value = "/findUserCatalog")
|
|
|
+ public Result<?> findUserCatalog(@RequestParam String courseCatalogId) {
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ return Result.OK(userCourseCatalogService.findUserCatalog(sysUser.getId(), courseCatalogId));
|
|
|
+ }
|
|
|
+
|
|
|
}
|