Objects
About objects
Objects 在 GraphQL 中代表您可以访问的资源。一个对象可以包含一系列字段,这些字段都有特定的类型。
Archive
文档详情,包括文章,产品
Fields
| Name | Description |
|---|---|
| allow_oversold (Boolean) | 是否支持超卖 |
| amount (Int) | |
| canonical_url (String) | |
| cart_id (Int) | |
| category (Category) | |
| category_id (Int) | |
| category_ids ([Int]) | |
| category_titles ([String]) | |
| comment_count (Int) | |
| content (String) | |
| cost_price (Int) | |
| created_time (Int) | |
| description (String) | |
| extra (JSON) | |
| favorable_price (Int) | |
| favorite_count (Int) | |
| fixed_link (String) | |
| flag (String) | |
| has_order_fields (Boolean) | |
| has_ordered (Boolean) | |
| has_password (Boolean) | |
| has_pseudo (Int) | |
| id (Int) | |
| images ([String]) | |
| is_favorite (Boolean) | |
| is_free_shipping (Boolean) | |
| is_wholesale (Boolean) | |
| keyword_id (Int) | |
| keywords (String) | |
| link (String) | |
| logo (String) | |
| module_id (Int) | |
| module_name (String) | |
| need_logistics (Boolean) | |
| option_type (Int) | |
| options ([ArchiveOption]) | |
| order_extra (JSON) | |
| origin_amount (Int) | |
| origin_id (Int) | |
| origin_price (Int) | |
| origin_title (String) | |
| origin_url (String) | |
| parent_id (Int) | |
| password (String) | |
| password_valid (Boolean) | |
| price (Int) | |
| quantity (Int) | |
| read_level (Int) | |
| review_count (Int) | |
| seo_title (String) | |
| sold_count (Int) | |
| sort (Int) | |
| stock (Int) | |
| tags ([Tag]) | |
| template (String) | |
| thumb (String) | |
| title (String) | |
| type (String) | |
| updated_time (Int) | |
| url_token (String) | |
| user_id (Int) | |
| video_url (String) | |
| views (Int) | |
| weight (Float) | |
| weight_unit (String) | |
| wholesale_rule (WholesaleRule) | |
| wholesale_rules ([WholesaleRule]) |
ArchiveList
文档、产品列表,产品的传 module_id=2
Fields
| Name | Description |
|---|---|
| items ([Archive]) | |
| page (Int) | |
| total (Int) |
ArchiveOption
产品规格名称
Fields
| Name | Description |
|---|---|
| archive_id (Int) | |
| created_time (Int) | |
| id (Int) | |
| is_main (Int) | |
| sort (Int) | |
| title (String) | |
| updated_time (Int) | |
| values ([ArchiveOptionValue]) |
ArchiveOptionValue
产品规格选项
Fields
| Name | Description |
|---|---|
| archive_id (Int) | |
| color (String) | |
| created_time (Int) | |
| id (Int) | |
| option_id (Int) | |
| price (Int) | |
| sort (Int) | |
| title (String) | |
| updated_time (Int) |
ArchiveSku
产品规格SKU信息
Fields
| Name | Description |
|---|---|
| archive_id (Int) | |
| barcode (String) | |
| cost_price (Int) | |
| created_time (Int) | |
| hs_code (String) | |
| id (Int) | |
| logo (String) | |
| origin_price (Int) | |
| price (Int) | |
| sku (String) | |
| sold_count (Int) | |
| stock (Int) | |
| symbol (String) | |
| thumb (String) | |
| title (String) | |
| updated_time (Int) | |
| weight (Int) | |
| weight_unit (Int) |
BannerItem
首页Banner
Fields
| Name | Description |
|---|---|
| alt (String) | |
| description (String) | |
| id (Int) | |
| link (String) | |
| logo (String) | |
| type (String) |
Category
文档、产品分类
Fields
| Name | Description |
|---|---|
| archive_count (Int) | |
| content (String) | |
| description (String) | |
| detail_template (String) | |
| extra (JSON) | |
| has_children (Boolean) | |
| id (Int) | |
| images ([String]) | |
| is_current (Boolean) | |
| is_inherit (Int) | |
| keywords (String) | |
| link (String) | |
| logo (String) | |
| module_id (Int) | |
| parent_id (Int) | |
| seo_title (String) | |
| sort (Int) | |
| spacer (String) | |
| status (Int) | |
| template (String) | |
| thumb (String) | |
| title (String) | |
| type (Int) | |
| url_token (String) |
Comment
评论
Fields
| Name | Description |
|---|---|
| active (Boolean) | |
| archive_id (Int) | |
| content (String) | |
| created_time (Int) | |
| id (Int) | |
| ip (String) | |
| item_title (String) | |
| parent (Comment) | |
| parent_id (Int) | |
| status (Int) | |
| to_uid (Int) | |
| user_id (Int) | |
| user_name (String) | |
| vote_count (Int) |
CommentList
评论列表
Fields
| Name | Description |
|---|---|
| items ([Comment]) | |
| page (Int) | |
| total (Int) |
ContactSetting
联系方式
Fields
| Name | Description |
|---|---|
| address (String) | |
| cellphone (String) | |
| email (String) | |
| extra_fields ([ExtraField]) | |
| facebook (String) | |
| instagram (String) | |
| linkedin (String) | |
| pinterest (String) | |
| qq (String) | |
| qrcode (String) | |
| tiktok (String) | |
| twitter (String) | |
| user_name (String) | |
| wechat (String) | |
| whats_app (String) | |
| youtube (String) |
CurrencySetting
货币设置
Fields
| Name | Description |
|---|---|
| currency (String) | |
| name (String) | |
| symbol (String) |
CustomField
自定义字段
Fields
| Name | Description |
|---|---|
| content (String) | |
| field_name (String) | |
| follow_level (Boolean) | |
| is_filter (Boolean) | |
| is_system (Boolean) | |
| items ([String]) | |
| name (String) | |
| required (Boolean) | |
| type (String) |
ExtraField
文档扩展字段
Fields
| Name | Description |
|---|---|
| content (String) | |
| name (String) | |
| remark (String) | |
| type (String) | |
| value (JSON) |
FilterGroup
文档、产品筛选组
Fields
| Name | Description |
|---|---|
| field_name (String) | |
| items ([FilterItem]) | |
| name (String) | |
| range (Range) |
FilterItem
文档、产品筛选项
Fields
| Name | Description |
|---|---|
| is_current (Boolean) | |
| label (String) | |
| link (String) | |
| total (Int) |
FriendLink
友情链接
Fields
| Name | Description |
|---|---|
| back_link (String) | |
| checked_time (Int) | |
| contact (String) | |
| id (Int) | |
| link (String) | |
| my_link (String) | |
| my_title (String) | |
| nofollow (Int) | |
| remark (String) | |
| sort (Int) | |
| status (Int) | |
| title (String) |
IndexSetting
首页TDK
Fields
| Name | Description |
|---|---|
| seo_description (String) | |
| seo_keywords (String) | |
| seo_title (String) |
Module
模型信息
Fields
| Name | Description |
|---|---|
| description (String) | |
| id (Int) | |
| is_system (Int) | |
| keywords (String) | |
| link (String) | |
| name (String) | |
| status (Int) | |
| table_name (String) | |
| title (String) | |
| title_name (String) | |
| url_token (String) |
MultiLangSite
多语言站点信息
Fields
| Name | Description |
|---|---|
| base_url (String) | |
| id (Int) | |
| is_current (Boolean) | |
| language (String) | |
| language_emoji (String) | |
| language_icon (String) | |
| language_name (String) | |
| link (String) | |
| name (String) | |
| parent_id (Int) | |
| status (Boolean) | |
| sync_time (Int) |
Nav
导航信息
Fields
| Name | Description |
|---|---|
| description (String) | |
| id (Int) | |
| is_current (Boolean) | |
| level (Int) | |
| link (String) | |
| logo (String) | |
| nav_list ([Nav]) | |
| nav_type (Int) | |
| page_id (Int) | |
| parent_id (Int) | |
| sort (Int) | |
| spacer (String) | |
| status (Int) | |
| style (String) | |
| sub_title (String) | |
| thumb (String) | |
| title (String) | |
| type_id (Int) |
Page
单页信息
Fields
| Name | Description |
|---|---|
| content (String) | |
| description (String) | |
| id (Int) | |
| images ([String]) | |
| is_current (Boolean) | |
| keywords (String) | |
| link (String) | |
| logo (String) | |
| seo_title (String) | |
| status (Int) | |
| thumb (String) | |
| title (String) | |
| url_token (String) |
PageMeta
获取当前页面TDK信息
Fields
| Name | Description |
|---|---|
| canonical_url (String) | |
| current_page (Int) | |
| description (String) | |
| image (String) | |
| keywords (String) | |
| module_id (Int) | |
| nav_bar (Int) | |
| page_id (Int) | |
| page_name (String) | |
| params (JSON) | |
| status_code (Int) | |
| title (String) | |
| total_pages (Int) |
Range
筛选选项范围,price filter 用到
Fields
| Name | Description |
|---|---|
| max (Int) | |
| min (Int) |
Review
产品评价
Fields
| Name | Description |
|---|---|
| archive_id (Int) | |
| archive_sku_id (Int) | |
| archive_title (String) | |
| avatar_url (String) | |
| content (String) | |
| created_time (Int) | |
| email (String) | |
| id (Int) | |
| images ([String]) | |
| ip (String) | |
| order_id (String) | |
| score (Int) | |
| sku_title (String) | |
| status (Int) | |
| user_id (Int) | |
| user_name (String) |
ReviewList
产品评价列表
Fields
| Name | Description |
|---|---|
| items ([Review]) | |
| page (Int) | |
| total (Int) |
Sku
获取产品SKU信息
Fields
| Name | Description |
|---|---|
| currency (String) | |
| currency_symbol (String) | |
| has_sku (Boolean) | |
| id (Int) | |
| max_price (Int) | |
| min_price (Int) | |
| options ([ArchiveOption]) | |
| order_count (Int) | |
| price (Int) | |
| quota_used (Int) | |
| skus ([ArchiveSku]) | |
| stock (Int) | |
| thumb (String) | |
| title (String) | |
| user_limit (Int) | |
| wholesale_rules ([WholesaleRule]) |
SystemSetting
系统设置
Fields
| Name | Description |
|---|---|
| admin_url (String) | |
| ban_spider (Int) | |
| base_url (String) | |
| currency (String) | |
| default_site (Boolean) | |
| extra_fields ([ExtraField]) | |
| favicon (String) | |
| language (String) | |
| mobile_url (String) | |
| site_close (Int) | |
| site_close_tips (String) | |
| site_copyright (String) | |
| site_icp (String) | |
| site_logo (String) | |
| site_name (String) | |
| template_name (String) | |
| template_type (Int) | |
| template_url (String) |
Tag
文档标签
Fields
| Name | Description |
|---|---|
| category_id (Int) | |
| category_title (String) | |
| content (String) | |
| description (String) | |
| extra (JSON) | |
| first_letter (String) | |
| id (Int) | |
| keywords (String) | |
| link (String) | |
| logo (String) | |
| seo_title (String) | |
| status (Int) | |
| template (String) | |
| thumb (String) | |
| title (String) | |
| url_token (String) |
TagList
文档标签列表
Fields
| Name | Description |
|---|---|
| items ([Tag]) | |
| page (Int) | |
| total (Int) |
User
用户信息
Fields
| Name | Description |
|---|---|
| avatar_url (String) | |
| balance (Int) | |
| email (String) | |
| email_verified (Boolean) | |
| expire_time (Int) | |
| extra (JSON) | |
| full_avatar_url (String) | |
| group (UserGroup) | |
| group_id (Int) | |
| id (Int) | |
| introduce (String) | |
| invite_code (String) | |
| is_retailer (Int) | |
| last_login (Int) | |
| link (String) | |
| parent_id (Int) | |
| phone (String) | |
| real_name (String) | |
| status (Int) | |
| token (String) | |
| total_reward (Int) | |
| url_token (String) | |
| user_name (String) |
UserGroup
用户组
Fields
| Name | Description |
|---|---|
| description (String) | |
| favorable_price (Int) | |
| id (Int) | |
| level (Int) | |
| price (Int) | |
| setting (UserGroupSetting) | |
| status (Int) | |
| title (String) |
UserGroupSetting
用户组设置
Fields
| Name | Description |
|---|---|
| content_no_captcha (Boolean) | |
| content_no_verify (Boolean) | |
| discount (Int) | |
| expire_day (Int) | |
| parent_reward (Int) | |
| share_reward (Int) |
WholesaleRule
批发规则
Fields
| Name | Description |
|---|---|
| archive_id (Int) | |
| created_time (Int) | |
| discount_rate (Int) | |
| id (Int) | |
| max_quantity (Int) | |
| min_quantity (Int) | |
| sku_id (Int) | |
| updated_time (Int) |