cms
模板引擎标签语法

小说列表数据

更新时间:2024-05-11

  1. 用法示例
  2. 点此复制
    <getNovelList name="$List">
    	<foreach name="$item" index="$index" data="$List.List">
    		<li index="{{$index}}">{{$item.Name}}</li>
    	</foreach>
    </getNovelList>
  3. 标签参数
  4. 参数说明
    字段名 字段类型 字段说明 是否必要 默认值
    page int 页码 true 1
    limit int 请求 true 10
    order string 排序 1:发布时间倒序 2:发布时间正序 3:字数倒序 4:字数正序 true 1
    categoryId int 分类id(二级id) true
    categoryPid int 分类父id(一级id) true
    keyword string 关键字 true
    isEnd int 是否完结 true
    labelFilterId int64 标签(题材)筛选Id true
    wordsFilterId int64 字数筛选Id true
    name string 变量名 false $List
  5. 响应结果
  6. 200 模板渲染返回

    响应参数 响应示例

    响应参数
    字段名 字段类型 字段说明 是否必要 默认值
    Total int64 总数 true
    Count int 返回条数 true
    List slice 数据列表 true
    Id int64 id true
    Name string 名称 true
    Intro string 简介 true
    CategoryPid int64 类型(分类1级id) true
    CategoryChildId int64 分类(分类2级id) true
    IsEnd int 是否完结 1完结 2未完结 true
    Cover string 封面图片地址 true
    Author string 作者 true
    ReleaseDate int64 发布日期 true
    Status int64 true
    SiteId int64 true
    WordNumber int 字数 true
    CreateAt int64 true
    UpdateAt int64 true
    Category struct 类型 true
    Id int64 主键id false
    Name string 名称 true
    CategoryChild struct 分类 true
    Id int64 主键id false
    Name string 名称 true
    ChapterNumber int64 章节数量 true
    Labels slice 标签列表 true
    点此复制
    {
    	"Total": 0,
    	"Count": 0,
    	"List": Null
    }