类 CmsUserCollectionListDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class CmsUserCollectionListDirective extends AbstractTemplateDirective
userCollectionList 用户评分列表查询指令

参数列表

parameter list

パラメータリスト

  • userId:用户id
  • contentId:内容id
  • pageIndex:页码
  • pageSize:每页条数

返回结果

return result

戻り値

使用示例

usage example

使用例

<@cms.userCollectionList userId=1 pageSize=10><#list page.list as a>${a.scores}<#sep>,</#list></@cms.userCollectionList>

<script>
$.getJSON('${site.dynamicPath}api/directive/cms/userCollectionList?userId=1&pageSize=10', function(data){
 console.log(data.page.totalCount);
});
</script>
 
  • 字段详细资料

  • 构造器详细资料

    • CmsUserCollectionListDirective

      public CmsUserCollectionListDirective()
  • 方法详细资料

    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException