Documentation ¶
Index ¶
- Constants
- type AttributeOption
- type AttributeValue
- type BrandSearch
- type CategoryId
- type ExpressCompany
- type Logistic
- type LogisticPlan
- type ReqAttributeId
- type ReqBrandSearch
- type ReqCategoryId
- type ReqCategoryIds
- type ResAttributeOptions
- type ResAttributesValues
- type ResBrandSearch
- type ResCategoryId
- type ResCategoryIds
- type ResExpressCompanies
- type ResLogistics
- type ResLogisticsPlan
- type SplVariation
- type SpvVariation
- type Variation
Constants ¶
View Source
const ( BRAND_SEARCH_URL = "/ark/open_api/v1/brand_search" CATEGORIES_URL = "/ark/open_api/v1/categories" VARIATIONS_URL = "/ark/open_api/v1/category/%s/variations" ATTRIBUTE_OPTIONS_URL = "/ark/open_api/v1/categories/%s/attribute_options" ATTRIBUTES_VALUeS_URL = "/ark/open_api/v1/attributes/%s/values" )
View Source
const ( EXPRESS_COMPANIES_URL = "/ark/open_api/v0/express_companies" LOGISTICS_URL = "/ark/open_api/v0/package/logistics" LOGISTICS_PLAN_URL = "/ark/open_api/v1/package/logistics_plan" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeOption ¶
type AttributeOption struct { AcceptsImage bool `json:"accepts_image"` //是否接受图片,true为是,false为否 EnName string `json:"en_name"` //参数英文名 IsRequired bool `json:"is_required"` //是否必填,true为必填,false为选填 IsMulti bool `json:"is_multi"` //是否多选, true为多选, false为单选 Id string `json:"id"` //参数id Name bool `json:"name"` //参数中文名 }
type AttributeValue ¶
type BrandSearch ¶
type CategoryId ¶
type ExpressCompany ¶
type LogisticPlan ¶
type ReqAttributeId ¶
type ReqAttributeId struct {
AttributeId string `json:"attribute_id"` //属性id,包括规格id和产品参数id
}
type ReqBrandSearch ¶
type ReqCategoryId ¶
type ReqCategoryId struct {
CategoryId string `json:"category_id"` //末级分类
}
type ReqCategoryIds ¶
type ReqCategoryIds struct {
CategoryIds []string `json:"category_ids"` //父级分类, 分类ID使用逗号隔开,高级分类在前,低级分类在后,如果该参数为空,则返回所有的一级分类
}
type ResAttributeOptions ¶
type ResAttributeOptions struct { util.CommonError Data []*AttributeOption `json:"data"` }
type ResAttributesValues ¶
type ResAttributesValues struct { util.CommonError Data []*AttributeValue `json:"data"` }
type ResBrandSearch ¶
type ResBrandSearch struct { util.CommonError Data []*BrandSearch `json:"data"` }
type ResCategoryId ¶
type ResCategoryId struct { util.CommonError Data []*Variation `json:"data"` }
type ResCategoryIds ¶
type ResCategoryIds struct { util.CommonError Data []*CategoryId `json:"data"` }
type ResExpressCompanies ¶
type ResExpressCompanies struct { util.CommonError Data []*ExpressCompany `json:"data"` }
type ResLogistics ¶
type ResLogistics struct { util.CommonError Data []*Logistic `json:"data"` }
type ResLogisticsPlan ¶
type ResLogisticsPlan struct { util.CommonError Data []*LogisticPlan `json:"data"` }
type SplVariation ¶
type SpvVariation ¶
type Variation ¶
type Variation struct { EnName string `json:"en_name"` //英文名 Id string `json:"id"` //规格id Name string `json:"name"` //中文名 SpvVariations []*SpvVariation `json:"spv_variations"` //SPV 规格 SplVariations []*SplVariation `json:"spl_variations"` //SPL 规格 }
Click to show internal directories.
Click to hide internal directories.