fivee

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

资质共享API model

https://open.taobao.com/API.htm?docId=42262&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchProduct

type BatchProduct struct {
	// 到期日期
	DueDate string `json:"due_date,omitempty" xml:"due_date,omitempty"`
	// 原产国
	OriginCountry string `json:"origin_country,omitempty" xml:"origin_country,omitempty"`
	// 生产日期
	ProduceDate string `json:"produce_date,omitempty" xml:"produce_date,omitempty"`
}

BatchProduct

type Company

type Company struct {
	// 成立时间
	EstablishedDate string `json:"established_date,omitempty" xml:"established_date,omitempty"`
	// 证照信息
	Licences []Licence `json:"licences,omitempty" xml:"licences>licence,omitempty"`
	// 商名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 注册资本
	RegisteredCapital string `json:"registered_capital,omitempty" xml:"registered_capital,omitempty"`
	// 统一社会信用代码
	UniqueCode string `json:"unique_code,omitempty" xml:"unique_code,omitempty"`
	// 关系类型:1.制造商 2.供应商
	RelationType []int64 `json:"relation_type,omitempty" xml:"relation_type>int64,omitempty"`
}

Company

type ImportProduct

type ImportProduct struct {
	// 条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 证照信息
	Licences []Licence `json:"licences,omitempty" xml:"licences>licence,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 代理商信息
	AgentCompanies []Company `json:"agent_companies,omitempty" xml:"agent_companies>company,omitempty"`
	// 批次或备案编号
	AuthCode string `json:"auth_code,omitempty" xml:"auth_code,omitempty"`
	// 检验检疫证明
	SanitationCertificates []SanitationCertificate `json:"sanitation_certificates,omitempty" xml:"sanitation_certificates>sanitation_certificate,omitempty"`
	// 业务方内部编号(比如大润发的货号)
	InnerCode string `json:"inner_code,omitempty" xml:"inner_code,omitempty"`
	// 业务备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
}

ImportProduct

type InnerProduct

type InnerProduct struct {
	// 批次或备案证书编号
	AuthCode string `json:"auth_code,omitempty" xml:"auth_code,omitempty"`
	// 条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 证照信息
	Licences []Licence `json:"licences,omitempty" xml:"licences>licence,omitempty"`
	// 商品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 生产商
	ProduceCompanies []Company `json:"produce_companies,omitempty" xml:"produce_companies>company,omitempty"`
	// 供应商信息
	ProviderCompanies []Company `json:"provider_companies,omitempty" xml:"provider_companies>company,omitempty"`
	// 各业务方内部编号(例如RT的内部货号)
	InnerCode string `json:"inner_code,omitempty" xml:"inner_code,omitempty"`
	// 业务方备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
}

InnerProduct

type Licence

type Licence struct {
	// 认证机构
	CertificationBody string `json:"certification_body,omitempty" xml:"certification_body,omitempty"`
	// 编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 到期日期
	DueDate string `json:"due_date,omitempty" xml:"due_date,omitempty"`
	// 生效日期
	EffectiveDate string `json:"effective_date,omitempty" xml:"effective_date,omitempty"`
	// 证照名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 附件下载地址列表
	Urls []string `json:"urls,omitempty" xml:"urls>string,omitempty"`
}

Licence

type SanitationCertificate

type SanitationCertificate struct {
	// 批次信息
	BatchProducts []BatchProduct `json:"batch_products,omitempty" xml:"batch_products>batch_product,omitempty"`
	// 编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 下载地址列表
	Urls []string `json:"urls,omitempty" xml:"urls>string,omitempty"`
}

SanitationCertificate

type TaobaoFiveeCompanyGetAPIRequest added in v1.2.0

type TaobaoFiveeCompanyGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询商信息 API请求 taobao.fivee.company.get

资质共享平台查询商信息

func NewTaobaoFiveeCompanyGetRequest

func NewTaobaoFiveeCompanyGetRequest() *TaobaoFiveeCompanyGetAPIRequest

初始化TaobaoFiveeCompanyGetAPIRequest对象

func (TaobaoFiveeCompanyGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoFiveeCompanyGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoFiveeCompanyGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoFiveeCompanyGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoFiveeCompanyGetAPIRequest) GetParamBucode added in v1.2.0

func (r TaobaoFiveeCompanyGetAPIRequest) GetParamBucode() string

ParamBucode Getter

func (TaobaoFiveeCompanyGetAPIRequest) GetParamUniqueCode added in v1.2.0

func (r TaobaoFiveeCompanyGetAPIRequest) GetParamUniqueCode() string

ParamUniqueCode Getter

func (*TaobaoFiveeCompanyGetAPIRequest) SetParamBucode added in v1.2.0

func (r *TaobaoFiveeCompanyGetAPIRequest) SetParamBucode(_paramBucode string) error

ParamBucode Setter bu身份标识

func (*TaobaoFiveeCompanyGetAPIRequest) SetParamUniqueCode added in v1.2.0

func (r *TaobaoFiveeCompanyGetAPIRequest) SetParamUniqueCode(_paramUniqueCode string) error

ParamUniqueCode Setter 统一社会信息用代码

type TaobaoFiveeCompanyGetAPIResponse

type TaobaoFiveeCompanyGetAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeCompanyGetAPIResponseModel
}

查询商信息 API返回值 taobao.fivee.company.get

资质共享平台查询商信息

type TaobaoFiveeCompanyGetAPIResponseModel added in v1.2.0

type TaobaoFiveeCompanyGetAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_company_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoFiveeCompanyGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询商信息 成功返回结果

type TaobaoFiveeCompanyGetResult

type TaobaoFiveeCompanyGetResult struct {
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回素材id
	Data *Company `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoFiveeCompanyGetResult

type TaobaoFiveeCompanyUploadAPIRequest added in v1.2.0

type TaobaoFiveeCompanyUploadAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

上传商信息接口 API请求 taobao.fivee.company.upload

资质共享平台上传资质证照

func NewTaobaoFiveeCompanyUploadRequest

func NewTaobaoFiveeCompanyUploadRequest() *TaobaoFiveeCompanyUploadAPIRequest

初始化TaobaoFiveeCompanyUploadAPIRequest对象

func (TaobaoFiveeCompanyUploadAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoFiveeCompanyUploadAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoFiveeCompanyUploadAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoFiveeCompanyUploadAPIRequest) GetParamBucode added in v1.2.0

func (r TaobaoFiveeCompanyUploadAPIRequest) GetParamBucode() string

ParamBucode Getter

func (TaobaoFiveeCompanyUploadAPIRequest) GetParamCompany added in v1.2.0

func (r TaobaoFiveeCompanyUploadAPIRequest) GetParamCompany() *Company

ParamCompany Getter

func (*TaobaoFiveeCompanyUploadAPIRequest) SetParamBucode added in v1.2.0

func (r *TaobaoFiveeCompanyUploadAPIRequest) SetParamBucode(_paramBucode string) error

ParamBucode Setter bu身份标识

func (*TaobaoFiveeCompanyUploadAPIRequest) SetParamCompany added in v1.2.0

func (r *TaobaoFiveeCompanyUploadAPIRequest) SetParamCompany(_paramCompany *Company) error

ParamCompany Setter 商家证照信息

type TaobaoFiveeCompanyUploadAPIResponse

type TaobaoFiveeCompanyUploadAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeCompanyUploadAPIResponseModel
}

上传商信息接口 API返回值 taobao.fivee.company.upload

资质共享平台上传资质证照

type TaobaoFiveeCompanyUploadAPIResponseModel added in v1.2.0

type TaobaoFiveeCompanyUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_company_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// code
	CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"`
	// 返回素材id
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"`
}

上传商信息接口 成功返回结果

type TaobaoFiveeImportproductGetAPIRequest added in v1.2.0

type TaobaoFiveeImportproductGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

进口商品查询 API请求 taobao.fivee.importproduct.get

资质共享平台查询进口商品信息

func NewTaobaoFiveeImportproductGetRequest

func NewTaobaoFiveeImportproductGetRequest() *TaobaoFiveeImportproductGetAPIRequest

初始化TaobaoFiveeImportproductGetAPIRequest对象

func (TaobaoFiveeImportproductGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoFiveeImportproductGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoFiveeImportproductGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoFiveeImportproductGetAPIRequest) GetParamBarcode added in v1.2.0

func (r TaobaoFiveeImportproductGetAPIRequest) GetParamBarcode() string

ParamBarcode Getter

func (TaobaoFiveeImportproductGetAPIRequest) GetParamBuCode added in v1.2.0

func (r TaobaoFiveeImportproductGetAPIRequest) GetParamBuCode() string

