类 GetPlaceAttributeMethod

java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.cms.GetPlaceAttributeMethod
所有已实现的接口:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

@Component public class GetPlaceAttributeMethod extends BaseMethod
getPlaceAttribute 获取推荐位数据扩展数据

参数列表

parameter list

パラメータリスト

  1. 推荐位数据id

返回结果

return result

戻り値

  • attribute:推荐位数据扩展数据(字段编码,value)

使用示例

usage example

使用例

<#assign attribute=getContentAttribute(1)/<

${(attribute.description)!}

<script>
$.getJSON('${site.dynamicPath}api/method/getContentAttribute?appToken=接口访问授权Token&parameters=1', function(data){
console.log(data.description);
});
</script>
 
  • 字段详细资料

  • 构造器详细资料

    • GetPlaceAttributeMethod

      public GetPlaceAttributeMethod()
  • 方法详细资料

    • execute

      public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
      指定者:
      execute 在类中 BaseMethod
      抛出:
      freemarker.template.TemplateModelException
    • needAppToken

      public boolean needAppToken()
      指定者:
      needAppToken 在类中 BaseMethod
      返回:
      whether to need app token
    • minParametersNumber

      public int minParametersNumber()
      指定者:
      minParametersNumber 在类中 BaseMethod
      返回:
      min parameters number