@Controller
@RequestMapping(value="vote")
public class VoteController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private LockComponent |
lockComponent |
private CmsVoteService |
service |
private CmsUserVoteService |
userVoteService |
private CmsVoteItemService |
voteItemService |
构造器和说明 |
---|
VoteController() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
unvote(SysSite site,
javax.servlet.http.HttpSession session,
java.lang.String _csrf,
long itemId,
javax.servlet.http.HttpServletRequest request) |
private boolean |
vote(short siteId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
java.lang.String _csrf,
long itemId,
boolean vote) |
boolean |
vote(SysSite site,
javax.servlet.http.HttpSession session,
java.lang.String _csrf,
long itemId,
javax.servlet.http.HttpServletRequest request) |
private CmsVoteItemService voteItemService
private CmsUserVoteService userVoteService
private LockComponent lockComponent
private CmsVoteService service
@RequestMapping(value="vote") @ResponseBody public boolean vote(@RequestAttribute SysSite site, javax.servlet.http.HttpSession session, java.lang.String _csrf, long itemId, javax.servlet.http.HttpServletRequest request)
site
- session
- _csrf
- itemId
- request
- @RequestMapping(value="unvote") @ResponseBody public boolean unvote(@RequestAttribute SysSite site, javax.servlet.http.HttpSession session, java.lang.String _csrf, long itemId, javax.servlet.http.HttpServletRequest request)
site
- session
- _csrf
- itemId
- request
- private boolean vote(short siteId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, java.lang.String _csrf, long itemId, boolean vote)