@Controller public class TaskController extends Object
| 构造器和说明 |
|---|
TaskController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addTaskViewRecord(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Long taskId,
org.springframework.ui.ModelMap model) |
void |
convertRcmdJsonArrToList(String rcmdContents,
List<Long> lessonIdList,
List<Long> periodIdList,
List<Long> taskIdList) |
Map |
firstTaskIdOfPeriod(List<com.ptteng.academy.course.model.Lesson> normalLessonList) |
String |
getLessonIntroIOSJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Long taskId,
Integer status,
org.springframework.ui.ModelMap model) |
List |
getNormalLessonList(List<Long> lessonIdList) |
List |
getNormalPeriodList(List<Long> periodIdList) |
List |
getNormalTaskList(List<Long> taskIdList) |
List |
getRecommend(List<com.ptteng.academy.course.model.Lesson> normalLessonList,
List<com.ptteng.academy.course.model.Period> normalPeriodList,
List<com.ptteng.academy.course.model.Task> normalTaskList,
Long userId) |
Integer |
getTaskIsFavorite(Long userId,
Long taskId) |
String |
getTaskJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id,
Long userId,
String os,
String version)
获得任务详情
|
String |
getTaskListByPeriodIdJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long periodId,
Long userId) |
String |
getTaskStudyReferenceJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Map |
getUserLessonIsLockMap(List normalLessonList,
Long userId) |
Map |
getUserPeriodIsLockMap(List<com.ptteng.academy.course.model.Period> normalPeriodList,
Long userId) |
Map<Long,Integer> |
getUserProgressMap(Long userId,
Long taskId) |
Map |
getUserTaskIsLockMap(List<com.ptteng.academy.course.model.Task> normalTaskList,
Long userId) |
Map<Long,Integer> |
getUserTaskProgressMap(Long userId,
List<Long> taskIds) |
void |
SetNamesById(com.ptteng.academy.course.model.Task task) |
void |
UpdateUserProgress(Long userId,
Long taskId) |
void |
UpdateUserViewRecord(Long userId,
Long taskId) |
@RequestMapping(value="/a/task/{id}",
method=GET)
public String getTaskJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id,
Long userId,
String os,
String version)
throws Exception
request - response - model - id - Exceptionpublic Map firstTaskIdOfPeriod(List<com.ptteng.academy.course.model.Lesson> normalLessonList) throws NoSuchFieldException, IllegalAccessException
public List getRecommend(List<com.ptteng.academy.course.model.Lesson> normalLessonList, List<com.ptteng.academy.course.model.Period> normalPeriodList, List<com.ptteng.academy.course.model.Task> normalTaskList, Long userId) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException, NoSuchFieldException, IllegalAccessException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionNoSuchFieldExceptionIllegalAccessExceptionpublic void convertRcmdJsonArrToList(String rcmdContents, List<Long> lessonIdList, List<Long> periodIdList, List<Long> taskIdList)
public Map getUserLessonIsLockMap(List normalLessonList, Long userId) throws NoSuchFieldException, IllegalAccessException, com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
NoSuchFieldExceptionIllegalAccessExceptioncom.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic Map getUserPeriodIsLockMap(List<com.ptteng.academy.course.model.Period> normalPeriodList, Long userId) throws NoSuchFieldException, IllegalAccessException, com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
NoSuchFieldExceptionIllegalAccessExceptioncom.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic Map getUserTaskIsLockMap(List<com.ptteng.academy.course.model.Task> normalTaskList, Long userId) throws NoSuchFieldException, IllegalAccessException, com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
NoSuchFieldExceptionIllegalAccessExceptioncom.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic List getNormalLessonList(List<Long> lessonIdList) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException, NoSuchFieldException, IllegalAccessException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionNoSuchFieldExceptionIllegalAccessExceptionpublic List getNormalPeriodList(List<Long> periodIdList) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException, NoSuchFieldException, IllegalAccessException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionNoSuchFieldExceptionIllegalAccessExceptionpublic List getNormalTaskList(List<Long> taskIdList) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException, NoSuchFieldException, IllegalAccessException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionNoSuchFieldExceptionIllegalAccessExceptionpublic void SetNamesById(com.ptteng.academy.course.model.Task task)
throws com.gemantic.common.exception.ServiceException,
com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic void UpdateUserViewRecord(Long userId, Long taskId) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic void UpdateUserProgress(Long userId, Long taskId) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic Integer getTaskIsFavorite(Long userId, Long taskId) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic Map<Long,Integer> getUserProgressMap(Long userId, Long taskId) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoException@RequestMapping(value="/a/u/task/viewRecord",
method=POST)
public String addTaskViewRecord(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Long taskId,
org.springframework.ui.ModelMap model)
@RequestMapping(value="/a/task/list/{periodId}",
method=GET)
public String getTaskListByPeriodIdJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long periodId,
Long userId)
throws Exception
Exceptionpublic Map<Long,Integer> getUserTaskProgressMap(Long userId, List<Long> taskIds) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException, NoSuchFieldException, IllegalAccessException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionNoSuchFieldExceptionIllegalAccessException@RequestMapping(value="/a/study/reference",
method=GET)
public String getTaskStudyReferenceJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
@RequestMapping(value="/a/u/task/{taskId}/share/{status}",
method=POST)
public String getLessonIntroIOSJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@PathVariable
Long taskId,
@PathVariable
Integer status,
org.springframework.ui.ModelMap model)
Copyright © 2018. All rights reserved.