data

package
v0.0.0-...-1f241a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 AttributeValue struct {
	ValueId string `json:"value_id"` //属性值id
	Name    string `json:"name"`     //属性值名称
}

type BrandSearch

type BrandSearch struct {
	EnName string `json:"en_name"` //品牌英文名
	Name   string `json:"name"`    //品牌中文名
	Id     string `json:"id"`      //品牌id,用于创建商品时使用
}

type CategoryId

type CategoryId struct {
	EnName string `json:"en_name"` //分类英文名
	Name   string `json:"name"`    //分类中文名
	Id     string `json:"id"`      //分类id,用于创建商品时使用
}

type ExpressCompany

type ExpressCompany struct {
	ExpressCompanyCode string `json:"express_company_code"` //快递公司编码,用于发货
	ExpressCompanyName string `json:"express_company_name"` //快递公司名称
}

type Logistic

type Logistic struct {
	LogisticsCode        string `json:"logistics_code"`        //物流模式代码
	LogisticsTranslation string `json:"logistics_translation"` //物流模式名称解释
}

type LogisticPlan

type LogisticPlan struct {
	Id   string `json:"id"`   //物流方案ID
	Name string `json:"name"` //物流方案名称
}

type ReqAttributeId

type ReqAttributeId struct {
	AttributeId string `json:"attribute_id"` //属性id,包括规格id和产品参数id
}

type ReqBrandSearch

type ReqBrandSearch struct {
	Keyword  string `json:"keyword"`   //品牌关键字,若为中文,url上需转码
	PageNo   int64  `json:"page_no"`   //品牌页数, 从第一页开始,默认为1
	PageSize int64  `json:"page_size"` //品牌列表每页数量,默认为50
}

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 SplVariation struct {
	EnName string `json:"en_name"`
	Id     string `json:"id"`
	Name   string `json:"name"`
}

type SpvVariation

type SpvVariation struct {
	EnName string `json:"en_name"`
	Id     string `json:"id"`
	Name   string `json:"name"`
}

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 规格
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL