@Controller public class ModuleController extends Object
| Constructor and Description |
|---|
ModuleController() |
| Modifier and Type | Method and Description |
|---|---|
String |
addModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.uweiqian.home.model.Module module) |
String |
deleteModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long mid) |
String |
getModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
返回id
|
String |
getModuleIdsByTypeJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String type)
查询模块列表
|
String |
getModuleIdsByTypeList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
String type) |
String |
getModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long mid)
根据ID查找模块
|
String |
getMultiModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long[] ids)
批量获取模块详细信息
|
String |
updateModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.uweiqian.home.model.Module module)
修改模块
|
@RequestMapping(value="/web/c/module",
method=GET)
public String getModuleIdsByTypeList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
String type)
throws Exception
Exception@RequestMapping(value="/a/u/module/id/{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 - Exception@RequestMapping(value="/a/u/module/",
method=GET)
public String getModuleIdsByTypeJsonList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String type)
throws Exception
Exception@RequestMapping(value="/a/u/multi/module",
method=GET)
public String getMultiModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long[] ids)
throws Exception
request - response - model - ids - Exception@RequestMapping(value="/a/u/module/{mid}",
method=GET)
public String getModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long mid)
throws Exception
request - response - model - mid - Exception@RequestMapping(value="/a/u/module/{mid}",
method=PUT)
public String updateModuleJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.uweiqian.home.model.Module module)
throws Exception
request - response - model - module - Exception@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.uweiqian.home.model.Module module)
throws Exception
ExceptionCopyright © 2016. All rights reserved.