GetCategory 获取文章分类信息

参数列表

参数名 类型 必填 说明
id string 分类ID

返回值:

类型 map[string]interface{}

字段 类型 说明
Name string 栏目名
Id uint64 栏目ID
ParentId uint64 父ID
Alias string 别名
ModelId uint 模型ID
JumpUrl string 跳转地址
CateType uint 栏目类型,1:频道,2:发布,3:跳转,4:单页
ListOrder int 排序值
Thumb string 缩略图
SeoTitle string Seo标题
Keywords string 关键词
Description string seo描述
Content string 单页内容
CreatedAt string 创建日期
UpdatedAt string 更新日期
Banner string 栏目图片

示例

//获取ID为12的文章分类
${$category := GetCategory "12"}
<div>
${$category.Name}
</div>
作者:袁学飞  创建时间:2024-03-08 11:13
最后编辑:袁学飞  更新时间:2024-04-29 14:44