@Controller public class LessonController extends Object
| 构造器和说明 |
|---|
LessonController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.academy.course.vo.LessonAndIntroduction lessonAndIntroduction)
新增专题
|
String |
deleteLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long lessonId) |
String |
getLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
查看专题详情
|
String |
getLessonsBySubjectIdJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long subjectId) |
String |
getLessonsOrderBySortJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String subjectName,
String name,
Integer status,
Integer gradeDept)
根据条件查找专题
|
String |
sort(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
List<Long> ids)
排序专题
|
String |
updateLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id,
com.ptteng.academy.course.vo.LessonAndIntroduction lessonAndIntroduction)
编辑专题
|
String |
updateLessonStatusJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id,
Integer status)
上下架专题
|
@RequestMapping(value="/a/u/lesson/list",
method=GET)
public String getLessonsOrderBySortJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String subjectName,
String name,
Integer status,
Integer gradeDept)
throws Exception
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionException@RequestMapping(value="/a/u/lesson/list/{subjectId} ",
method=GET)
public String getLessonsBySubjectIdJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long subjectId)
throws Exception
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionException@RequestMapping(value="/a/u/lesson/{id}",
method=GET)
public String getLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id)
throws Exception
request - response - model - id - Exception@RequestMapping(value="/a/u/lesson/{id}",
method=PUT)
public String updateLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id,
@RequestBody
com.ptteng.academy.course.vo.LessonAndIntroduction lessonAndIntroduction)
throws Exception
request - response - model - Exception@RequestMapping(value="/a/u/lesson",
method=POST)
public String addLessonJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@RequestBody
com.ptteng.academy.course.vo.LessonAndIntroduction lessonAndIntroduction)
throws Exception
request - response - model - Exception@RequestMapping(value="/a/u/lesson/{id}/status/{status}",
method=PUT)
public String updateLessonStatusJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id,
@PathVariable
Integer status)
throws Exception
request - response - model - id - Exception@RequestMapping(value="/a/u/lesson/sort",
method=POST)
public String sort(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@RequestBody
List<Long> ids)
throws Exception
request - response - model - ids - ExceptionCopyright © 2018. All rights reserved.