@Controller public class ModuleController extends Object
| 构造器和说明 |
|---|
ModuleController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.carrots.bangbang.model.Module module)
1.新增模块
|
String |
deleteModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
2.删除模块
|
String |
getModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
5.获得模块详情
|
String |
getmoduleList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size)
4.模块列表
|
String |
updateModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.carrots.bangbang.model.Module module,
Long id)
3.修改模块
|
@RequestMapping(value="/a/u/module",
method=POST)
public String addModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.carrots.bangbang.model.Module module)
throws Exception
request - response - model - module - Exception@RequestMapping(value="/a/u/module/{id}",
method=DELETE)
public String deleteModuleJson(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/module/{id}",
method=PUT)
public String updateModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.carrots.bangbang.model.Module module,
@PathVariable
Long id)
throws Exception
request - response - model - module - Exception@RequestMapping(value="/a/u/module/search",
method=GET)
public String getmoduleList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size)
throws Exception
request - response - model - Exception@RequestMapping(value="/a/u/module/{id}",
method=GET)
public String getModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id)
throws Exception
request - response - model - id - ExceptionCopyright © 2017. All rights reserved.