@Controller public class ModuleController extends Object
| 构造器和说明 |
|---|
ModuleController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.rent.admin.model.Module module) |
String |
deleteModule(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 |
getModuleDetail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long mid) |
String |
getModuleIdsByType(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 |
getMultiModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long[] ids)
批量获取模块详细信息
|
String |
updateModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.rent.admin.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",
method=GET)
public String getModuleIdsByType(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/module/{mid}",
method=GET)
public String getModuleDetail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long mid)
throws Exception
Exception@RequestMapping(value="/a/u/module",
method=POST)
public String addModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.rent.admin.model.Module module)
throws Exception
Exception@RequestMapping(value="/a/u/module/{mid}",
method=PUT)
public String updateModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.rent.admin.model.Module module)
throws Exception
request - response - model - module - Exception@RequestMapping(value="/a/u/module/{mid}",
method=DELETE)
public String deleteModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long mid)
throws Exception
Exception@RequestMapping(value="/a/u/multi/module",
method=GET)
public String getMultiModule(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/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 - ExceptionCopyright © 2018. All rights reserved.