ParamBuCode Getter

func (*TaobaoFiveeImportproductGetAPIRequest) SetParamBarcode added in v1.2.0

func (r *TaobaoFiveeImportproductGetAPIRequest) SetParamBarcode(_paramBarcode string) error

ParamBarcode Setter 条形码

func (*TaobaoFiveeImportproductGetAPIRequest) SetParamBuCode added in v1.2.0

func (r *TaobaoFiveeImportproductGetAPIRequest) SetParamBuCode(_paramBuCode string) error

ParamBuCode Setter bu身份标识

type TaobaoFiveeImportproductGetAPIResponse

type TaobaoFiveeImportproductGetAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeImportproductGetAPIResponseModel
}

进口商品查询 API返回值 taobao.fivee.importproduct.get

资质共享平台查询进口商品信息

type TaobaoFiveeImportproductGetAPIResponseModel added in v1.2.0

type TaobaoFiveeImportproductGetAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_importproduct_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoFiveeImportproductGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

进口商品查询 成功返回结果

type TaobaoFiveeImportproductGetResult

type TaobaoFiveeImportproductGetResult struct {
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回素材id
	Data *ImportProduct `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoFiveeImportproductGetResult

type TaobaoFiveeImportproductPublishAPIRequest added in v1.2.0

type TaobaoFiveeImportproductPublishAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

进口商品发布 API请求 taobao.fivee.importproduct.publish

直营业务商家入住发布商品时,上传商品及商家证照信息

func NewTaobaoFiveeImportproductPublishRequest

func NewTaobaoFiveeImportproductPublishRequest() *TaobaoFiveeImportproductPublishAPIRequest

初始化TaobaoFiveeImportproductPublishAPIRequest对象

func (TaobaoFiveeImportproductPublishAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoFiveeImportproductPublishAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoFiveeImportproductPublishAPIRequest) GetImportProduct added in v1.2.0

ImportProduct Getter

func (TaobaoFiveeImportproductPublishAPIRequest) GetParamBucode added in v1.2.0

ParamBucode Getter

func (*TaobaoFiveeImportproductPublishAPIRequest) SetImportProduct added in v1.2.0

func (r *TaobaoFiveeImportproductPublishAPIRequest) SetImportProduct(_importProduct *ImportProduct) error

ImportProduct Setter 进口商品

func (*TaobaoFiveeImportproductPublishAPIRequest) SetParamBucode added in v1.2.0

func (r *TaobaoFiveeImportproductPublishAPIRequest) SetParamBucode(_paramBucode string) error

ParamBucode Setter bu身份标识

type TaobaoFiveeImportproductPublishAPIResponse

type TaobaoFiveeImportproductPublishAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeImportproductPublishAPIResponseModel
}

进口商品发布 API返回值 taobao.fivee.importproduct.publish

直营业务商家入住发布商品时,上传商品及商家证照信息

type TaobaoFiveeImportproductPublishAPIResponseModel added in v1.2.0

type TaobaoFiveeImportproductPublishAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_importproduct_publish_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// code
	CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"`
	// 返回素材id
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"`
}

进口商品发布 成功返回结果

type TaobaoFiveeInnerproductGetAPIRequest added in v1.2.0

type TaobaoFiveeInnerproductGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国产商品资质查询 API请求 taobao.fivee.innerproduct.get

资质共享平台,国产商品查询

func NewTaobaoFiveeInnerproductGetRequest

func NewTaobaoFiveeInnerproductGetRequest() *TaobaoFiveeInnerproductGetAPIRequest

