cms
模板引擎标签语法

影片分组列表数据

更新时间:2024-05-11

  1. 用法示例
  2. 点此复制
    <getVideoGroupList name="$List" page="$.Q.page" limit="$.Q.limit" keyword="$.Q.keyword" banner="false" hots="false" random="false" categoryPid="$.Q.type_id" categoryId="$.Q.cate_id" regionFilterId="$.Q.area_id" languageFilterId="$.Q.lang_id" yearFilterId="$.Q.year_id">
    	<foreach name="$item" index="$index" data="$item.CateInfo">
    		<li index="{{$index}}">{{$item.Name}}</li>
    	</foreach>
    </getVideoGroupList>
  3. 标签参数
  4. 参数说明
    字段名 字段类型 字段说明 是否必要 默认值
    limit int 条数 true
    offset int 偏移量 true
    banner bool 轮播 true
    hots bool 热榜 true
    random bool 随机.排序和随机同时存在时,随机不生效 true
    categoryId int 分类id true
    categoryPid int 分类父id true
    tagId int 标签id true
    videoId int64 视频ID true
    keyword string 关键字 true
    page int 页码 true
    regionFilterId int64 地区筛选Id true
    languageFilterId int64 语言筛选Id true
    yearFilterId int64 年份筛选Id true
    order string 1-推荐升序,2-推荐降序,3-发布时间升序,4-发布时间降序,5-观看人数升序,6-观看人数倒序,7-流行度升序,8-流行度倒序,9-更新时间正序,10-更新时间倒序 true
    labelFilterId int64 标签(题材)筛选Id true
    chargeFilterId int64 收费模式筛选Id true
    name string 变量名 false $List
  5. 响应结果
  6. 200 模板渲染返回

    响应参数 响应示例

    响应参数
    字段名 字段类型 字段说明 是否必要 默认值
    Total int 总数 true
    List slice 数据 true
    CateInfo struct 分类信息 true
    ID int64 id true
    Name string 分类名称 true
    pid int64 父级ID true
    ReferCount int64 资源数量 true
    ChildNum int 子分类个数 true
    Children slice 子分类 true
    ID int64 id true
    Name string 分类名称 true
    pid int64 父级ID true
    ReferCount int64 资源数量 true
    ChildNum int 子分类个数 true
    Children slice 子分类 true
    VideoList struct 视频列表 true
    Total int 总数 true
    List slice 数据 true
    ID int64 ID true
    Name string 名称 true
    HorizontalPoster string 横屏海报 true
    VerticalPoster string 竖屏海报 true
    Screenshot string 截屏 true
    Date int64 时间 true
    Category slice 分类 true
    ID int64 id true
    Name string 名称 true
    Pid int64 父id true
    IsVertical int 是否是竖屏,1-是,0-否 true
    Watch int 观看数 true
    Popularity int 人气 true
    Title string 影片标题 true
    SurfacePlot string 影片封面图 true
    Recommend int 是否推荐 1是 2否 true
    Cycle int 是否轮播 1是 2否 true
    ChargingMode int 收费模式 1免费 2vip免费 3金币点播 true
    Note string 备注 true
    Introduce string 简介 true
    CycleImg string 轮播图片 true
    Duration int 时长(单位s) true
    Number int 集数 true
    CategoryPid int64 一级分类id true
    CategoryChildId int64 二级分类id true
    BuyMode int 购买模式 1按部 2按集 true
    Gold int64 金币 true
    Currency int64 金币(兼容字段) true
    ScoreFormat string 评分 true
    DbScore int64 评分 true
    Total int 总集数 true
    Num int 更新集数 true
    End bool 是否完结 true
    Directors slice 导演 true
    Id int64 名人id true
    Name string 名人姓名(中文) true
    Introduce string 简介 true
    Areas string 地区(国籍) true
    Avatar string 头像 true
    Num int 影片数 true
    EnglishName string 英文姓名 true
    Profession string 职业 true
    Popularity int 人气 true
    Actors slice 演员 true
    Id int64 名人id true
    Name string 名人姓名(中文) true
    Introduce string 简介 true
    Areas string 地区(国籍) true
    Avatar string 头像 true
    Num int 影片数 true
    EnglishName string 英文姓名 true
    Profession string 职业 true
    Popularity int 人气 true
    Areas slice 地区 true
    ID int64 id true
    Name string 名称 true
    Year string 年份 true
    Tag slice 备注 true
    ID int64 id true
    Name string 名称 true
    ShelfDate int64 发布(更新)时间 true
    ReleaseDate int64 上映时间 true
    IsVertical int 是否是竖屏,1-是,0-否 true
    Update int 更新 true
    Count int 当前页返回条数 true
    Count int 当前页返回条数 true
    点此复制
    {
    	"Total": 0,
    	"List": [
    		{
    			"CateInfo": {
    				"Pid": 0,
    				"ReferCount": 0,
    				"ChildNum": 0,
    				"Children": [
    					{
    						"Pid": 0,
    						"ReferCount": 0,
    						"ChildNum": 0,
    						"Children": Null
    					}
    				]
    			},
    			"VideoList": {
    				"Total": 0,
    				"List": [
    					{
    						"Id": 0,
    						"Name": "",
    						"HorizontalPoster": "",
    						"VerticalPoster": "",
    						"Screenshot": "",
    						"Date": 0,
    						"Category": Null,
    						"WatchNums": 0,
    						"Popularity": 0,
    						"Title": "",
    						"SurfacePlot": "",
    						"Recommend": 0,
    						"Cycle": 0,
    						"ChargingMode": 0,
    						"Note": "",
    						"Introduce": "",
    						"CycleImg": "",
    						"Duration": 0,
    						"Number": 0,
    						"CategoryPid": 0,
    						"CategoryChildId": 0,
    						"BuyMode": 0,
    						"Gold": 0,
    						"Currency": 0,
    						"ScoreFormat": "",
    						"DbScore": 0,
    						"Total": 0,
    						"Num": 0,
    						"End": False,
    						"Directors": Null,
    						"Actors": Null,
    						"Areas": Null,
    						"Year": "",
    						"Tag": Null,
    						"ShelfDate": 0,
    						"ReleaseDate": 0,
    						"IsVertical": 0
    					}
    				],
    				"Update": 0,
    				"Count": 0
    			}
    		}
    	],
    	"Count": 0
    }