cms
模板引擎标签语法

自定义筛选数据

更新时间:2024-05-12

  1. 用法示例
  2. 点此复制
    <getVodFilterList name="$List" tid="$.Q.cate_id" >
    	<foreach name="$item" index="$index" data="$List.List">
    		<li index="{{$index}}">{{$item.Name}}</li>
    	</foreach>
    </getVodFilterList>
  3. 标签参数
  4. 参数说明
    字段名 字段类型 字段说明 是否必要 默认值
    name string 变量名 false $List
    tid int64 一级视频分类ID true
  5. 响应结果
  6. 200 模板渲染返回

    响应参数 响应示例

    响应参数
    字段名 字段类型 字段说明 是否必要 默认值
    Cates slice 分类 true
    Id int64 id true
    Name string 名称 true
    Languages slice 语言 true
    Id int64 id true
    Name string 名称 true
    Regions slice 地区 true
    Id int64 id true
    Name string 名称 true
    Years slice 年份 true
    Id int64 id true
    Name string 名称 true
    Charges slice 收费 true
    Id int64 id true
    Name string 名称 true
    Labels slice 标签 true
    Id int64 id true
    Name string 名称 true
    点此复制
    {
    	"Cates": Null,
    	"Languages": Null,
    	"Regions": Null,
    	"Years": Null,
    	"Charges": Null,
    	"Labels": Null
    }