GetArticle 获取文章列表

参数列表

参数名 类型 必填 说明
id string 文章ID,例: “id:100”

####

返回值

类型 map[string]interface{}

列名 类型 说明
Id uint64 文章ID
UserId uint64 发表者用户id
Status uint 状态;1:已发布;0:未发布;
Hits uint64 查看数
LikeCount int 点赞数
PublishedAt string 发布时间
Title string post标题
Keywords string seo keywords
Summary string 摘要
OriginTitle string 转载文章的来源
OriginUrl string 转载文章的原地址
Thumb string 缩略图
IsJump uint 是否跳转地址
JumpUrl string 跳转地址
UserInfo model.SysUserSimpleRes 发布者信息
CategoryId int 分类ID
Category model.LinkedCmsCategoryCmsCategory 分类信息
Url string 文章地址
AllowComment int 是否允许评论
Description string seo 描述
ModuleId int 模型ID
Flag string 文章属性标识
Attr []string
Template string 显示模板
ModulesData map[string]interface{}
map[string]interface{}{
“Name” ,
“Type”: ,
“Options”: ,
“Label”: ,
“Sort”: ,
“Value”: ,
}

参考示例

${$newsInfo := GetArticle "id:100 | cateId:1"}
${$newsInfo.Title}
作者:袁学飞  创建时间:2023-03-08 11:43
最后编辑:袁学飞  更新时间:2024-04-29 14:44