@Controller
@RequestMapping(value="score")
public class ScoreController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private CmsCommentService |
commentService |
protected ConfigDataComponent |
configDataComponent |
private CmsContentService |
contentService |
protected org.apache.commons.logging.Log |
log |
private CmsUserScoreService |
service |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
ScoreController() |
限定符和类型 | 方法和说明 |
---|---|
private boolean |
score(SysSite site,
long userId,
java.lang.String itemType,
long itemId,
boolean score,
int scores,
javax.servlet.http.HttpServletRequest request) |
boolean |
score(SysSite site,
SysUser user,
java.lang.String itemType,
long itemId,
java.lang.Integer scores,
javax.servlet.http.HttpServletRequest request) |
boolean |
unscore(SysSite site,
SysUser user,
java.lang.String itemType,
long itemId,
javax.servlet.http.HttpServletRequest request) |
protected final org.apache.commons.logging.Log log
protected ConfigDataComponent configDataComponent
private CmsUserScoreService service
private CmsCommentService commentService
private CmsContentService contentService
private TemplateComponent templateComponent
@RequestMapping(value="score") @ResponseBody public boolean score(@RequestAttribute SysSite site, @SessionAttribute SysUser user, java.lang.String itemType, long itemId, java.lang.Integer scores, javax.servlet.http.HttpServletRequest request)
site
- user
- itemType
- itemId
- scores
- request
- @RequestMapping(value="unscore") @ResponseBody public boolean unscore(@RequestAttribute SysSite site, @SessionAttribute SysUser user, java.lang.String itemType, long itemId, javax.servlet.http.HttpServletRequest request)
site
- user
- itemType
- itemId
- request
- private boolean score(SysSite site, long userId, java.lang.String itemType, long itemId, boolean score, int scores, javax.servlet.http.HttpServletRequest request)