初始化TaobaoFiveeInnerproductGetAPIRequest对象

func (TaobaoFiveeInnerproductGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoFiveeInnerproductGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoFiveeInnerproductGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoFiveeInnerproductGetAPIRequest) GetParamBarcode added in v1.2.0

func (r TaobaoFiveeInnerproductGetAPIRequest) GetParamBarcode() string

ParamBarcode Getter

func (TaobaoFiveeInnerproductGetAPIRequest) GetParamBucode added in v1.2.0

func (r TaobaoFiveeInnerproductGetAPIRequest) GetParamBucode() string

ParamBucode Getter

func (*TaobaoFiveeInnerproductGetAPIRequest) SetParamBarcode added in v1.2.0

func (r *TaobaoFiveeInnerproductGetAPIRequest) SetParamBarcode(_paramBarcode string) error

ParamBarcode Setter 条形码

func (*TaobaoFiveeInnerproductGetAPIRequest) SetParamBucode added in v1.2.0

func (r *TaobaoFiveeInnerproductGetAPIRequest) SetParamBucode(_paramBucode string) error

ParamBucode Setter bu身份标识

type TaobaoFiveeInnerproductGetAPIResponse

type TaobaoFiveeInnerproductGetAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeInnerproductGetAPIResponseModel
}

国产商品资质查询 API返回值 taobao.fivee.innerproduct.get

资质共享平台,国产商品查询

type TaobaoFiveeInnerproductGetAPIResponseModel added in v1.2.0

type TaobaoFiveeInnerproductGetAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_innerproduct_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoFiveeInnerproductGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

国产商品资质查询 成功返回结果

type TaobaoFiveeInnerproductGetResult

type TaobaoFiveeInnerproductGetResult struct {
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回素材id
	Data *InnerProduct `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoFiveeInnerproductGetResult

type TaobaoFiveeInnerproductPublishAPIRequest added in v1.2.0

type TaobaoFiveeInnerproductPublishAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国产商品发布 API请求 taobao.fivee.innerproduct.publish

资质共享平台国产商品发布

func NewTaobaoFiveeInnerproductPublishRequest

func NewTaobaoFiveeInnerproductPublishRequest() *TaobaoFiveeInnerproductPublishAPIRequest

初始化TaobaoFiveeInnerproductPublishAPIRequest对象

func (TaobaoFiveeInnerproductPublishAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoFiveeInnerproductPublishAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoFiveeInnerproductPublishAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoFiveeInnerproductPublishAPIRequest) GetParamBucode added in v1.2.0

ParamBucode Getter

func (TaobaoFiveeInnerproductPublishAPIRequest) GetParamInnerProduct added in v1.2.0

func (r TaobaoFiveeInnerproductPublishAPIRequest) GetParamInnerProduct() *InnerProduct

ParamInnerProduct Getter

func (*TaobaoFiveeInnerproductPublishAPIRequest) SetParamBucode added in v1.2.0

func (r *TaobaoFiveeInnerproductPublishAPIRequest) SetParamBucode(_paramBucode string) error

ParamBucode Setter bu身份标识

func (*TaobaoFiveeInnerproductPublishAPIRequest) SetParamInnerProduct added in v1.2.0

func (r *TaobaoFiveeInnerproductPublishAPIRequest) SetParamInnerProduct(_paramInnerProduct *InnerProduct) error

ParamInnerProduct Setter 国产商品

type TaobaoFiveeInnerproductPublishAPIResponse

type TaobaoFiveeInnerproductPublishAPIResponse struct {
	model.CommonResponse
	TaobaoFiveeInnerproductPublishAPIResponseModel
}

国产商品发布 API返回值 taobao.fivee.innerproduct.publish

资质共享平台国产商品发布

type TaobaoFiveeInnerproductPublishAPIResponseModel added in v1.2.0

type TaobaoFiveeInnerproductPublishAPIResponseModel struct {
	XMLName xml.Name `xml:"fivee_innerproduct_publish_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// code
	CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"`
	// 返回素材id
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"`
}

国产商品发布 成功返回结果

Jump to

Keyboard shortcuts

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