Queries

About queries

archive

Type: Archive

获取文档、产品详情

Arguments

Name Description
password (String) 有密码的文档,传password验证获取全部内容
id (Int)
filename (String) 同url_token
url_token (String) 文档别名。特殊情况:上一篇:prev,下一篇:next
render (Boolean) 如果是Markdown编辑器,传render为true进行渲染成html

archiveParams

Type: [CustomField]

获取文档自定义字段

Arguments

Name Description
filename (String)
url_token (String)
render (Boolean)
id (Int)

archives

Type: ArchiveList

获取文档列表

Arguments

Name Description
parent_id (Int)
exclude_category_id (Int)
exclude_category_ids ([Int])
module_id (Int)
user_id (Int)
show_flag (Boolean)
draft (Boolean)
author_id (Int)
q (String)
like (String)
keywords (String)
type (String)
limit (Int)
render (Boolean)
category_id (Int)
tag_id (Int)
flag (String)
page (Int)
category_ids ([Int])
show_content (Boolean)
show_extra (Boolean)
child (Boolean)
order (String)
tag (String)
offset (Int)
id (Int)

banners

Type: [BannerItem]

获取首页轮播图

Arguments

Name Description
type (String)

categories

Type: [Category]

获取分类列表

Arguments

Name Description
parent_id (Int)
module_id (Int)
all (Boolean)
limit (Int)
offset (Int)

category

Type: Category

获取分类详情

Arguments

Name Description
id (Int)
filename (String)
catname (String)
url_token (String)
render (Boolean)

comments

Type: CommentList

获取评论列表

Arguments

Name Description
order (String)
page (Int)
limit (Int)
offset (Int)
render (Boolean)
id (Int)
user_id (Int)

contact

Type: ContactSetting

获取联系方式信息


currency

Type: CurrencySetting

获取货币信息


diy

Type: [ExtraField]

获取系统自定义字段

Arguments

Name Description
render (Boolean)

filters

Type: [FilterGroup]

获取文档、产品筛选字段

Arguments

Name Description
module_id (Int)
show_all (Boolean)
all_text (String)
show_price (Boolean)

friendLinks

Type: [FriendLink]

获取友情链接


guestbookFields

Type: [CustomField]

获取留言字段配置


index

Type: IndexSetting

获取首页TDK信息


languages

Type: [MultiLangSite]

获取多语言站点信息


metadata

Type: PageMeta

获取当前页面元信息

Arguments

Name Description
path (String)
params (JSON)

module

Type: Module

获取模块详情

Arguments

Name Description
filename (String)
url_token (String)
id (Int)

modules

Type: [Module]

获取模块列表


navs

Type: [Nav]

获取导航列表

Arguments

Name Description
type_id (Int)
show_type (String)

page

Type: Page

获取单页面详情

Arguments

Name Description
render (Boolean)
id (Int)
filename (String)
url_token (String)

pages

Type: [Page]

获取单页面列表

Arguments

Name Description
limit (Int)
offset (Int)

reviews

Type: ReviewList

获取产品评价列表

Arguments

Name Description
user_id (Int)
order (String)
page (Int)
limit (Int)
offset (Int)
render (Boolean)
id (Int)

sku

Type: Sku

获取产品SKU信息

Arguments

Name Description
id (Int)
filename (String)
url_token (String)

system

Type: SystemSetting

获取系统设置信息


tag

Type: Tag

获取文档、产品标签详情

Arguments

Name Description
url_token (String)
render (Boolean)
id (Int)
filename (String)

tags

Type: TagList

获取标签列表

Arguments

Name Description
letter (String)
page (Int)
item_id (Int)
category_id (Int)
type (String)
order (String)
limit (Int)
offset (Int)
category_ids ([Int])

user

Type: User

获取用户信息

Arguments

Name Description
id (Int)