@Component public class GetPlaceAttributesMethod extends BaseMethod
参数列表
返回结果
map
(id,attribute
:推荐位数据扩展数据(字段编码,value
))
<#assign attributeMap=getPlaceAttributes('1,2,3,4')/<
${attributeMap['1'].description!}
<script> $.getJSON('${site.dynamicPath}api/method/getPlaceAttributes?parameters=1,2,3,4', function(data){ console.log(data); }); </script>
限定符和类型 | 字段和说明 |
---|---|
private CmsPlaceAttributeService |
service |
log
构造器和说明 |
---|
GetPlaceAttributesMethod() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
execute(java.util.List<freemarker.template.TemplateModel> arguments) |
int |
minParametersNumber() |
boolean |
needAppToken() |
exec, execute, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
private CmsPlaceAttributeService service
public java.lang.Object execute(java.util.List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
execute
在类中 BaseMethod
freemarker.template.TemplateModelException
public boolean needAppToken()
needAppToken
在类中 BaseMethod
public int minParametersNumber()
minParametersNumber
在类中 BaseMethod