@Controller
@RequestMapping(value="/{version}/message")
public class MessageResource
extends java.lang.Object
构造器和说明 |
---|
MessageResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
deleteMessages(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
int type,
java.lang.String[] ids) |
Response |
getMessages(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String page,
java.lang.String count,
java.lang.String keyword,
java.lang.String type,
boolean unread,
boolean untoast) |
Response |
updateReaded(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String[] ids) |
Response |
updateToasted(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String[] ids) |
@RequestMapping(value="/list", method=GET) @ResponseBody public Response getMessages(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestParam(value="page",required=false) java.lang.String page, @RequestParam(value="count",required=false) java.lang.String count, @RequestParam(value="keyword",required=false) java.lang.String keyword, @RequestParam(value="type",required=false) java.lang.String type, @RequestParam(value="unread",required=false) boolean unread, @RequestParam(value="untoast",required=false) boolean untoast) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/delete/{type}", method={DELETE,POST}) @ResponseBody public Response deleteMessages(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="type") int type, @RequestBody java.lang.String[] ids) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/toasted", method=PUT) @ResponseBody public Response updateToasted(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody java.lang.String[] ids) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/readed", method=PUT) @ResponseBody public Response updateReaded(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody java.lang.String[] ids) throws java.lang.Exception
java.lang.Exception