@Controller public class NoticeController extends Object
| 构造器和说明 |
|---|
NoticeController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
com.ptteng.academy.user.model.Notice notice)
create_by shixing
新增公告
|
String |
deleteNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
create_by shixing
删除公告
|
String |
deleteNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id,
Integer status)
create_by shixing
修改公告状态
|
String |
getNotice(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id)
create_by shixing
公告栏详情
|
String |
getnoticeList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String title,
Integer status)
公告栏列表
|
String |
updateNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Long id,
String title,
String context,
String contextIOS)
create_by shixing
修改公告
|
@RequestMapping(value="/a/u/notice/search",
method=GET)
public String getnoticeList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
Integer page,
Integer size,
String title,
Integer status)
throws Exception
ServiceExceptionServiceDaoExceptionException@RequestMapping(value="/a/u/notice/{id}",
method=GET)
public String getNotice(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id)
throws Exception
Exception@RequestMapping(value="/a/u/notice/{id}",
method=PUT)
public String updateNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id,
String title,
String context,
String contextIOS)
throws Exception
Exception@RequestMapping(value="/a/u/notice",
method=POST)
public String addNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@RequestBody
com.ptteng.academy.user.model.Notice notice)
throws Exception
Exception@RequestMapping(value="/a/u/notice/{id}",
method=DELETE)
public String deleteNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id)
throws Exception
id - Exception@RequestMapping(value="/a/u/notice/id/{id}/status/{status}",
method=PUT)
public String deleteNoticeJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
Long id,
@PathVariable
Integer status)
throws Exception
id - ExceptionCopyright © 2018. All rights reserved.