apis

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWXAPIHost = "https://api.weixin.qq.com"

微信视频号API默认域名

View Source
const HttpTTL = 1 * time.Minute

Variables

View Source
var FastClient = CreateFastHttpClient()

Functions

func CreateFastHttpClient

func CreateFastHttpClient() fasthttp.Client

func Retry

func Retry(o backoff.Operation) error

func StrVal

func StrVal(value interface{}) string

StrVal 获取变量的字符串值 浮点型 3.0将会转换成字符串3, "3",长整数不会变成科学计数法 非数值或字符类型的变量将会被转换成JSON格式字符串

Types

type ApiClient

type ApiClient struct {
	AppId     string // 应用唯一身份标识
	AppSecret string // 应用密钥
	// contains filtered or unexported fields
}

API调用客户端

func NewApiClient

func NewApiClient(appId, appSecret string, opts Options) *ApiClient

API客户端初始化

func (*ApiClient) ExecAddresscodeGet added in v1.0.0

func (c *ApiClient) ExecAddresscodeGet(req ReqAddresscodeGet) (RespAddresscodeGet, error)

func (*ApiClient) ExecAftersaleAcceptapply added in v1.0.0

func (c *ApiClient) ExecAftersaleAcceptapply(req ReqAftersaleAcceptapply) (RespAftersaleAcceptapply, error)

func (*ApiClient) ExecAftersaleAddcomplaintmaterial added in v1.0.0

func (c *ApiClient) ExecAftersaleAddcomplaintmaterial(req ReqAftersaleAddcomplaintmaterial) (RespAftersaleAddcomplaintmaterial, error)

func (*ApiClient) ExecAftersaleAddcomplaintproof added in v1.0.0

func (c *ApiClient) ExecAftersaleAddcomplaintproof(req ReqAftersaleAddcomplaintproof) (RespAftersaleAddcomplaintproof, error)

func (*ApiClient) ExecAftersaleGetaftersalelist added in v1.0.0

func (c *ApiClient) ExecAftersaleGetaftersalelist(req ReqAftersaleGetaftersalelist) (RespAftersaleGetaftersalelist, error)

func (*ApiClient) ExecAftersaleGetaftersaleorder added in v1.0.0

func (c *ApiClient) ExecAftersaleGetaftersaleorder(req ReqAftersaleGetaftersaleorder) (RespAftersaleGetaftersaleorder, error)

func (*ApiClient) ExecAftersaleGetcomplaintorder added in v1.0.0

func (c *ApiClient) ExecAftersaleGetcomplaintorder(req ReqAftersaleGetcomplaintorder) (RespAftersaleGetcomplaintorder, error)

func (*ApiClient) ExecAftersaleRejectapply added in v1.0.0

func (c *ApiClient) ExecAftersaleRejectapply(req ReqAftersaleRejectapply) (RespAftersaleRejectapply, error)

func (*ApiClient) ExecAftersaleUploadrefundcertificate added in v1.0.0

func (c *ApiClient) ExecAftersaleUploadrefundcertificate(req ReqAftersaleUploadrefundcertificate) (RespAftersaleUploadrefundcertificate, error)

func (*ApiClient) ExecBrandAdd added in v1.0.0

func (c *ApiClient) ExecBrandAdd(req ReqBrandAdd) (RespBrandAdd, error)

func (*ApiClient) ExecBrandAll added in v1.0.0

func (c *ApiClient) ExecBrandAll(req ReqBrandAll) (RespBrandAll, error)

func (*ApiClient) ExecBrandAuditCancel added in v1.0.0

func (c *ApiClient) ExecBrandAuditCancel(req ReqBrandAuditCancel) (RespBrandAuditCancel, error)

func (*ApiClient) ExecBrandDelete added in v1.0.0

func (c *ApiClient) ExecBrandDelete(req ReqBrandDelete) (RespBrandDelete, error)

func (*ApiClient) ExecBrandGet added in v1.0.0

func (c *ApiClient) ExecBrandGet(req ReqBrandGet) (RespBrandGet, error)

func (*ApiClient) ExecBrandListGet added in v1.0.0

func (c *ApiClient) ExecBrandListGet(req ReqBrandListGet) (RespBrandListGet, error)

func (*ApiClient) ExecBrandUpdate added in v1.0.0

func (c *ApiClient) ExecBrandUpdate(req ReqBrandUpdate) (RespBrandUpdate, error)

func (*ApiClient) ExecCategoryAdd added in v1.0.0

func (c *ApiClient) ExecCategoryAdd(req ReqCategoryAdd) (RespCategoryAdd, error)

func (*ApiClient) ExecCategoryAll added in v1.0.0

func (c *ApiClient) ExecCategoryAll(req ReqCategoryAll) (RespCategoryAll, error)

func (*ApiClient) ExecCategoryAuditCancel added in v1.0.0

func (c *ApiClient) ExecCategoryAuditCancel(req ReqCategoryAuditCancel) (RespCategoryAuditCancel, error)

func (*ApiClient) ExecCategoryAuditGet added in v1.0.0

func (c *ApiClient) ExecCategoryAuditGet(req ReqCategoryAuditGet) (RespCategoryAuditGet, error)

func (*ApiClient) ExecCategoryAvailablesoncategoriesGet added in v1.0.0

func (c *ApiClient) ExecCategoryAvailablesoncategoriesGet(req ReqCategoryAvailablesoncategoriesGet) (RespCategoryAvailablesoncategoriesGet, error)

func (*ApiClient) ExecCategoryDetail added in v1.0.0

func (c *ApiClient) ExecCategoryDetail(req ReqCategoryDetail) (RespCategoryDetail, error)

func (*ApiClient) ExecCategoryListGet added in v1.0.0

func (c *ApiClient) ExecCategoryListGet(req ReqCategoryListGet) (RespCategoryListGet, error)

func (*ApiClient) ExecCouponCreate added in v1.0.6

func (c *ApiClient) ExecCouponCreate(req ReqCouponCreate) (RespCouponCreate, error)

func (*ApiClient) ExecCouponGet added in v1.0.6

func (c *ApiClient) ExecCouponGet(req ReqCouponGet) (RespCouponGet, error)

func (*ApiClient) ExecCouponGetList added in v1.0.6

func (c *ApiClient) ExecCouponGetList(req ReqCouponGetList) (RespCouponGetList, error)

func (*ApiClient) ExecCouponGetUserCoupon added in v1.0.6

func (c *ApiClient) ExecCouponGetUserCoupon(req ReqCouponGetUserCoupon) (RespCouponGetUserCoupon, error)

func (*ApiClient) ExecCouponGetUserCouponList added in v1.0.6

func (c *ApiClient) ExecCouponGetUserCouponList(req ReqCouponGetUserCouponList) (RespCouponGetUserCouponList, error)

func (*ApiClient) ExecCouponUpdate added in v1.0.6

func (c *ApiClient) ExecCouponUpdate(req ReqCouponUpdate) (RespCouponUpdate, error)

func (*ApiClient) ExecCouponUpdateStatus added in v1.0.6

func (c *ApiClient) ExecCouponUpdateStatus(req ReqCouponUpdateStatus) (RespCouponUpdateStatus, error)

func (*ApiClient) ExecEcBasicsInfoGet

func (c *ApiClient) ExecEcBasicsInfoGet(req ReqEcBasicsInfoGet) (RespEcBasicsInfoGet, error)

func (*ApiClient) ExecFundsGetbalance added in v1.1.5

func (c *ApiClient) ExecFundsGetbalance(req ReqFundsGetbalance) (RespFundsGetbalance, error)

func (*ApiClient) ExecFundsGetbankacct added in v1.1.5

func (c *ApiClient) ExecFundsGetbankacct(req ReqFundsGetbankacct) (RespFundsGetbankacct, error)

func (*ApiClient) ExecFundsGetfundsflowdetail added in v1.1.5

func (c *ApiClient) ExecFundsGetfundsflowdetail(req ReqFundsGetfundsflowdetail) (RespFundsGetfundsflowdetail, error)

func (*ApiClient) ExecFundsGetfundsflowlist added in v1.1.5

func (c *ApiClient) ExecFundsGetfundsflowlist(req ReqFundsGetfundsflowlist) (RespFundsGetfundsflowlist, error)

func (*ApiClient) ExecFundsGetwithdrawdetail added in v1.1.5

func (c *ApiClient) ExecFundsGetwithdrawdetail(req ReqFundsGetwithdrawdetail) (RespFundsGetwithdrawdetail, error)

func (*ApiClient) ExecFundsGetwithdrawlist added in v1.1.5

func (c *ApiClient) ExecFundsGetwithdrawlist(req ReqFundsGetwithdrawlist) (RespFundsGetwithdrawlist, error)

func (*ApiClient) ExecFundsSetbankacct added in v1.1.5

func (c *ApiClient) ExecFundsSetbankacct(req ReqFundsSetbankacct) (RespFundsSetbankacct, error)

func (*ApiClient) ExecFundsSubmitwithdraw added in v1.1.5

func (c *ApiClient) ExecFundsSubmitwithdraw(req ReqFundsSubmitwithdraw) (RespFundsSubmitwithdraw, error)

func (*ApiClient) ExecGetAccessToken

func (c *ApiClient) ExecGetAccessToken(req ReqGetAccessToken) (RespGetAccessToken, error)

func (*ApiClient) ExecGetLeadsInfoByComponentId added in v1.0.0

func (c *ApiClient) ExecGetLeadsInfoByComponentId(req ReqGetLeadsInfoByComponentId) (RespGetLeadsInfoByComponentId, error)

func (*ApiClient) ExecGetLeadsInfoByRequestId added in v1.0.0

func (c *ApiClient) ExecGetLeadsInfoByRequestId(req ReqGetLeadsInfoByRequestId) (RespGetLeadsInfoByRequestId, error)

func (*ApiClient) ExecGetLeadsRequestId added in v1.0.0

func (c *ApiClient) ExecGetLeadsRequestId(req ReqGetLeadsRequestId) (RespGetLeadsRequestId, error)

func (*ApiClient) ExecGetbankbynum added in v1.1.5

func (c *ApiClient) ExecGetbankbynum(req ReqGetbankbynum) (RespGetbankbynum, error)

func (*ApiClient) ExecGetbanklist added in v1.1.5

func (c *ApiClient) ExecGetbanklist(req ReqGetbanklist) (RespGetbanklist, error)

func (*ApiClient) ExecGetcity added in v1.1.5

func (c *ApiClient) ExecGetcity(req ReqGetcity) (RespGetcity, error)

func (*ApiClient) ExecGetprovince added in v1.1.5

func (c *ApiClient) ExecGetprovince(req ReqGetprovince) (RespGetprovince, error)

func (*ApiClient) ExecGetsubbranch added in v1.1.5

func (c *ApiClient) ExecGetsubbranch(req ReqGetsubbranch) (RespGetsubbranch, error)

func (*ApiClient) ExecImgUpload added in v1.0.0

func (c *ApiClient) ExecImgUpload(req ReqImgUpload) (RespImgUpload, error)

func (*ApiClient) ExecLogisticsEwaybillBizAccountGet added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizAccountGet(req ReqLogisticsEwaybillBizAccountGet) (RespLogisticsEwaybillBizAccountGet, error)

func (*ApiClient) ExecLogisticsEwaybillBizDeliveryGet added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizDeliveryGet(req ReqLogisticsEwaybillBizDeliveryGet) (RespLogisticsEwaybillBizDeliveryGet, error)

func (*ApiClient) ExecLogisticsEwaybillBizOrderCancel added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizOrderCancel(req ReqLogisticsEwaybillBizOrderCancel) (RespLogisticsEwaybillBizOrderCancel, error)

func (*ApiClient) ExecLogisticsEwaybillBizOrderCreate added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizOrderCreate(req ReqLogisticsEwaybillBizOrderCreate) (RespLogisticsEwaybillBizOrderCreate, error)

func (*ApiClient) ExecLogisticsEwaybillBizOrderGet added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizOrderGet(req ReqLogisticsEwaybillBizOrderGet) (RespLogisticsEwaybillBizOrderGet, error)

func (*ApiClient) ExecLogisticsEwaybillBizOrderPrecreate added in v1.1.6

func (c *ApiClient) ExecLogisticsEwaybillBizOrderPrecreate(req ReqLogisticsEwaybillBizOrderPrecreate) (RespLogisticsEwaybillBizOrderPrecreate, error)

func (*ApiClient) ExecMediaGet added in v1.0.0

func (c *ApiClient) ExecMediaGet(req ReqMediaGet) ([]byte, error)

func (*ApiClient) ExecMerchantAddfreighttemplate added in v1.0.0

func (c *ApiClient) ExecMerchantAddfreighttemplate(req ReqMerchantAddfreighttemplate) (RespMerchantAddfreighttemplate, error)

func (*ApiClient) ExecMerchantAddressAdd added in v1.0.0

func (c *ApiClient) ExecMerchantAddressAdd(req ReqMerchantAddressAdd) (RespMerchantAddressAdd, error)

func (*ApiClient) ExecMerchantAddressDelete added in v1.0.0

func (c *ApiClient) ExecMerchantAddressDelete(req ReqMerchantAddressDelete) (RespMerchantAddressDelete, error)

func (*ApiClient) ExecMerchantAddressGet added in v1.0.0

func (c *ApiClient) ExecMerchantAddressGet(req ReqMerchantAddressGet) (RespMerchantAddressGet, error)

func (*ApiClient) ExecMerchantAddressList added in v1.0.0

func (c *ApiClient) ExecMerchantAddressList(req ReqMerchantAddressList) (RespMerchantAddressList, error)

func (*ApiClient) ExecMerchantAddressUpdate added in v1.0.0

func (c *ApiClient) ExecMerchantAddressUpdate(req ReqMerchantAddressUpdate) (RespMerchantAddressUpdate, error)

func (*ApiClient) ExecMerchantGetfreighttemplatedetail added in v1.0.0

func (c *ApiClient) ExecMerchantGetfreighttemplatedetail(req ReqMerchantGetfreighttemplatedetail) (RespMerchantGetfreighttemplatedetail, error)

func (*ApiClient) ExecMerchantGetfreighttemplatelist added in v1.0.0

func (c *ApiClient) ExecMerchantGetfreighttemplatelist(req ReqMerchantGetfreighttemplatelist) (RespMerchantGetfreighttemplatelist, error)

func (*ApiClient) ExecMerchantUpdatefreighttemplate added in v1.0.0

func (c *ApiClient) ExecMerchantUpdatefreighttemplate(req ReqMerchantUpdatefreighttemplate) (RespMerchantUpdatefreighttemplate, error)

func (*ApiClient) ExecOrderAddressUpdate added in v1.0.0

func (c *ApiClient) ExecOrderAddressUpdate(req ReqOrderAddressUpdate) (RespOrderAddressUpdate, error)

func (*ApiClient) ExecOrderDeliverySend added in v1.0.0

func (c *ApiClient) ExecOrderDeliverySend(req ReqOrderDeliverySend) (RespOrderDeliverySend, error)

func (*ApiClient) ExecOrderDeliverycompanylistGet added in v1.0.0

func (c *ApiClient) ExecOrderDeliverycompanylistGet(req ReqOrderDeliverycompanylistGet) (RespOrderDeliverycompanylistGet, error)

func (*ApiClient) ExecOrderGet added in v1.0.0

func (c *ApiClient) ExecOrderGet(req ReqOrderGet) (RespOrderGet, error)

func (*ApiClient) ExecOrderListGet added in v1.0.0

func (c *ApiClient) ExecOrderListGet(req ReqOrderListGet) (RespOrderListGet, error)

func (*ApiClient) ExecOrderMerchantnotesUpdate added in v1.0.0

func (c *ApiClient) ExecOrderMerchantnotesUpdate(req ReqOrderMerchantnotesUpdate) (RespOrderMerchantnotesUpdate, error)

func (*ApiClient) ExecOrderPriceUpdate added in v1.0.0

func (c *ApiClient) ExecOrderPriceUpdate(req ReqOrderPriceUpdate) (RespOrderPriceUpdate, error)

func (*ApiClient) ExecOrderSearch added in v1.0.0

func (c *ApiClient) ExecOrderSearch(req ReqOrderSearch) (RespOrderSearch, error)

func (*ApiClient) ExecProductAdd added in v1.0.0

func (c *ApiClient) ExecProductAdd(req ReqProductAdd) (RespProductAdd, error)

func (*ApiClient) ExecProductAuditCancel added in v1.0.0

func (c *ApiClient) ExecProductAuditCancel(req ReqProductAuditCancel) (RespProductAuditCancel, error)

func (*ApiClient) ExecProductDelete added in v1.0.0

func (c *ApiClient) ExecProductDelete(req ReqProductDelete) (RespProductDelete, error)

func (*ApiClient) ExecProductDelisting added in v1.0.0

func (c *ApiClient) ExecProductDelisting(req ReqProductDelisting) (RespProductDelisting, error)

func (*ApiClient) ExecProductGet added in v1.0.0

func (c *ApiClient) ExecProductGet(req ReqProductGet) (RespProductGet, error)

func (*ApiClient) ExecProductLimiteddiscounttaskAdd added in v1.0.0

func (c *ApiClient) ExecProductLimiteddiscounttaskAdd(req ReqProductLimiteddiscounttaskAdd) (RespProductLimiteddiscounttaskAdd, error)

func (*ApiClient) ExecProductLimiteddiscounttaskDelete added in v1.0.0

func (c *ApiClient) ExecProductLimiteddiscounttaskDelete(req ReqProductLimiteddiscounttaskDelete) (RespProductLimiteddiscounttaskDelete, error)

func (*ApiClient) ExecProductLimiteddiscounttaskListGet added in v1.0.0

func (c *ApiClient) ExecProductLimiteddiscounttaskListGet(req ReqProductLimiteddiscounttaskListGet) (RespProductLimiteddiscounttaskListGet, error)

func (*ApiClient) ExecProductLimiteddiscounttaskStop added in v1.0.0

func (c *ApiClient) ExecProductLimiteddiscounttaskStop(req ReqProductLimiteddiscounttaskStop) (RespProductLimiteddiscounttaskStop, error)

func (*ApiClient) ExecProductListGet added in v1.0.0

func (c *ApiClient) ExecProductListGet(req ReqProductListGet) (RespProductListGet, error)

func (*ApiClient) ExecProductListing added in v1.0.0

func (c *ApiClient) ExecProductListing(req ReqProductListing) (RespProductListing, error)

func (*ApiClient) ExecProductStockGet added in v1.0.0

func (c *ApiClient) ExecProductStockGet(req ReqProductStockGet) (RespProductStockGet, error)

func (*ApiClient) ExecProductStockUpdate added in v1.0.0

func (c *ApiClient) ExecProductStockUpdate(req ReqProductStockUpdate) (RespProductStockUpdate, error)

func (*ApiClient) ExecProductUpdate added in v1.0.0

func (c *ApiClient) ExecProductUpdate(req ReqProductUpdate) (RespProductUpdate, error)

func (*ApiClient) ExecQrcodeCheck added in v1.1.5

func (c *ApiClient) ExecQrcodeCheck(req ReqQrcodeCheck) (RespQrcodeCheck, error)

func (*ApiClient) ExecQrcodeGet added in v1.1.5

func (c *ApiClient) ExecQrcodeGet(req ReqQrcodeGet) (RespQrcodeGet, error)

func (*ApiClient) ExecQualificationUpload added in v1.0.0

func (c *ApiClient) ExecQualificationUpload(req ReqQualificationUpload) (RespQualificationUpload, error)

func (*ApiClient) ExecWarehouseAddressPrioritysortGet added in v1.0.0

func (c *ApiClient) ExecWarehouseAddressPrioritysortGet(req ReqWarehouseAddressPrioritysortGet) (RespWarehouseAddressPrioritysortGet, error)

func (*ApiClient) ExecWarehouseAddressPrioritysortSet added in v1.0.0

func (c *ApiClient) ExecWarehouseAddressPrioritysortSet(req ReqWarehouseAddressPrioritysortSet) (RespWarehouseAddressPrioritysortSet, error)

func (*ApiClient) ExecWarehouseCoverlocationsAdd added in v1.0.0

func (c *ApiClient) ExecWarehouseCoverlocationsAdd(req ReqWarehouseCoverlocationsAdd) (RespWarehouseCoverlocationsAdd, error)

func (*ApiClient) ExecWarehouseCoverlocationsDel added in v1.0.0

func (c *ApiClient) ExecWarehouseCoverlocationsDel(req ReqWarehouseCoverlocationsDel) (RespWarehouseCoverlocationsDel, error)

func (*ApiClient) ExecWarehouseCreate added in v1.0.0

func (c *ApiClient) ExecWarehouseCreate(req ReqWarehouseCreate) (RespWarehouseCreate, error)

func (*ApiClient) ExecWarehouseDetailUpdate added in v1.0.0

func (c *ApiClient) ExecWarehouseDetailUpdate(req ReqWarehouseDetailUpdate) (RespWarehouseDetailUpdate, error)

func (*ApiClient) ExecWarehouseGet added in v1.0.0

func (c *ApiClient) ExecWarehouseGet(req ReqWarehouseGet) (RespWarehouseGet, error)

func (*ApiClient) ExecWarehouseListGet added in v1.0.0

func (c *ApiClient) ExecWarehouseListGet(req ReqWarehouseListGet) (RespWarehouseListGet, error)

func (*ApiClient) ExecWarehouseStockGet added in v1.0.0

func (c *ApiClient) ExecWarehouseStockGet(req ReqWarehouseStockGet) (RespWarehouseStockGet, error)

func (*ApiClient) ExecWarehouseStockUpdate added in v1.0.0

func (c *ApiClient) ExecWarehouseStockUpdate(req ReqWarehouseStockUpdate) (RespWarehouseStockUpdate, error)

func (*ApiClient) ExecWindowProductAdd added in v1.0.0

func (c *ApiClient) ExecWindowProductAdd(req ReqWindowProductAdd) (RespWindowProductAdd, error)

func (*ApiClient) ExecWindowProductGet added in v1.0.0

func (c *ApiClient) ExecWindowProductGet(req ReqWindowProductGet) (RespWindowProductGet, error)

func (*ApiClient) ExecWindowProductListGet added in v1.0.0

func (c *ApiClient) ExecWindowProductListGet(req ReqWindowProductListGet) (RespWindowProductListGet, error)

func (*ApiClient) ExecWindowProductOff added in v1.0.0

func (c *ApiClient) ExecWindowProductOff(req ReqWindowProductOff) (RespWindowProductOff, error)

func (*ApiClient) GetToken

func (c *ApiClient) GetToken() (token string, err error)

type ChangeOrderInfosItem added in v1.0.5

type ChangeOrderInfosItem struct {
	ChangePrice int    `json:"change_price"`
	ProductID   string `json:"product_id"`
	SkuID       string `json:"sku_id"`
}

type ClientError

type ClientError struct {
	// Code 错误码,0表示请求成功,非0表示请求失败。
	// 开发者需根据errcode是否为0判断是否调用成功。
	Code ErrCode
	// Msg 错误信息,调用失败会有相关的错误信息返回。
	// 仅作参考,后续可能会有变动,因此不可作为是否调用成功的判据。
	Msg string
}

ClientError 响应错误

func (*ClientError) Error

func (e *ClientError) Error() string

type CommonResp

type CommonResp struct {
	ErrCode ErrCode `json:"errcode"`
	ErrMsg  string  `json:"errmsg"`
}

func (*CommonResp) IsOK

func (x *CommonResp) IsOK() bool

IsOK 响应体是否为一次成功请求的响应 > 开发者需根据errcode是否为0判断是否调用成功(errcode意义请见全局错误码)。 > 而errmsg仅作参考,后续可能会有变动,因此不可作为是否调用成功的判据。

func (*CommonResp) TryIntoErr

func (x *CommonResp) TryIntoErr() error

type CouponDiscountCondition added in v1.0.6

type CouponDiscountCondition struct {
	ProductCnt   int      `json:"product_cnt"`
	ProductIds   []string `json:"product_ids"`
	ProductPrice int      `json:"product_price"`
}

type CouponDiscountInfo added in v1.0.6

type CouponDiscountInfo struct {
	DiscountCondition CouponDiscountCondition `json:"discount_condition"`
	DiscountFee       int                     `json:"discount_fee"`
	DiscountNum       int                     `json:"discount_num"`
}

type CouponExtInfo added in v1.0.6

type CouponExtInfo struct {
	InvalidTime   int    `json:"invalid_time"`
	JumpProductID string `json:"jump_product_id"`
	Notes         string `json:"notes"`
	ValidTime     int    `json:"valid_time"`
}

type CouponPromoteInfo added in v1.0.6

type CouponPromoteInfo struct {
	PromoteType int `json:"promote_type"`
}

type CouponReceiveInfo added in v1.0.6

type CouponReceiveInfo struct {
	EndTime           int `json:"end_time"`
	LimitNumOnePerson int `json:"limit_num_one_person"`
	StartTime         int `json:"start_time"`
	TotalNum          int `json:"total_num"`
}

type CouponValidInfo added in v1.0.6

type CouponValidInfo struct {
	ValidDayNum int `json:"valid_day_num"`
	ValidType   int `json:"valid_type"`
}

type DcsToken

type DcsToken interface {
	Get(cacheKey string) TokenInfo                                     // 获取缓存
	Set(cacheKey string, tokenInfo TokenInfo, ttl time.Duration) error // 设置缓存,ttl:缓存生存时间
	Del(cacheKey string) error                                         // 删除缓存
	Lock(cacheKey string, ttl time.Duration) bool                      // 加锁,返回成功或失败
	Unlock(cacheKey string) error                                      // 释放锁
}

分布式access_token:获取和设置access_token的值,自行实现该接口的具体逻辑,比如使用redis方案

type DeliveryListItem added in v1.1.1

type DeliveryListItem struct {
	DeliverType  int                   `json:"deliver_type"`
	DeliveryID   string                `json:"delivery_id"`
	ProductInfos []DeliveryProductInfo `json:"product_infos"`
	WaybillID    string                `json:"waybill_id"`
}

type DeliveryProductInfo added in v1.1.1

type DeliveryProductInfo struct {
	ProductCnt int    `json:"product_cnt"`
	ProductID  string `json:"product_id"`
	SkuID      string `json:"sku_id"`
}

type ErrCode

type ErrCode int64

ErrCode 错误码类型,目前只能在各个接口文档下查看可能出现的错误码类型

const ErrCode1 ErrCode = 1

请求的request_id不存在

const ErrCode100000 ErrCode = 100000

没有权限访问当前request_id对应的留资数据

const ErrCode100002 ErrCode = 100002

订单不存在,请检查订单号与 token 是否正确

const ErrCode100003 ErrCode = 100003

订单更新过于频繁,更新订单失败,请重试

const ErrCode10020000 ErrCode = 10020000

售后单号不存在

const ErrCode10020001 ErrCode = 10020001

售后单状态不合法

const ErrCode10020004 ErrCode = 10020004

非法的时间区间,不得大于24小时

const ErrCode10020006 ErrCode = 10020006

不合法的审核ID

const ErrCode10020008 ErrCode = 10020008

当前商品不允许编辑

const ErrCode10020011 ErrCode = 10020011

商品的类目长度不对(预期是有三级类目)

const ErrCode10020012 ErrCode = 10020012

销售属性不合法,不属于商品所属的三级类目

const ErrCode10020013 ErrCode = 10020013

商品 sku 数量不合理

const ErrCode10020014 ErrCode = 10020014

该 spu 处于抢购状态,不能修改sku

const ErrCode10020016 ErrCode = 10020016

批量添加 sku 失败

const ErrCode10020017 ErrCode = 10020017

类目非法

const ErrCode10020018 ErrCode = 10020018

商家不具备当前类目资质

const ErrCode10020019 ErrCode = 10020019

运费模版非法

const ErrCode10020020 ErrCode = 10020020

商品标题为空

const ErrCode10020021 ErrCode = 10020021

商品标题过长

const ErrCode10020022 ErrCode = 10020022

商品头图为空

const ErrCode10020023 ErrCode = 10020023

商品头图过多

const ErrCode10020024 ErrCode = 10020024

商品描述过长

const ErrCode10020025 ErrCode = 10020025

商品详情图片过多

const ErrCode10020026 ErrCode = 10020026

商品详情描述过长

const ErrCode10020027 ErrCode = 10020027

资质图片过多

const ErrCode10020028 ErrCode = 10020028

sku价格过高

const ErrCode10020029 ErrCode = 10020029

sku商品编码过长

const ErrCode10020030 ErrCode = 10020030

sku_out_id已存在

const ErrCode10020031 ErrCode = 10020031

sku销售属性相同 key 下不能超过100个不同value

const ErrCode10020032 ErrCode = 10020032

sku销售属性 key 过长

const ErrCode10020033 ErrCode = 10020033

sku销售属性 value 过长

const ErrCode10020034 ErrCode = 10020034

该商品的sku_id/sku_out_id填写有误

const ErrCode10020035 ErrCode = 10020035

图片/视频 url 非法, url 前缀应为mmecimage.cn/p/

const ErrCode10020036 ErrCode = 10020036

out_product_id过长

const ErrCode10020037 ErrCode = 10020037

out_sku_id过长

const ErrCode10020038 ErrCode = 10020038

上架的商品缺少sku

const ErrCode10020039 ErrCode = 10020039

SKU价格为0

const ErrCode10020040 ErrCode = 10020040

sku售卖价格大于市场价格

const ErrCode10020041 ErrCode = 10020041

账号注销中

const ErrCode10020042 ErrCode = 10020042

商品标题过短

const ErrCode10020043 ErrCode = 10020043

类目不可用,请更换类目

const ErrCode10020044 ErrCode = 10020044

商品edit_status != 2

const ErrCode10020045 ErrCode = 10020045

商品标题不得仅为数字、字母、字符,不得含非法字符,请修改后重新提交

const ErrCode10020046 ErrCode = 10020046

商品信息设置有误,请重新输入

const ErrCode10020048 ErrCode = 10020048

由于类目保证金不足,已禁止新增商品

const ErrCode10020049 ErrCode = 10020049

商品正在审核中,无法编辑或删除,请先调用撤回商品审核接口

const ErrCode10020050 ErrCode = 10020050

无权限调用该api

const ErrCode10020051 ErrCode = 10020051

参数错误

const ErrCode10020052 ErrCode = 10020052

商品不存在

const ErrCode10020054 ErrCode = 10020054

当前商品状态不允许直接更新库存,或product_id和sku_id不匹配,或库存不足以减扣,或增加减少数量为0

const ErrCode10020055 ErrCode = 10020055

参数有误

const ErrCode10020056 ErrCode = 10020056

图片格式不合法, 只支持 bmp, jpeg, jpg, png, gif, svg

const ErrCode10020057 ErrCode = 10020057

获取原图失败,请检查 url 是否合法

const ErrCode10020058 ErrCode = 10020058

上传图片失败,请重试

const ErrCode10020059 ErrCode = 10020059

图片为空

const ErrCode10020060 ErrCode = 10020060

图片大小超出限制

const ErrCode10020061 ErrCode = 10020061

图片 URL 非法,如:传入mmecimage.cn/p/前缀的图片

const ErrCode10020062 ErrCode = 10020062

资质材料超限,最多不能超过10张

const ErrCode10020063 ErrCode = 10020063

不合法的类目ID

const ErrCode10020064 ErrCode = 10020064

该类目审核中,无需重复提交

const ErrCode10020065 ErrCode = 10020065

商品未上架

const ErrCode10020066 ErrCode = 10020066

提审频率达到限制

const ErrCode10020067 ErrCode = 10020067

该商品上一次提交正在上传中,请稍后再试

const ErrCode10020068 ErrCode = 10020068

当前运费模版计价方式为[按重量],且提交商品重量为0

const ErrCode10020069 ErrCode = 10020069

当前类目不允许选择无需快递的发货方式

const ErrCode10020070 ErrCode = 10020070

由于类目保证金不足,已下架所有商品

const ErrCode10020071 ErrCode = 10020071

抢购商品未上架

const ErrCode10020072 ErrCode = 10020072

抢购开始/结束时间无效,请设置一年内的时间

const ErrCode10020073 ErrCode = 10020073

抢购库存超出商品可用库存

const ErrCode10020074 ErrCode = 10020074

设置抢购的 SKU 无效

const ErrCode10020075 ErrCode = 10020075

商品已存在其他抢购活动

const ErrCode10020076 ErrCode = 10020076

抢购活动不存在

const ErrCode10020078 ErrCode = 10020078

抢购价格超出原价

const ErrCode10020080 ErrCode = 10020080

提交的资质数量超出限制

const ErrCode10020081 ErrCode = 10020081

品牌的申请记录不存在,请调用新增品牌接口

const ErrCode10020082 ErrCode = 10020082

品牌重复申请

const ErrCode10020083 ErrCode = 10020083

该商品所需类目保证金高于当前保证金余额,请前往商家网页端(https://channels.weixin.qq.com/shop)添加一次该类目商品,即可完成保证金补缴。

const ErrCode10020084 ErrCode = 10020084

品牌名称与品牌库 ID 不匹配

const ErrCode10020085 ErrCode = 10020085

该品牌申请正在审核中,请不要重复提交

const ErrCode10020086 ErrCode = 10020086

品牌资质文件的file_id无效

const ErrCode10020087 ErrCode = 10020087

不合法的fileid

const ErrCode10020088 ErrCode = 10020088

当前类目不支持当前品牌,或商品品牌 id 非法,或商品品牌 id 未申请通过

const ErrCode10020089 ErrCode = 10020089

未开张商店发布商品

const ErrCode10020090 ErrCode = 10020090

接口暂时下线

const ErrCode10020091 ErrCode = 10020091

暂不支持上架该类型的商品

const ErrCode10020094 ErrCode = 10020094

必须使用上传资质接口获取fileid

const ErrCode10020095 ErrCode = 10020095

售后说明超过长度限制(200 UTF字符)

const ErrCode10020096 ErrCode = 10020096

商品参数重复

const ErrCode10020097 ErrCode = 10020097

商品参数缺少必填项

const ErrCode10020098 ErrCode = 10020098

商品参数内容有误

const ErrCode10020200 ErrCode = 10020200

out_warehouse_id命名非法

const ErrCode10020202 ErrCode = 10020202

out_warehouse_id不存在

const ErrCode10020203 ErrCode = 10020203

address_id非法,或关联关系非法

const ErrCode10020204 ErrCode = 10020204

该 sku 设置区域仓数量超过限制

const ErrCode10020205 ErrCode = 10020205

仓库名称或仓库介绍为空

const ErrCode10020206 ErrCode = 10020206

重复的out_warehouse_id

const ErrCode10021001 ErrCode = 10021001

优惠券状态不对

const ErrCode10021003 ErrCode = 10021003

优惠券还没过期

const ErrCode10021005 ErrCode = 10021005

优惠券名称太长

const ErrCode10021006 ErrCode = 10021006

校验折扣数失败

const ErrCode10021007 ErrCode = 10021007

校验优惠价格失败

const ErrCode10021008 ErrCode = 10021008

校验直减券是否小于最低价格

const ErrCode10021009 ErrCode = 10021009

校验领取时间失败

const ErrCode10021010 ErrCode = 10021010

校验有效时间失败

const ErrCode10021011 ErrCode = 10021011

校验优惠券总发放量失败

const ErrCode10021012 ErrCode = 10021012

校验限领失败

const ErrCode10021013 ErrCode = 10021013

校验商户失败

const ErrCode10021014 ErrCode = 10021014

推广类型不对

const ErrCode10021021 ErrCode = 10021021

校验入参失败,含有非商户的指定商品

const ErrCode10021024 ErrCode = 10021024

优惠券信息违规

const ErrCode10021034 ErrCode = 10021034

优惠券重入失败

const ErrCode10021035 ErrCode = 10021035

创建 优惠券类型 暂不支持

const ErrCode10021036 ErrCode = 10021036

分页拉优惠券列表,页码与上次请求相差过大

const ErrCode10021037 ErrCode = 10021037

优惠券不存在

const ErrCode10021041 ErrCode = 10021041

当前售后单不支持此操作,请检查售后单状态

const ErrCode10021043 ErrCode = 10021043

售后单非当前账号,请检查参数

const ErrCode10021044 ErrCode = 10021044

当前用户太多,请稍后再试

const ErrCode10021045 ErrCode = 10021045

退款失败

const ErrCode10021046 ErrCode = 10021046

金额不足

const ErrCode10021050 ErrCode = 10021050

售后单不存在

const ErrCode10021053 ErrCode = 10021053

非法的默认运费模板规则,默认运费模板不可以指定地址

const ErrCode10021054 ErrCode = 10021054

非法的省市区信息

const ErrCode10021200 ErrCode = 10021200

请检查模板名是否已存在|

const ErrCode10021302 ErrCode = 10021302

暂无数据

const ErrCode10021402 ErrCode = 10021402

无效的地址编码

const ErrCode10021500 ErrCode = 10021500

纠纷单号不存在

const ErrCode10021501 ErrCode = 10021501

单条留言文字数量过多

const ErrCode10021502 ErrCode = 10021502

所有留言图片总数过多

const ErrCode10021503 ErrCode = 10021503

不是待客服处理的状态,无法留言

const ErrCode10021504 ErrCode = 10021504

不是待商家举证的状态,无法留言

const ErrCode10022001 ErrCode = 10022001

验证视频号身份失败, 请检查是否使用视频号橱窗 ID 请求

const ErrCode10022002 ErrCode = 10022002

因违规行为, 橱窗被禁止使用, 请前往'带货中心->个人中心->带货权限'检查橱窗带货权限

const ErrCode10022003 ErrCode = 10022003

橱窗商品未找到

const ErrCode10022004 ErrCode = 10022004

商品异常,禁止添加到橱窗,请检查商品的banned_detail字段

const ErrCode10022005 ErrCode = 10022005

橱窗中的商品数超过1万,请减少商品数目后再重试

const ErrCode10022006 ErrCode = 10022006

请求参数错误,请检查请求参数是否符合限制

const ErrCode10022007 ErrCode = 10022007

不支持操作带货中心来源的商品

const ErrCode10022008 ErrCode = 10022008

请求的 appid 不属于该视频号的绑定店铺

const ErrCode10025005 ErrCode = 10025005

下单失败,具体原因参考delivery_error_msg字段

const ErrCode10025006 ErrCode = 10025006

取消下单失败,具体原因参考delivery_error_msg字段

const ErrCode10025010 ErrCode = 10025010

电子面单不存在

const ErrCode10025011 ErrCode = 10025011

更新冲突,请稍后重试

const ErrCode10025012 ErrCode = 10025012

delivery_id错误

const ErrCode10025013 ErrCode = 10025013

网点信息错误

const ErrCode10025014 ErrCode = 10025014

网点账号编码错误

const ErrCode10025015 ErrCode = 10025015

寄件人信息错误

const ErrCode10025016 ErrCode = 10025016

收件人信息错误

const ErrCode10025017 ErrCode = 10025017

小店订单信息错误

const ErrCode10025018 ErrCode = 10025018

店铺id信息错误

const ErrCode10025019 ErrCode = 10025019

面单已存在

const ErrCode10025102 ErrCode = 10025102

快递公司不支持

const ErrCode10025120 ErrCode = 10025120

电子面单帐号列表为空,请检查请求参数

const ErrCode101100 ErrCode = 101100

订单不是未付款订单,不能改价

const ErrCode108009 ErrCode = 108009

当前订单有未完成售后单,不允许发货

const ErrCode108021 ErrCode = 108021

某种商品或者运费修改后的价格超出原价

const ErrCode108022 ErrCode = 108022

该订单改价次数已经超过50次

const ErrCode108023 ErrCode = 108023

修改后订单价格为0

const ErrCode109000 ErrCode = 109000

发货失败,请检查 errmsg 中返回的商品是否正确填写,包括订单中是否包含该商品,该商品是否已经发货,是否已经完成售后无法发货,以及商品数量是否填写正确等

const ErrCode109001 ErrCode = 109001

当前订单已经发货完成,不能重复发货

const ErrCode109002 ErrCode = 109002

当前发货请求里没有带上发货商品,请检查product_infos和is_all_product是否按规范填写

const ErrCode109205 ErrCode = 109205

当前订单已经下单在线物流单,不允许自寄发货

const ErrCode40001 ErrCode = 40001

AppSecret 错误或者 AppSecret 不属于这个小店,请开发者确认 AppSecret 的正确性

const ErrCode40002 ErrCode = 40002

请确保 grant_type 字段值为 client_credential

const ErrCode40013 ErrCode = 40013

不合法的 AppID,请开发者检查 AppID 的正确性,避免异常字符,注意大小写

const ErrCode40066 ErrCode = 40066

不合法的 url ,递交的页面被 sitemap 标记为拦截

const ErrCode40097 ErrCode = 40097

请求体参数不正确,请检查各个参数是否按规范填写,具体原因查看errmsg

const ErrCode43001 ErrCode = 43001

需要使用 HTTP GET

const ErrCode47001 ErrCode = 47001

请求体格式不正确,请检查请求体中各个参数的类型是否正确

const ErrCode48001 ErrCode = 48001

无权调用本api,请检查相关权限是否已开通

const ErrCode60208 ErrCode = 60208

错误的ticket

const ErrCode60220 ErrCode = 60220

ticket已失效

const ErrCode606000 ErrCode = 606000

订单状态不正确,待发货订单才可以修改地址

const ErrCode606001 ErrCode = 606001

修改地址次数已经达到上限,不可超过5次

const ErrCode606002 ErrCode = 606002

user_address字段未经过检查,请检查是否有必填字段未填写

const ErrCode606003 ErrCode = 606003

商家没有默认退货地址,不可发货,请设置默认退货地址后再进行发货

const ErrCode606004 ErrCode = 606004

delivery_id不合法,请使用【获取物流公司列表】接口获取合法的delivery_id

const ErrCode606005 ErrCode = 606005

waybill_id不合法,请检查快递单号是否正确填写

const ErrCode606008 ErrCode = 606008

deliver_type不符合要求,普通订单请使用快递发货,虚拟商品订单请无需物流发货,请检查订单deliver_method

const ErrCode606030 ErrCode = 606030

同一 sku 的所有商品必须在一个包裹里发出

const ErrCode606031 ErrCode = 606031

发货请求里product_id或sku_id填写不正确,请检查订单中是否包含该商品

const ErrCode606034 ErrCode = 606034

当前请求方不能对该订单进行发货,请使用特定第三方服务商身份进行发货操作

const ErrCode9401020 ErrCode = 9401020

参数有误

const ErrCode9710001 ErrCode = 9710001

暂无数据

const ErrCodeMinus2 ErrCode = -2

请求的参数错误

const ErrCodeSuccess ErrCode = 0

请求成功

const ErrCodeSysErr ErrCode = -1

系统异常或系统繁忙,请开发者稍候再试

type Logger

type Logger interface {
	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Error(args ...interface{})
	Errorf(template string, args ...interface{})
}

日志输出接口

type Media added in v1.0.0

type Media struct {
	// contains filtered or unexported fields
}

欲上传的图片等媒体

func NewMediaFromBuffer added in v1.0.0

func NewMediaFromBuffer(filename string, buf []byte) (*Media, error)

type MerchantAddressDetail added in v1.0.6

type MerchantAddressDetail struct {
	AddressID   string              `json:"address_id,omitempty"` // 新增地址不用传
	AddressInfo MerchantAddressInfo `json:"address_info"`
	AddressType MerchantAddressType `json:"address_type"`
	DefaultRecv bool                `json:"default_recv"`
	DefaultSend bool                `json:"default_send"`
	Landline    string              `json:"landline"`
	RecvAddr    bool                `json:"recv_addr"`
	Remark      string              `json:"remark"`
	SendAddr    bool                `json:"send_addr"`
}

type MerchantAddressInfo added in v1.0.6

type MerchantAddressInfo struct {
	CityName     string  `json:"city_name"`
	CountyName   string  `json:"county_name"`
	DetailInfo   string  `json:"detail_info"`
	HouseNumber  string  `json:"house_number"`
	Lat          float64 `json:"lat"`
	Lng          float64 `json:"lng"`
	PostalCode   string  `json:"postal_code"`
	ProvinceName string  `json:"province_name"`
	TelNumber    string  `json:"tel_number"`
	UserName     string  `json:"user_name"`
}

type MerchantAddressType added in v1.0.6

type MerchantAddressType struct {
	Pickup   int `json:"pickup"`
	SameCity int `json:"same_city"`
}

type Options

type Options struct {
	DcsToken DcsToken // 选传参数,如果不传这个参数,则只会把 token 存在内存中,这会导致每次重启服务都要重新获取 token 和多个服务需发起多次 token 请求的问题。
	Logger   Logger   // 选传参数,不传则默认将日志直接输出在终端
}

需初始化的参数

type OrderDetailAddress added in v1.0.6

type OrderDetailAddress struct {
	UserName              string            `json:"user_name"`
	PostalCode            string            `json:"postal_code"`
	ProvinceName          string            `json:"province_name"`
	CityName              string            `json:"city_name"`
	CountyName            string            `json:"county_name"`
	DetailInfo            string            `json:"detail_info"`
	NationalCode          string            `json:"national_code"`
	TelNumber             string            `json:"tel_number"`
	HouseNumber           string            `json:"house_number"`
	VirtualOrderTelNumber string            `json:"virtual_order_tel_number"`
	TelNumberExtInfo      *TelNumberExtInfo `json:"tel_number_ext_info"`
	UseTelNumber          int               `json:"use_tel_number"`
	HashCode              string            `json:"hash_code"`
}

type ProductAttrs added in v1.0.6

type ProductAttrs struct {
	AttrKey   string `json:"attr_key"`
	AttrValue string `json:"attr_value"`
}

type ProductCats added in v1.0.6

type ProductCats struct {
	CatID string `json:"cat_id"`
}

type ProductDescInfo added in v1.0.6

type ProductDescInfo struct {
	Desc string   `json:"desc"`
	Imgs []string `json:"imgs"`
}

type ProductExpressInfo added in v1.0.6

type ProductExpressInfo struct {
	TemplateID string `json:"template_id"`
}

type ProductSkuAttrs added in v1.0.6

type ProductSkuAttrs struct {
	AttrKey   string `json:"attr_key"`
	AttrValue string `json:"attr_value"`
}

type ProductSkus added in v1.0.6

type ProductSkus struct {
	SalePrice int               `json:"sale_price"`
	SkuAttrs  []ProductSkuAttrs `json:"sku_attrs"`
	SkuCode   string            `json:"sku_code"`
	StockNum  int               `json:"stock_num"`
	ThumbImg  string            `json:"thumb_img"`
}

type ReqAddresscodeGet added in v1.0.0

type ReqAddresscodeGet struct {
	AddrCode int `json:"addr_code"`
}

type ReqAftersaleAcceptapply added in v1.0.0

type ReqAftersaleAcceptapply struct {
	AddressID        string `json:"address_id"`
	AfterSaleOrderID string `json:"after_sale_order_id"`
}

type ReqAftersaleAddcomplaintmaterial added in v1.0.0

type ReqAftersaleAddcomplaintmaterial struct {
	ComplaintID string   `json:"complaint_id"`
	Content     string   `json:"content"`
	MediaIDList []string `json:"media_id_list"`
}

type ReqAftersaleAddcomplaintproof added in v1.0.0

type ReqAftersaleAddcomplaintproof struct {
	ComplaintID string   `json:"complaint_id"`
	Content     string   `json:"content"`
	MediaIDList []string `json:"media_id_list"`
}

type ReqAftersaleGetaftersalelist added in v1.0.0

type ReqAftersaleGetaftersalelist struct {
	BeginCreateTime int    `json:"begin_create_time"`
	EndCreateTime   int    `json:"end_create_time"`
	NextKey         string `json:"next_key"`
}

type ReqAftersaleGetaftersaleorder added in v1.0.0

type ReqAftersaleGetaftersaleorder struct {
	AfterSaleOrderID string `json:"after_sale_order_id"`
}

type ReqAftersaleGetcomplaintorder added in v1.0.0

type ReqAftersaleGetcomplaintorder struct {
	ComplaintID string `json:"complaint_id"`
}

type ReqAftersaleRejectapply added in v1.0.0

type ReqAftersaleRejectapply struct {
	AfterSaleOrderID string `json:"after_sale_order_id"`
	RejectReason     string `json:"reject_reason"`
}

type ReqAftersaleUploadrefundcertificate added in v1.0.0

type ReqAftersaleUploadrefundcertificate struct {
	AfterSaleOrderID   string   `json:"after_sale_order_id"`
	RefundCertificates []string `json:"refund_certificates"`
	Desc               string   `json:"desc"`
}

type ReqBrandAdd added in v1.0.0

type ReqBrandAdd struct {
	Brand struct {
		ApplicationDetails struct{} `json:"application_details"`
		BrandID            string   `json:"brand_id"`
		ChName             string   `json:"ch_name"`
		ClassificationNo   string   `json:"classification_no"`
		EnName             string   `json:"en_name"`
		GrantDetails       struct {
			BrandOwnerIDPhotos  []string `json:"brand_owner_id_photos"`
			EndTime             int      `json:"end_time"`
			GrantCertifications []string `json:"grant_certifications"`
			GrantLevel          int      `json:"grant_level"`
			IsPermanent         bool     `json:"is_permanent"`
			StartTime           int      `json:"start_time"`
		} `json:"grant_details"`
		GrantType       int `json:"grant_type"`
		RegisterDetails struct {
			EndTime                int      `json:"end_time"`
			IsPermanent            bool     `json:"is_permanent"`
			RegisterCertifications []string `json:"register_certifications"`
			RegisterNo             string   `json:"register_no"`
			Registrant             string   `json:"registrant"`
			RenewCertifications    []string `json:"renew_certifications"`
			StartTime              int      `json:"start_time"`
		} `json:"register_details"`
		TradeMarkSymbol int `json:"trade_mark_symbol"`
	} `json:"brand"`
}

type ReqBrandAll added in v1.0.0

type ReqBrandAll struct {
	PageSize int `json:"page_size"`
}

type ReqBrandAuditCancel added in v1.0.0

type ReqBrandAuditCancel struct {
	AuditID string `json:"audit_id"`
	BrandID string `json:"brand_id"`
}

type ReqBrandDelete added in v1.0.0

type ReqBrandDelete struct {
	BrandID string `json:"brand_id"`
}

type ReqBrandGet added in v1.0.0

type ReqBrandGet struct {
	BrandID string `json:"brand_id"`
}

type ReqBrandListGet added in v1.0.0

type ReqBrandListGet struct {
	NextKey  string `json:"next_key"`
	PageSize int    `json:"page_size"`
	Status   int    `json:"status"`
}

type ReqBrandUpdate added in v1.0.0

type ReqBrandUpdate struct {
	Brand struct {
		ApplicationDetails struct{} `json:"application_details"`
		BrandID            string   `json:"brand_id"`
		ChName             string   `json:"ch_name"`
		ClassificationNo   string   `json:"classification_no"`
		EnName             string   `json:"en_name"`
		GrantDetails       struct {
			BrandOwnerIDPhotos  []string `json:"brand_owner_id_photos"`
			EndTime             int      `json:"end_time"`
			GrantCertifications []string `json:"grant_certifications"`
			GrantLevel          int      `json:"grant_level"`
			IsPermanent         bool     `json:"is_permanent"`
			StartTime           int      `json:"start_time"`
		} `json:"grant_details"`
		GrantType       int `json:"grant_type"`
		RegisterDetails struct {
			EndTime                int      `json:"end_time"`
			IsPermanent            bool     `json:"is_permanent"`
			RegisterCertifications []string `json:"register_certifications"`
			RegisterNo             string   `json:"register_no"`
			Registrant             string   `json:"registrant"`
			RenewCertifications    []string `json:"renew_certifications"`
			StartTime              int      `json:"start_time"`
		} `json:"register_details"`
		TradeMarkSymbol int `json:"trade_mark_symbol"`
	} `json:"brand"`
}

type ReqCategoryAdd added in v1.0.0

type ReqCategoryAdd struct {
	CategoryInfo struct {
		Certificate []string `json:"certificate"`
		Level1      int      `json:"level1"`
		Level2      int      `json:"level2"`
		Level3      int      `json:"level3"`
	} `json:"category_info"`
}

type ReqCategoryAll added in v1.0.0

type ReqCategoryAll struct{}

type ReqCategoryAuditCancel added in v1.0.0

type ReqCategoryAuditCancel struct {
	AuditID string `json:"audit_id"`
}

type ReqCategoryAuditGet added in v1.0.0

type ReqCategoryAuditGet struct {
	AuditID string `json:"audit_id"`
}

type ReqCategoryAvailablesoncategoriesGet added in v1.0.0

type ReqCategoryAvailablesoncategoriesGet struct {
	FCatID int `json:"f_cat_id"`
}

type ReqCategoryDetail added in v1.0.0

type ReqCategoryDetail struct {
	CatID int `json:"cat_id"`
}

type ReqCategoryListGet added in v1.0.0

type ReqCategoryListGet struct{}

type ReqCouponCreate added in v1.0.6

type ReqCouponCreate struct {
	DiscountInfo CouponDiscountInfo `json:"discount_info"`
	ExtInfo      CouponExtInfo      `json:"ext_info"`
	Name         string             `json:"name"`
	PromoteInfo  CouponPromoteInfo  `json:"promote_info"`
	ReceiveInfo  CouponReceiveInfo  `json:"receive_info"`
	Type         int                `json:"type"`
	ValidInfo    CouponValidInfo    `json:"valid_info"`
}

type ReqCouponGet added in v1.0.6

type ReqCouponGet struct {
	CouponID string `json:"coupon_id"`
}

type ReqCouponGetList added in v1.0.6

type ReqCouponGetList struct {
	Page     int    `json:"page"`
	PageCtx  string `json:"page_ctx"`
	PageSize int    `json:"page_size"`
	Status   int    `json:"status"`
}

type ReqCouponGetUserCoupon added in v1.0.6

type ReqCouponGetUserCoupon struct {
	Openid       string `json:"openid"`
	UserCouponID string `json:"user_coupon_id"`
}

type ReqCouponGetUserCouponList added in v1.0.6

type ReqCouponGetUserCouponList struct {
	Openid   string `json:"openid"`
	Page     int    `json:"page"`
	PageCtx  string `json:"page_ctx"`
	PageSize int    `json:"page_size"`
	Status   int    `json:"status"`
}

type ReqCouponUpdate added in v1.0.6

type ReqCouponUpdate struct {
	CouponID     string             `json:"coupon_id"`
	DiscountInfo CouponDiscountInfo `json:"discount_info"`
	ExtInfo      CouponExtInfo      `json:"ext_info"`
	Name         string             `json:"name"`
	PromoteInfo  CouponPromoteInfo  `json:"promote_info"`
	ReceiveInfo  CouponReceiveInfo  `json:"receive_info"`
	Type         int                `json:"type"`
	ValidInfo    CouponValidInfo    `json:"valid_info"`
}

type ReqCouponUpdateStatus added in v1.0.6

type ReqCouponUpdateStatus struct {
	CouponID string `json:"coupon_id"`
	Status   int    `json:"status"`
}

type ReqEcBasicsInfoGet

type ReqEcBasicsInfoGet struct{}

type ReqFundsGetbalance added in v1.1.5

type ReqFundsGetbalance struct{}

type ReqFundsGetbankacct added in v1.1.5

type ReqFundsGetbankacct struct{}

type ReqFundsGetfundsflowdetail added in v1.1.5

type ReqFundsGetfundsflowdetail struct {
	FlowID string `json:"flow_id"`
}

type ReqFundsGetfundsflowlist added in v1.1.5

type ReqFundsGetfundsflowlist struct {
	EndTime       int    `json:"end_time"`
	NextKey       string `json:"next_key"`
	Page          int    `json:"page"`
	PageSize      int    `json:"page_size"`
	StartTime     int    `json:"start_time"`
	TransactionID string `json:"transaction_id"`
}

type ReqFundsGetwithdrawdetail added in v1.1.5

type ReqFundsGetwithdrawdetail struct {
	WithdrawID string `json:"withdraw_id"`
}

type ReqFundsGetwithdrawlist added in v1.1.5

type ReqFundsGetwithdrawlist struct {
	EndTime   int `json:"end_time"`
	PageNum   int `json:"page_num"`
	PageSize  int `json:"page_size"`
	StartTime int `json:"start_time"`
}

type ReqFundsSetbankacct added in v1.1.5

type ReqFundsSetbankacct struct {
	AccountInfo struct {
		AccountBank     string `json:"account_bank"`
		AccountNumber   string `json:"account_number"`
		BankAccountType string `json:"bank_account_type"`
		BankAddressCode string `json:"bank_address_code"`
	} `json:"account_info"`
}

type ReqFundsSubmitwithdraw added in v1.1.5

type ReqFundsSubmitwithdraw struct {
	Amount   int    `json:"amount"`
	BankMemo string `json:"bank_memo"`
	Remark   string `json:"remark"`
}

type ReqGetAccessToken

type ReqGetAccessToken struct {
	GrantType string `json:"grant_type"` // 固定填 client_credential,必填
	Appid     string `json:"appid"`      // 小店唯一凭证,即 小店ID,必填
	Secret    string `json:"secret"`     // 小店唯一凭证密钥,必填
}

type ReqGetLeadsInfoByComponentId added in v1.0.0

type ReqGetLeadsInfoByComponentId struct {
	LeadsComponentId string `json:"leads_component_id"`
	StartTime        int    `json:"start_time"`
	EndTime          int    `json:"end_time"`
	LastBuffer       string `json:"last_buffer"`
}

type ReqGetLeadsInfoByRequestId added in v1.0.0

type ReqGetLeadsInfoByRequestId struct {
	RequestId  string `json:"request_id"`
	LastBuffer string `json:"last_buffer"`
}

type ReqGetLeadsRequestId added in v1.0.0

type ReqGetLeadsRequestId struct {
	LastBuffer       string `json:"last_buffer"`
	LeadsComponentID string `json:"leads_component_id"`
}

type ReqGetbankbynum added in v1.1.5

type ReqGetbankbynum struct {
	AccountNumber string `json:"account_number"`
}

type ReqGetbanklist added in v1.1.5

type ReqGetbanklist struct {
	BankType int    `json:"bank_type"`
	KeyWords string `json:"key_words"`
	Limit    int    `json:"limit"`
	Offset   int    `json:"offset"`
}

type ReqGetcity added in v1.1.5

type ReqGetcity struct {
	ProvinceCode int `json:"province_code"`
}

type ReqGetprovince added in v1.1.5

type ReqGetprovince struct{}

type ReqGetsubbranch added in v1.1.5

type ReqGetsubbranch struct {
	BankCode string `json:"bank_code"`
	CityCode string `json:"city_code"`
	Limit    int    `json:"limit"`
	Offset   int    `json:"offset"`
}

type ReqImgUpload added in v1.0.0

type ReqImgUpload struct {
	ImgUrl   string `json:"img_url"`   // upload_type=1时必填,图片url
	RespType int    `json:"resp_type"` // 返回数据类型。0:media_id和pay_media_id;1:图片链接(商品信息相关图片请务必使用此参数得到链接)
}

type ReqLogisticsEwaybillBizAccountGet added in v1.1.6

type ReqLogisticsEwaybillBizAccountGet struct {
	Limit       int  `json:"limit"`
	NeedBalance bool `json:"need_balance"`
}

type ReqLogisticsEwaybillBizDeliveryGet added in v1.1.6

type ReqLogisticsEwaybillBizDeliveryGet struct {
	Status int `json:"status"`
}

type ReqLogisticsEwaybillBizOrderCancel added in v1.1.6

type ReqLogisticsEwaybillBizOrderCancel struct {
	DeliveryID      string `json:"delivery_id"`
	EwaybillOrderID string `json:"ewaybill_order_id"`
	WaybillID       string `json:"waybill_id"`
}

type ReqLogisticsEwaybillBizOrderCreate added in v1.1.6

type ReqLogisticsEwaybillBizOrderCreate struct {
	DeliveryID  string `json:"delivery_id"`
	EcOrderList []struct {
		EcOrderID int `json:"ec_order_id"`
		GoodsList []struct {
			GoodCount int    `json:"good_count"`
			GoodName  string `json:"good_name"`
			ProductID int    `json:"product_id"`
			SkuID     int    `json:"sku_id"`
		} `json:"goods_list"`
	} `json:"ec_order_list"`
	EwaybillAcctID  string `json:"ewaybill_acct_id"`
	EwaybillOrderID string `json:"ewaybill_order_id"`
	Receiver        struct {
		Address  string `json:"address"`
		City     string `json:"city"`
		County   string `json:"county"`
		Mobile   string `json:"mobile"`
		Name     string `json:"name"`
		Province string `json:"province"`
		Street   string `json:"street"`
	} `json:"receiver"`
	Remark        string `json:"remark"`
	ReturnAddress struct {
		Address  string `json:"address"`
		City     string `json:"city"`
		County   string `json:"county"`
		Mobile   string `json:"mobile"`
		Name     string `json:"name"`
		Province string `json:"province"`
		Street   string `json:"street"`
	} `json:"return_address"`
	Sender struct {
		Address  string `json:"address"`
		City     string `json:"city"`
		County   string `json:"county"`
		Mobile   string `json:"mobile"`
		Name     string `json:"name"`
		Province string `json:"province"`
		Street   string `json:"street"`
	} `json:"sender"`
	ShopID     string `json:"shop_id"`
	SiteCode   string `json:"site_code"`
	TemplateID string `json:"template_id"`
}

type ReqLogisticsEwaybillBizOrderGet added in v1.1.6

type ReqLogisticsEwaybillBizOrderGet struct {
	EwaybillOrderID string `json:"ewaybill_order_id"`
}

type ReqLogisticsEwaybillBizOrderPrecreate added in v1.1.6

type ReqLogisticsEwaybillBizOrderPrecreate struct {
	DeliveryID  string `json:"delivery_id"`
	EcOrderList []struct {
		EcOrderID int `json:"ec_order_id"`
		GoodsList []struct {
			GoodCount int    `json:"good_count"`
			GoodName  string `json:"good_name"`
			ProductID int    `json:"product_id"`
			SkuID     int    `json:"sku_id"`
		} `json:"goods_list"`
	} `json:"ec_order_list"`
	EwaybillAcctID string `json:"ewaybill_acct_id"`
	Receiver       struct {
		Address  string `json:"address"`
		City     string `json:"city"`
		County   string `json:"county"`
		Mobile   string `json:"mobile"`
		Name     string `json:"name"`
		Province string `json:"province"`
		Street   string `json:"street"`
	} `json:"receiver"`
	Remark string `json:"remark"`
	Sender struct {
		Address  string `json:"address"`
		City     string `json:"city"`
		County   string `json:"county"`
		Mobile   string `json:"mobile"`
		Name     string `json:"name"`
		Province string `json:"province"`
		Street   string `json:"street"`
	} `json:"sender"`
	ShopID   string `json:"shop_id"`
	SiteCode string `json:"site_code"`
}

type ReqMediaGet added in v1.0.0

type ReqMediaGet struct {
	MediaId string `json:"media_id"`
}

type ReqMerchantAddfreighttemplate added in v1.0.0

type ReqMerchantAddfreighttemplate struct {
	FreightTemplate struct {
		AddressInfo struct {
			CityName     string `json:"city_name"`
			CountyName   string `json:"county_name"`
			DetailInfo   string `json:"detail_info"`
			NationalCode string `json:"national_code"`
			PostalCode   string `json:"postal_code"`
			ProvinceName string `json:"province_name"`
			TelNumber    string `json:"tel_number"`
			UserName     string `json:"user_name"`
		} `json:"address_info"`
		DeliveryType   string `json:"delivery_type"`
		IsDefault      bool   `json:"is_default"`
		Name           string `json:"name"`
		SendTime       string `json:"send_time"`
		ShippingMethod string `json:"shipping_method"`
		ValuationType  string `json:"valuation_type"`
	} `json:"freight_template"`
}

type ReqMerchantAddressAdd added in v1.0.0

type ReqMerchantAddressAdd struct {
	AddressDetail MerchantAddressDetail `json:"address_detail"`
}

type ReqMerchantAddressDelete added in v1.0.0

type ReqMerchantAddressDelete struct {
	AddressID string `json:"address_id"`
}

type ReqMerchantAddressGet added in v1.0.0

type ReqMerchantAddressGet struct {
	AddressID string `json:"address_id"`
}

type ReqMerchantAddressList added in v1.0.0

type ReqMerchantAddressList struct {
	Offset int `json:"offset"`
	Limit  int `json:"limit"`
}

type ReqMerchantAddressUpdate added in v1.0.0

type ReqMerchantAddressUpdate struct {
	AddressDetail MerchantAddressDetail `json:"address_detail"`
}

type ReqMerchantGetfreighttemplatedetail added in v1.0.0

type ReqMerchantGetfreighttemplatedetail struct {
	TemplateID string `json:"template_id"`
}

type ReqMerchantGetfreighttemplatelist added in v1.0.0

type ReqMerchantGetfreighttemplatelist struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

type ReqMerchantUpdatefreighttemplate added in v1.0.0

type ReqMerchantUpdatefreighttemplate struct {
	FreightTemplate struct {
		AddressInfo struct {
			CityName     string `json:"city_name"`
			CountyName   string `json:"county_name"`
			DetailInfo   string `json:"detail_info"`
			NationalCode string `json:"national_code"`
			PostalCode   string `json:"postal_code"`
			ProvinceName string `json:"province_name"`
			TelNumber    string `json:"tel_number"`
			UserName     string `json:"user_name"`
		} `json:"address_info"`
		DeliveryType   string `json:"delivery_type"`
		IsDefault      int    `json:"is_default"`
		Name           string `json:"name"`
		SendTime       string `json:"send_time"`
		ShippingMethod string `json:"shipping_method"`
		ValuationType  string `json:"valuation_type"`
	} `json:"freight_template"`
}

type ReqOrderAddressUpdate added in v1.0.0

type ReqOrderAddressUpdate struct {
	OrderID     string      `json:"order_id"`
	UserAddress UserAddress `json:"user_address"`
}

type ReqOrderDeliverySend added in v1.0.0

type ReqOrderDeliverySend struct {
	DeliveryList []DeliveryListItem `json:"delivery_list"`
	OrderID      string             `json:"order_id"`
}

type ReqOrderDeliverycompanylistGet added in v1.0.0

type ReqOrderDeliverycompanylistGet struct{}

type ReqOrderGet added in v1.0.0

type ReqOrderGet struct {
	OrderID string `json:"order_id"`
}

type ReqOrderListGet added in v1.0.0

type ReqOrderListGet struct {
	CreateTimeRange *TimeRange `json:"create_time_range,omitempty"`
	UpdateTimeRange *TimeRange `json:"update_time_range,omitempty"`
	Status          int        `json:"status,omitempty"`
	Openid          string     `json:"openid,omitempty"`
	NextKey         string     `json:"next_key,omitempty"`
	PageSize        int        `json:"page_size,omitempty"`
}

type ReqOrderMerchantnotesUpdate added in v1.0.0

type ReqOrderMerchantnotesUpdate struct {
	OrderId       string `json:"order_id"`
	MerchantNotes string `json:"merchant_notes"`
}

type ReqOrderPriceUpdate added in v1.0.0

type ReqOrderPriceUpdate struct {
	ChangeExpress    bool                   `json:"change_express"`
	ChangeOrderInfos []ChangeOrderInfosItem `json:"change_order_infos"`
	ExpressFee       *int                   `json:"express_fee,omitempty"`
	OrderID          string                 `json:"order_id"`
}

type ReqOrderSearch added in v1.0.0

type ReqOrderSearch struct {
	NextKey               string                        `json:"next_key"`
	OnAftersaleOrderExist *int                          `json:"on_aftersale_order_exist,omitempty"`
	PageSize              int                           `json:"page_size"`
	SearchCondition       ReqOrderSearchSearchCondition `json:"search_condition"`
	Status                int                           `json:"status,omitempty"`
}

type ReqOrderSearchSearchCondition added in v1.0.5

type ReqOrderSearchSearchCondition struct {
	CustomerNotes string `json:"customer_notes,omitempty"`
	MerchantNotes string `json:"merchant_notes,omitempty"`
	OrderID       string `json:"order_id,omitempty"`
	SkuCode       string `json:"sku_code,omitempty"`
	TelNumber     string `json:"tel_number,omitempty"`
	Title         string `json:"title,omitempty"`
	UserName      string `json:"user_name,omitempty"`
}

type ReqProductAdd added in v1.0.0

type ReqProductAdd struct {
	Attrs       []ProductAttrs     `json:"attrs"`
	Cats        []ProductCats      `json:"cats"`
	DescInfo    ProductDescInfo    `json:"desc_info"`
	ExpressInfo ProductExpressInfo `json:"express_info"`
	HeadImgs    []string           `json:"head_imgs"`
	Skus        []ProductSkus      `json:"skus"`
	SubTitle    string             `json:"sub_title"`
	Title       string             `json:"title"`
}

type ReqProductAuditCancel added in v1.0.0

type ReqProductAuditCancel struct {
	ProductID string `json:"product_id"`
}

type ReqProductDelete added in v1.0.0

type ReqProductDelete struct {
	ProductID string `json:"product_id"`
}

type ReqProductDelisting added in v1.0.0

type ReqProductDelisting struct {
	ProductID string `json:"product_id"`
}

type ReqProductGet added in v1.0.0

type ReqProductGet struct {
	DataType  int    `json:"data_type"`
	ProductID string `json:"product_id"`
}

type ReqProductLimiteddiscounttaskAdd added in v1.0.0

type ReqProductLimiteddiscounttaskAdd struct {
	EndTime             int `json:"end_time"`
	LimitedDiscountSkus []struct {
		SalePrice int    `json:"sale_price"`
		SaleStock int    `json:"sale_stock"`
		SkuID     string `json:"sku_id"`
	} `json:"limited_discount_skus"`
	ProductID string `json:"product_id"`
	StartTime int    `json:"start_time"`
}

type ReqProductLimiteddiscounttaskDelete added in v1.0.0

type ReqProductLimiteddiscounttaskDelete struct {
	TaskID string `json:"task_id"`
}

type ReqProductLimiteddiscounttaskListGet added in v1.0.0

type ReqProductLimiteddiscounttaskListGet struct {
	NextKey  string `json:"next_key"`
	PageSize int    `json:"page_size"`
	Status   int    `json:"status"`
}

type ReqProductLimiteddiscounttaskStop added in v1.0.0

type ReqProductLimiteddiscounttaskStop struct {
	TaskID string `json:"task_id"`
}

type ReqProductListGet added in v1.0.0

type ReqProductListGet struct {
	Status   int    `json:"status"`    // 商品状态,不填默认拉全部商品(不包含回收站)
	PageSize int    `json:"page_size"` // 每页数量(默认10,不超过30),必填
	NextKey  string `json:"next_key"`  // 由上次请求返回,记录翻页的上下文。传入时会从上次返回的结果往后翻一页,不传默认拉取第一页数据。
}

type ReqProductListing added in v1.0.0

type ReqProductListing struct {
	ProductID string `json:"product_id"`
}

type ReqProductStockGet added in v1.0.0

type ReqProductStockGet struct {
	ProductId string `json:"product_id"`
	SkuId     string `json:"sku_id"`
}

type ReqProductStockUpdate added in v1.0.0

type ReqProductStockUpdate struct {
	DiffType  int    `json:"diff_type"`
	Num       int    `json:"num"`
	ProductID string `json:"product_id"`
	SkuID     string `json:"sku_id"`
}

type ReqProductUpdate added in v1.0.0

type ReqProductUpdate struct {
	ProductID   string             `json:"product_id"`
	Attrs       []ProductAttrs     `json:"attrs"`
	Cats        []ProductCats      `json:"cats"`
	DescInfo    ProductDescInfo    `json:"desc_info"`
	ExpressInfo ProductExpressInfo `json:"express_info"`
	HeadImgs    []string           `json:"head_imgs"`
	Skus        []ProductSkus      `json:"skus"`
	SubTitle    string             `json:"sub_title"`
	Title       string             `json:"title"`
}

type ReqQrcodeCheck added in v1.1.5

type ReqQrcodeCheck struct {
	QrcodeTicket string `json:"qrcode_ticket"`
}

type ReqQrcodeGet added in v1.1.5

type ReqQrcodeGet struct {
	QrcodeTicket string `json:"qrcode_ticket"`
}

type ReqQualificationUpload added in v1.0.0

type ReqQualificationUpload struct {
	URL string `json:"url"`
}

type ReqQualificationUploadMedia added in v1.0.0

type ReqQualificationUploadMedia struct {
	Media *Media `json:"media"`
}

type ReqWarehouseAddressPrioritysortGet added in v1.0.0

type ReqWarehouseAddressPrioritysortGet struct {
	AddressID1 int `json:"address_id1"`
	AddressID2 int `json:"address_id2"`
	AddressID3 int `json:"address_id3"`
	AddressID4 int `json:"address_id4"`
}

type ReqWarehouseAddressPrioritysortSet added in v1.0.0

type ReqWarehouseAddressPrioritysortSet struct {
	AddressID1   int      `json:"address_id1"`
	AddressID2   int      `json:"address_id2"`
	AddressID3   int      `json:"address_id3"`
	AddressID4   int      `json:"address_id4"`
	PrioritySort []string `json:"priority_sort"`
}

type ReqWarehouseCoverlocationsAdd added in v1.0.0

type ReqWarehouseCoverlocationsAdd struct {
	CoverLocations []struct {
		AddressID1 int `json:"address_id1"`
		AddressID2 int `json:"address_id2"`
		AddressID3 int `json:"address_id3"`
		AddressID4 int `json:"address_id4"`
	} `json:"cover_locations"`
	OutWarehouseID string `json:"out_warehouse_id"`
}

type ReqWarehouseCoverlocationsDel added in v1.0.0

type ReqWarehouseCoverlocationsDel struct {
	CoverLocations []struct {
		AddressID1 int `json:"address_id1"`
		AddressID2 int `json:"address_id2"`
		AddressID3 int `json:"address_id3"`
		AddressID4 int `json:"address_id4"`
	} `json:"cover_locations"`
	OutWarehouseID string `json:"out_warehouse_id"`
}

type ReqWarehouseCreate added in v1.0.0

type ReqWarehouseCreate struct {
	CoverLocations []struct {
		AddressID1 int `json:"address_id1"`
		AddressID2 int `json:"address_id2"`
		AddressID3 int `json:"address_id3"`
		AddressID4 int `json:"address_id4"`
	} `json:"cover_locations"`
	Intro          string `json:"intro"`
	Name           string `json:"name"`
	OutWarehouseID string `json:"out_warehouse_id"`
}

type ReqWarehouseDetailUpdate added in v1.0.0

type ReqWarehouseDetailUpdate struct {
	Intro          string `json:"intro"`
	Name           string `json:"name"`
	OutWarehouseID string `json:"out_warehouse_id"`
}

type ReqWarehouseGet added in v1.0.0

type ReqWarehouseGet struct {
	OutWarehouseID string `json:"out_warehouse_id"`
}

type ReqWarehouseListGet added in v1.0.0

type ReqWarehouseListGet struct {
	NextKey  string `json:"next_key"`
	PageSize int    `json:"page_size"`
}

type ReqWarehouseStockGet added in v1.0.0

type ReqWarehouseStockGet struct {
	OutWarehouseID string `json:"out_warehouse_id"`
	ProductID      string `json:"product_id"`
	SkuID          string `json:"sku_id"`
}

type ReqWarehouseStockUpdate added in v1.0.0

type ReqWarehouseStockUpdate struct {
	DiffType       int    `json:"diff_type"`
	Num            int    `json:"num"`
	OutWarehouseID string `json:"out_warehouse_id"`
	ProductID      string `json:"product_id"`
	SkuID          string `json:"sku_id"`
}

type ReqWindowProductAdd added in v1.0.0

type ReqWindowProductAdd struct {
	Appid           string `json:"appid"`
	IsHideForWindow bool   `json:"is_hide_for_window"`
	ProductID       string `json:"product_id"`
}

type ReqWindowProductGet added in v1.0.0

type ReqWindowProductGet struct {
	Appid     string `json:"appid"`
	ProductID string `json:"product_id"`
}

type ReqWindowProductListGet added in v1.0.0

type ReqWindowProductListGet struct {
	Appid        string `json:"appid"`
	NeedTotalNum bool   `json:"need_total_num"`
	PageIndex    int    `json:"page_index"`
	PageSize     int    `json:"page_size"`
}

type ReqWindowProductOff added in v1.0.0

type ReqWindowProductOff struct {
	Appid     string `json:"appid"`
	ProductID string `json:"product_id"`
}

type RespAddresscodeGet added in v1.0.0

type RespAddresscodeGet struct {
	CommonResp
	AddrsMsg struct {
		Name  string `json:"name"`
		Code  int    `json:"code"`
		Level int    `json:"level"`
	} `json:"addrs_msg"`
	NextLevelAddrs []struct {
		Name  string `json:"name"`
		Code  int    `json:"code"`
		Level int    `json:"level"`
	} `json:"next_level_addrs"`
}

type RespAftersaleAcceptapply added in v1.0.0

type RespAftersaleAcceptapply struct {
	CommonResp
}

type RespAftersaleAddcomplaintmaterial added in v1.0.0

type RespAftersaleAddcomplaintmaterial struct {
	CommonResp
}

type RespAftersaleAddcomplaintproof added in v1.0.0

type RespAftersaleAddcomplaintproof struct {
	CommonResp
}

type RespAftersaleGetaftersalelist added in v1.0.0

type RespAftersaleGetaftersalelist struct {
	AfterSaleOrderIDList []string `json:"after_sale_order_id_list"`
	CommonResp
	HasMore bool   `json:"has_more"`
	NextKey string `json:"next_key"`
}

type RespAftersaleGetaftersaleorder added in v1.0.0

type RespAftersaleGetaftersaleorder struct {
	AfterSaleOrder struct {
		AfterSaleOrderID string `json:"after_sale_order_id"`
		Status           string `json:"status"`
		Openid           string `json:"openid"`
		Unionid          string `json:"unionid"`
		ProductInfo      struct {
			Count     int    `json:"count"`
			ProductID string `json:"product_id"`
			SkuID     string `json:"sku_id"`
		} `json:"product_info"`
		RefundInfo struct {
			Amount int `json:"amount"`
		} `json:"refund_info"`
		ReturnInfo struct {
			DeliveryID   string `json:"delivery_id"`
			DeliveryName string `json:"delivery_name"`
			WaybillID    string `json:"waybill_id"`
		} `json:"return_info"`
		MerchantUploadInfo struct {
			RefundCertificates []string `json:"refund_certificates"`
			RejectReason       string   `json:"reject_reason"`
		} `json:"merchant_upload_info"`
		CreateTime int    `json:"create_time"`
		UpdateTime int    `json:"update_time"`
		Reason     string `json:"reason"`
		RefundResp struct {
			Code    string `json:"code"`
			Message string `json:"message"`
			Ret     int    `json:"ret"`
		} `json:"refund_resp"`
		Type    string `json:"type"`
		Details struct {
			Desc           string   `json:"desc"`
			ReceiveProduct bool     `json:"receive_product"`
			CancelTime     int      `json:"cancel_time"`
			MediaIdList    []string `json:"media_id_list"`
			TelNumber      string   `json:"tel_number"`
			ProveImgs      []string `json:"prove_imgs"`
		} `json:"details"`
		OrderID string `json:"order_id"`
	} `json:"after_sale_order"`
	CommonResp
}

type RespAftersaleGetcomplaintorder added in v1.0.0

type RespAftersaleGetcomplaintorder struct {
	AfterSaleOrderID string `json:"after_sale_order_id"`
	CommonResp
	History []struct {
		AfterSaleReason int      `json:"after_sale_reason"`
		AfterSaleType   int      `json:"after_sale_type"`
		ComplaintType   int      `json:"complaint_type"`
		Content         string   `json:"content"`
		ItemType        int      `json:"item_type"`
		MediaIDList     []string `json:"media_id_list"`
		PhoneNumber     string   `json:"phone_number"`
		Time            int      `json:"time"`
	} `json:"history"`
	OrderID string `json:"order_id"`
}

type RespAftersaleRejectapply added in v1.0.0

type RespAftersaleRejectapply struct {
	CommonResp
}

type RespAftersaleUploadrefundcertificate added in v1.0.0

type RespAftersaleUploadrefundcertificate struct {
	CommonResp
}

type RespBrandAdd added in v1.0.0

type RespBrandAdd struct {
	AuditID string `json:"audit_id"`
	CommonResp
}

type RespBrandAll added in v1.0.0

type RespBrandAll struct {
	Brands []struct {
		BrandID string `json:"brand_id"`
		ChName  string `json:"ch_name"`
		EnName  string `json:"en_name"`
	} `json:"brands"`
	ContinueFlag bool `json:"continue_flag"`
	CommonResp
	NextKey string `json:"next_key"`
}

type RespBrandAuditCancel added in v1.0.0

type RespBrandAuditCancel struct {
	CommonResp
}

type RespBrandDelete added in v1.0.0

type RespBrandDelete struct {
	CommonResp
}

type RespBrandGet added in v1.0.0

type RespBrandGet struct {
	Brand struct {
		ApplicationDetails []interface{} `json:"application_details"`
		BrandID            string        `json:"brand_id"`
		ChName             string        `json:"ch_name"`
		ClassificationNo   string        `json:"classification_no"`
		CreateTime         int           `json:"create_time"`
		EnName             string        `json:"en_name"`
		GrantDetails       struct {
			BrandOwnerIDPhotos  []string `json:"brand_owner_id_photos"`
			EndTime             int      `json:"end_time"`
			GrantCertifications []string `json:"grant_certifications"`
			GrantLevel          int      `json:"grant_level"`
			IsPermanent         bool     `json:"is_permanent"`
			StartTime           int      `json:"start_time"`
		} `json:"grant_details"`
		GrantType       int `json:"grant_type"`
		RegisterDetails struct {
			EndTime                int      `json:"end_time"`
			IsPermanent            bool     `json:"is_permanent"`
			RegisterCertifications []string `json:"register_certifications"`
			RegisterNo             string   `json:"register_no"`
			Registrant             string   `json:"registrant"`
			RenewCertifications    []string `json:"renew_certifications"`
			StartTime              int      `json:"start_time"`
		} `json:"register_details"`
		Status          int `json:"status"`
		TradeMarkSymbol int `json:"trade_mark_symbol"`
		UpdateTime      int `json:"update_time"`
	} `json:"brand"`
	CommonResp
}

type RespBrandListGet added in v1.0.0

type RespBrandListGet struct {
	Brands []struct {
		ApplicationDetails struct {
			AcceptanceCertification []string `json:"acceptance_certification"`
		} `json:"application_details"`
		BrandID          string `json:"brand_id"`
		ChName           string `json:"ch_name"`
		ClassificationNo string `json:"classification_no"`
		CreateTime       int    `json:"create_time"`
		EnName           string `json:"en_name"`
		GrantDetails     struct {
			BrandOwnerIDPhotos  []interface{} `json:"brand_owner_id_photos"`
			GrantCertifications []interface{} `json:"grant_certifications"`
		} `json:"grant_details"`
		GrantType       int `json:"grant_type"`
		RegisterDetails struct {
			EndTime                int      `json:"end_time"`
			IsPermanent            bool     `json:"is_permanent"`
			RegisterCertifications []string `json:"register_certifications"`
			RegisterNo             string   `json:"register_no"`
			Registrant             string   `json:"registrant"`
			RenewCertifications    []string `json:"renew_certifications"`
			StartTime              int      `json:"start_time"`
		} `json:"register_details"`
		Status          int `json:"status"`
		TradeMarkSymbol int `json:"trade_mark_symbol"`
		UpdateTime      int `json:"update_time"`
	} `json:"brands"`
	CommonResp
	NextKey  string `json:"next_key"`
	TotalNum int    `json:"total_num"`
}

type RespBrandUpdate added in v1.0.0

type RespBrandUpdate struct {
	AuditID string `json:"audit_id"`
	CommonResp
}

type RespCategoryAdd added in v1.0.0

type RespCategoryAdd struct {
	AuditID string `json:"audit_id"`
	CommonResp
}

type RespCategoryAll added in v1.0.0

type RespCategoryAll struct {
	Cats []struct {
		CatAndQua []struct {
			Cat struct {
				CatID  string `json:"cat_id"`
				FCatID string `json:"f_cat_id"`
				Level  int    `json:"level"`
				Name   string `json:"name"`
			} `json:"cat"`
			ProductQua struct {
				Mandatory   bool   `json:"mandatory"`
				NeedToApply bool   `json:"need_to_apply"`
				QuaID       string `json:"qua_id"`
				Tips        string `json:"tips"`
			} `json:"product_qua"`
			Qua struct {
				Mandatory   bool   `json:"mandatory"`
				NeedToApply bool   `json:"need_to_apply"`
				QuaID       string `json:"qua_id"`
				Tips        string `json:"tips"`
			} `json:"qua"`
		} `json:"cat_and_qua"`
	} `json:"cats"`
	CommonResp
}

type RespCategoryAuditCancel added in v1.0.0

type RespCategoryAuditCancel struct {
	CommonResp
}

type RespCategoryAuditGet added in v1.0.0

type RespCategoryAuditGet struct {
	Data struct {
		RejectReason string `json:"reject_reason"`
		Status       int    `json:"status"`
	} `json:"data"`
	CommonResp
}

type RespCategoryAvailablesoncategoriesGet added in v1.0.0

type RespCategoryAvailablesoncategoriesGet struct {
	CatList []struct {
		CatID  int    `json:"cat_id"`
		FCatID int    `json:"f_cat_id"`
		Name   string `json:"name"`
	} `json:"cat_list"`
	CommonResp
}

type RespCategoryDetail added in v1.0.0

type RespCategoryDetail struct {
	Attr struct {
		AccessPermitRequired bool `json:"access_permit_required"`
		BrandList            []struct {
			BrandID string `json:"brand_id"`
		} `json:"brand_list"`
		Deposit         string `json:"deposit"`
		PreSale         bool   `json:"pre_sale"`
		ProductAttrList []struct {
			IsRequired bool   `json:"is_required"`
			Name       string `json:"name"`
			Type       string `json:"type"`
			Value      string `json:"value"`
		} `json:"product_attr_list"`
		ShopNoShipment     bool `json:"shop_no_shipment"`
		TransactionfeeInfo struct {
			BasisPoint         int `json:"basis_point"`
			IncentiveType      int `json:"incentive_type"`
			OriginalBasisPoint int `json:"original_basis_point"`
		} `json:"transactionfee_info"`
	} `json:"attr"`
	CommonResp
	Info struct {
		CatID string `json:"cat_id"`
		Name  string `json:"name"`
	} `json:"info"`
}

type RespCategoryListGet added in v1.0.0

type RespCategoryListGet struct {
	CommonResp
	List []struct {
		CatId string `json:"cat_id"`
		QuaId string `json:"qua_id"`
	} `json:"list"`
}

type RespCouponCreate added in v1.0.6

type RespCouponCreate struct {
	Data struct {
		CouponID string `json:"coupon_id"`
	} `json:"data"`
	CommonResp
}

type RespCouponGet added in v1.0.6

type RespCouponGet struct {
	CommonResp
	Coupon struct {
		CouponID   string `json:"coupon_id"`
		Type       int    `json:"type"`
		Status     int    `json:"status"`
		CreateTime int    `json:"create_time"`
		UpdateTime int    `json:"update_time"`
		CouponInfo struct {
			Name      string `json:"name"`
			ValidInfo struct {
				ValidType   int `json:"valid_type"`
				ValidDayNum int `json:"valid_day_num"`
				StartTime   int `json:"start_time"`
				EndTime     int `json:"end_time"`
			} `json:"valid_info"`
			PromoteInfo struct {
				PromoteType int `json:"promote_type"`
			} `json:"promote_info"`
			DiscountInfo struct {
				DiscountNum       int `json:"discount_num"`
				DiscountFee       int `json:"discount_fee"`
				DiscountCondition struct {
					ProductCnt   int      `json:"product_cnt"`
					ProductPrice int      `json:"product_price"`
					ProductIds   []string `json:"product_ids"`
				} `json:"discount_condition"`
			} `json:"discount_info"`
			ExtInfo struct {
				InvalidTime   int    `json:"invalid_time"`
				JumpProductId int    `json:"jump_product_id"`
				Notes         string `json:"notes"`
				ValidTime     int    `json:"valid_time"`
			}
			ReceiveInfo struct {
				EndTime           int `json:"end_time"`
				LimitNumOnePerson int `json:"limit_num_one_person"`
				StartTime         int `json:"start_time"`
				TotalNum          int `json:"total_num"`
			} `json:"receive_info"`
		} `json:"coupon_info"`
		StockInfo struct {
			IssuedNum  int `json:"issued_num"`
			ReceiveNum int `json:"receive_num"`
			UsedNum    int `json:"used_num"`
		} `json:"stock_info"`
	} `json:"coupon"`
}

type RespCouponGetList added in v1.0.6

type RespCouponGetList struct {
	Coupons []struct {
		CouponID string `json:"coupon_id"`
	} `json:"coupons"`
	CommonResp
	PageCtx  string `json:"page_ctx"`
	TotalNum int    `json:"total_num"`
}

type RespCouponGetUserCoupon added in v1.0.6

type RespCouponGetUserCoupon struct {
	CommonResp
	Openid     string `json:"openid"`
	Unionid    string `json:"unionid"`
	UserCoupon struct {
		UserCouponID string `json:"user_coupon_id"`
		CouponID     string `json:"coupon_id"`
		Status       int    `json:"status"`
		CreateTime   int    `json:"create_time"`
		UpdateTime   int    `json:"update_time"`
		StartTime    int    `json:"start_time"`
		EndTime      int    `json:"end_time"`
		ExtInfo      struct {
			UseTime int `json:"use_time"`
		} `json:"ext_info"`
		OrderID     string `json:"order_id"`
		DiscountFee int    `json:"discount_fee"`
	} `json:"user_coupon"`
}

type RespCouponGetUserCouponList added in v1.0.6

type RespCouponGetUserCouponList struct {
	CommonResp
	PageCtx        string `json:"page_ctx"`
	TotalNum       int    `json:"total_num"`
	UserCouponList []struct {
		CouponID     string `json:"coupon_id"`
		UserCouponID string `json:"user_coupon_id"`
	} `json:"user_coupon_list"`
}

type RespCouponUpdate added in v1.0.6

type RespCouponUpdate struct {
	Data struct {
		CouponID string `json:"coupon_id"`
	} `json:"data"`
	CommonResp
}

type RespCouponUpdateStatus added in v1.0.6

type RespCouponUpdateStatus struct {
	CommonResp
}

type RespEcBasicsInfoGet

type RespEcBasicsInfoGet struct {
	CommonResp
	Info struct {
		Nickname    string `json:"nickname"`     // 店铺名称
		HeadimgURL  string `json:"headimg_url"`  // 店铺头像URL
		SubjectType string `json:"subject_type"` // 店铺类型,目前为"企业"或"个体工商户"
	} `json:"info"`
}

type RespFundsGetbalance added in v1.1.5

type RespFundsGetbalance struct {
	CommonResp
	AvailableAmount int    `json:"available_amount"`
	PendingAmount   int    `json:"pending_amount"`
	SubMchid        string `json:"sub_mchid"`
}

type RespFundsGetbankacct added in v1.1.5

type RespFundsGetbankacct struct {
	CommonResp
	AccountInfo struct {
		AccountBank     string `json:"account_bank"`
		AccountNumber   string `json:"account_number"`
		BankAccountType string `json:"bank_account_type"`
		BankAddressCode string `json:"bank_address_code"`
	} `json:"account_info"`
}

type RespFundsGetfundsflowdetail added in v1.1.5

type RespFundsGetfundsflowdetail struct {
	CommonResp
	FundsFlow struct {
		Amount          int    `json:"amount"`
		Balance         int    `json:"balance"`
		FlowID          string `json:"flow_id"`
		FlowType        int    `json:"flow_type"`
		FundsType       int    `json:"funds_type"`
		RelatedInfoList []struct {
			AftersaleID   string `json:"aftersale_id"`
			OrderID       string `json:"order_id"`
			RelatedType   int    `json:"related_type"`
			TransactionID string `json:"transaction_id"`
		} `json:"related_info_list"`
	} `json:"funds_flow"`
}

type RespFundsGetfundsflowlist added in v1.1.5

type RespFundsGetfundsflowlist struct {
	CommonResp
	FlowIds []string `json:"flow_ids"`
	HasMore bool     `json:"has_more"`
	NextKey string   `json:"next_key"`
}

type RespFundsGetwithdrawdetail added in v1.1.5

type RespFundsGetwithdrawdetail struct {
	CommonResp
	Amount     int    `json:"amount"`
	BankMemo   string `json:"bank_memo"`
	BankName   string `json:"bank_name"`
	BankNum    string `json:"bank_num"`
	CreateTime int    `json:"create_time"`
	Reason     string `json:"reason"`
	Remark     string `json:"remark"`
	Status     string `json:"status"`
	UpdateTime int    `json:"update_time"`
}

type RespFundsGetwithdrawlist added in v1.1.5

type RespFundsGetwithdrawlist struct {
	CommonResp
	TotalNum    int      `json:"total_num"`
	WithdrawIds []string `json:"withdraw_ids"`
}

type RespFundsSetbankacct added in v1.1.5

type RespFundsSetbankacct struct {
	CommonResp
}

type RespFundsSubmitwithdraw added in v1.1.5

type RespFundsSubmitwithdraw struct {
	CommonResp
	QrcodeTicket string `json:"qrcode_ticket"`
}

type RespGetAccessToken

type RespGetAccessToken struct {
	CommonResp
	AccessToken string `json:"access_token"` // 获取到的凭证
	ExpiresIn   int    `json:"expires_in"`   // 凭证有效时间,单位:秒。
}

type RespGetLeadsInfoByComponentId added in v1.0.0

type RespGetLeadsInfoByComponentId struct {
	CommonResp
	UserData []struct {
		Phone string `json:"phone"`
	} `json:"user_data"`
	LastBuffer   string `json:"last_buffer"`
	ContinueFlag bool   `json:"continue_flag"`
}

type RespGetLeadsInfoByRequestId added in v1.0.0

type RespGetLeadsInfoByRequestId struct {
	CommonResp
	UserData []struct {
		Phone string `json:"phone"`
	} `json:"user_data"`
	LastBuffer   string `json:"last_buffer"`
	ContinueFlag bool   `json:"continue_flag"`
}

type RespGetLeadsRequestId added in v1.0.0

type RespGetLeadsRequestId struct {
	ContinueFlag bool `json:"continue_flag"`
	CommonResp
	Item []struct {
		LiveDescription string `json:"live_description"`
		LiveStartTime   int    `json:"live_start_time"`
		RequestID       string `json:"request_id"`
	} `json:"item"`
	LastBuffer string `json:"last_buffer"`
}

type RespGetbankbynum added in v1.1.5

type RespGetbankbynum struct {
	CommonResp
	Data []struct {
		AccountBank string `json:"account_bank"`
		BankCode    string `json:"bank_code"`
		BankID      string `json:"bank_id"`
		BankName    string `json:"bank_name"`
		NeedBranch  bool   `json:"need_branch"`
	} `json:"data"`
	TotalCount int `json:"total_count"`
}

type RespGetbanklist added in v1.1.5

type RespGetbanklist struct {
	CommonResp
	Data []struct {
		AccountBank string `json:"account_bank"`
		BankCode    string `json:"bank_code"`
		BankID      string `json:"bank_id"`
		BankName    string `json:"bank_name"`
		BankType    int    `json:"bank_type"`
		NeedBranch  bool   `json:"need_branch"`
	} `json:"data"`
}

type RespGetcity added in v1.1.5

type RespGetcity struct {
	CommonResp
	Data []struct {
		BankAddressCode string `json:"bank_address_code"`
		CityCode        int    `json:"city_code"`
		CityName        string `json:"city_name"`
	} `json:"data"`
	TotalCount int `json:"total_count"`
}

type RespGetprovince added in v1.1.5

type RespGetprovince struct {
	CommonResp
	Data []struct {
		ProvinceCode int    `json:"province_code"`
		ProvinceName string `json:"province_name"`
	} `json:"data"`
	TotalCount int `json:"total_count"`
}

type RespGetsubbranch added in v1.1.5

type RespGetsubbranch struct {
	CommonResp
	AccountBank     string `json:"account_bank"`
	AccountBankCode int    `json:"account_bank_code"`
	BankAlias       string `json:"bank_alias"`
	BankAliasCode   string `json:"bank_alias_code"`
	Count           int    `json:"count"`
	Data            []struct {
		BranchID   string `json:"branch_id"`
		BranchName string `json:"branch_name"`
	} `json:"data"`
	TotalCount int `json:"total_count"`
}

type RespImgUpload added in v1.0.0

type RespImgUpload struct {
	CommonResp
	PicFile struct {
		MediaId    string `json:"media_id"`
		PayMediaId string `json:"pay_media_id"`
		ImgUrl     string `json:"img_url"`
	} `json:"pic_file"`
}

type RespLogisticsEwaybillBizAccountGet added in v1.1.6

type RespLogisticsEwaybillBizAccountGet struct {
	AccountList []struct {
		AcctID     string `json:"acct_id"`
		Allocated  int    `json:"allocated"`
		Available  int    `json:"available"`
		Cancel     int    `json:"cancel"`
		DeliveryID string `json:"delivery_id"`
		Recycled   int    `json:"recycled"`
		ShopID     string `json:"shop_id"`
		SiteInfo   struct {
			Address struct {
				CityCode      string `json:"city_code"`
				CityName      string `json:"city_name"`
				DetailAddress string `json:"detail_address"`
				DistrictCode  string `json:"district_code"`
				DistrictName  string `json:"district_name"`
				ProvinceCode  string `json:"province_code"`
				ProvinceName  string `json:"province_name"`
				StreetCode    string `json:"street_code"`
				StreetName    string `json:"street_name"`
			} `json:"address"`
			Contact struct {
				Mobile string `json:"mobile"`
				Name   string `json:"name"`
				Phone  string `json:"phone"`
			} `json:"contact"`
			DeliveryID   string `json:"delivery_id"`
			SiteCode     string `json:"site_code"`
			SiteFullname string `json:"site_fullname"`
			SiteName     string `json:"site_name"`
			SiteStatus   int    `json:"site_status"`
		} `json:"site_info"`
		Status int `json:"status"`
	} `json:"account_list"`
	CommonResp
	TotalNum int `json:"total_num"`
}

type RespLogisticsEwaybillBizDeliveryGet added in v1.1.6

type RespLogisticsEwaybillBizDeliveryGet struct {
	CommonResp
	List []struct {
		DeliveryID   string `json:"delivery_id"`
		DeliveryName string `json:"delivery_name"`
	} `json:"list"`
	ShopID string `json:"shop_id"`
}

type RespLogisticsEwaybillBizOrderCancel added in v1.1.6

type RespLogisticsEwaybillBizOrderCancel struct {
	DeliveryErrorMsg string `json:"delivery_error_msg"`
	CommonResp
}

type RespLogisticsEwaybillBizOrderCreate added in v1.1.6

type RespLogisticsEwaybillBizOrderCreate struct {
	DeliveryErrorMsg string `json:"delivery_error_msg"`
	CommonResp
	EwaybillOrderID string `json:"ewaybill_order_id"`
	WaybillID       string `json:"waybill_id"`
}

type RespLogisticsEwaybillBizOrderGet added in v1.1.6

type RespLogisticsEwaybillBizOrderGet struct {
	CommonResp
	OrderInfo struct {
		DeliveryID  string `json:"delivery_id"`
		EcOrderList []struct {
			EcOrderID int `json:"ec_order_id"`
			GoodsList []struct {
				GoodCount int    `json:"good_count"`
				GoodName  string `json:"good_name"`
				ProductID int    `json:"product_id"`
				SkuID     int    `json:"sku_id"`
			} `json:"goods_list"`
		} `json:"ec_order_list"`
		EwaybillAcctID  string `json:"ewaybill_acct_id"`
		EwaybillOrderID string `json:"ewaybill_order_id"`
		PathInfo        []struct {
			Desc       string `json:"desc"`
			Status     int    `json:"status"`
			UpdateTime int    `json:"update_time"`
		} `json:"path_info"`
		Receiver struct {
			Address  string `json:"address"`
			City     string `json:"city"`
			County   string `json:"county"`
			Mobile   string `json:"mobile"`
			Name     string `json:"name"`
			Province string `json:"province"`
			Street   string `json:"street"`
		} `json:"receiver"`
		Remark string `json:"remark"`
		Sender struct {
			Address  string `json:"address"`
			City     string `json:"city"`
			County   string `json:"county"`
			Mobile   string `json:"mobile"`
			Name     string `json:"name"`
			Province string `json:"province"`
			Street   string `json:"street"`
		} `json:"sender"`
		ShopID    string `json:"shop_id"`
		SiteCode  string `json:"site_code"`
		Status    int    `json:"status"`
		WaybillID string `json:"waybill_id"`
	} `json:"order_info"`
}

type RespLogisticsEwaybillBizOrderPrecreate added in v1.1.6

type RespLogisticsEwaybillBizOrderPrecreate struct {
	CommonResp
	EwaybillOrderID string `json:"ewaybill_order_id"`
}

type RespMediaGet added in v1.0.0

type RespMediaGet struct {
	CommonResp
}

type RespMerchantAddfreighttemplate added in v1.0.0

type RespMerchantAddfreighttemplate struct {
	CommonResp
	TemplateID string `json:"template_id"`
}

type RespMerchantAddressAdd added in v1.0.0

type RespMerchantAddressAdd struct {
	CommonResp
	AddressID string `json:"address_id"`
}

type RespMerchantAddressDelete added in v1.0.0

type RespMerchantAddressDelete struct {
	CommonResp
}

type RespMerchantAddressGet added in v1.0.0

type RespMerchantAddressGet struct {
	AddressDetail struct {
		AddressID   int `json:"address_id"`
		AddressInfo struct {
			CityName     string  `json:"city_name"`
			CountyName   string  `json:"county_name"`
			DetailInfo   string  `json:"detail_info"`
			HouseNumber  string  `json:"house_number"`
			Lat          float64 `json:"lat"`
			Lng          float64 `json:"lng"`
			PostalCode   string  `json:"postal_code"`
			ProvinceName string  `json:"province_name"`
			TelNumber    string  `json:"tel_number"`
			UserName     string  `json:"user_name"`
		} `json:"address_info"`
		AddressType struct {
			Pickup   int `json:"pickup"`
			SameCity int `json:"same_city"`
		} `json:"address_type"`
		CreateTime  int    `json:"create_time"`
		DefaultRecv int    `json:"default_recv"`
		DefaultSend int    `json:"default_send"`
		Landline    string `json:"landline"`
		Name        string `json:"name"`
		RecvAddr    int    `json:"recv_addr"`
		Remark      string `json:"remark"`
		SendAddr    int    `json:"send_addr"`
		UpdateTime  int    `json:"update_time"`
	} `json:"address_detail"`
	CommonResp
}

type RespMerchantAddressList added in v1.0.0

type RespMerchantAddressList struct {
	CommonResp
	AddressIdList []string `json:"address_id_list"`
}

type RespMerchantAddressUpdate added in v1.0.0

type RespMerchantAddressUpdate struct {
	CommonResp
}

type RespMerchantGetfreighttemplatedetail added in v1.0.0

type RespMerchantGetfreighttemplatedetail struct {
	CommonResp
	FreightTemplate struct {
		AddressInfo struct {
			CityName     string `json:"city_name"`
			CountyName   string `json:"county_name"`
			DetailInfo   string `json:"detail_info"`
			NationalCode string `json:"national_code"`
			PostalCode   string `json:"postal_code"`
			ProvinceName string `json:"province_name"`
			TelNumber    string `json:"tel_number"`
			UserName     string `json:"user_name"`
		} `json:"address_info"`
		AllConditionFreeDetail struct {
			ConditionFreeDetailList []interface{} `json:"condition_free_detail_list"`
		} `json:"all_condition_free_detail"`
		AllFreightCalcMethod struct {
			FreightCalcMethodList []interface{} `json:"freight_calc_method_list"`
		} `json:"all_freight_calc_method"`
		CreateTime   int           `json:"create_time"`
		DeliveryID   []interface{} `json:"delivery_id"`
		DeliveryType string        `json:"delivery_type"`
		IsDefault    int           `json:"is_default"`
		Name         string        `json:"name"`
		NotSendArea  struct {
			AddressInfo []interface{} `json:"address_info"`
		} `json:"not_send_area"`
		SendTime       string `json:"send_time"`
		ShippingMethod string `json:"shipping_method"`
		TemplateID     string `json:"template_id"`
		UpdateTime     int    `json:"update_time"`
		ValuationType  string `json:"valuation_type"`
	} `json:"freight_template"`
}

type RespMerchantGetfreighttemplatelist added in v1.0.0

type RespMerchantGetfreighttemplatelist struct {
	CommonResp
	TemplateIDList []string `json:"template_id_list"`
}

type RespMerchantUpdatefreighttemplate added in v1.0.0

type RespMerchantUpdatefreighttemplate struct {
	CommonResp
	TemplateID string `json:"template_id"`
}

type RespOrderAddressUpdate added in v1.0.0

type RespOrderAddressUpdate struct {
	CommonResp
}

type RespOrderDeliverySend added in v1.0.0

type RespOrderDeliverySend struct {
	CommonResp
}

type RespOrderDeliverycompanylistGet added in v1.0.0

type RespOrderDeliverycompanylistGet struct {
	CompanyList []struct {
		DeliveryID   string `json:"delivery_id"`
		DeliveryName string `json:"delivery_name"`
	} `json:"company_list"`
	CommonResp
}

type RespOrderGet added in v1.0.0

type RespOrderGet struct {
	CommonResp
	Order struct {
		AftersaleDetail struct {
			AftersaleOrderList []struct {
				AftersaleOrderID string `json:"aftersale_order_id"`
				Status           int    `json:"status"`
			} `json:"aftersale_order_list"`
			OnAftersaleOrderCnt int `json:"on_aftersale_order_cnt"`
		} `json:"aftersale_detail"`
		CreateTime  int    `json:"create_time"`
		Openid      string `json:"openid"`
		Unionid     string `json:"unionid"`
		OrderDetail struct {
			ProductInfos []struct {
				ProductID             string `json:"product_id"`
				SkuID                 string `json:"sku_id"`
				ThumbImg              string `json:"thumb_img"`
				SkuCnt                int    `json:"sku_cnt"`
				SalePrice             int    `json:"sale_price"`
				Title                 string `json:"title"`
				OnAftersaleSkuCnt     int    `json:"on_aftersale_sku_cnt"`
				FinishAftersaleSkuCnt int    `json:"finish_aftersale_sku_cnt"`
				SkuCode               string `json:"sku_code"`
				MarketPrice           int    `json:"market_price"`
				SkuAttrs              []struct {
					AttrKey   string `json:"attr_key"`
					AttrValue string `json:"attr_value"`
				} `json:"sku_attrs"`
				RealPrice      int    `json:"real_price"`
				OutProductId   string `json:"out_product_id"`
				OutSkuId       string `json:"out_sku_id"`
				IsDiscounted   bool   `json:"is_discounted"`
				EstimatePrice  int    `json:"estimate_price"`
				IsChangePrice  bool   `json:"is_change_price"`
				ChangePrice    int    `json:"change_price"`
				OutWarehouseId string `json:"out_warehouse_id"`
			} `json:"product_infos"`
			PriceInfo struct {
				ProductPrice         int  `json:"product_price"`
				OrderPrice           int  `json:"order_price"`
				Freight              int  `json:"freight"`
				DiscountedPrice      int  `json:"discounted_price"`
				IsDiscounted         bool `json:"is_discounted"`
				OriginalOrderPrice   int  `json:"original_order_price"`
				EstimateProductPrice int  `json:"estimate_product_price"`
				ChangeDownPrice      int  `json:"change_down_price"`
				ChangeFreight        int  `json:"change_freight"`
				IsChangeFreight      bool `json:"is_change_freight"`
			} `json:"price_info"`
			PayInfo struct {
				PayTime       int    `json:"pay_time"`
				PrepayID      string `json:"prepay_id"`
				PrepayTime    int    `json:"prepay_time"`
				TransactionID string `json:"transaction_id"`
			} `json:"pay_info"`
			DeliveryInfo struct {
				AddressInfo         OrderDetailAddress `json:"address_info"`
				DeliverMethod       int                `json:"deliver_method"`
				DeliveryProductInfo []struct {
					WaybillID    string `json:"waybill_id"`
					DeliveryID   string `json:"delivery_id"`
					ProductInfos []struct {
						ProductCnt int    `json:"product_cnt"`
						ProductID  string `json:"product_id"`
						SkuID      string `json:"sku_id"`
					} `json:"product_infos"`
					DeliveryName    string             `json:"delivery_name"`
					DeliveryTime    int                `json:"delivery_time"`
					DeliverType     int                `json:"deliver_type"`
					DeliveryAddress OrderDetailAddress `json:"delivery_address"`
				} `json:"delivery_product_info"`
				ShipDoneTime int `json:"ship_done_time"`
			} `json:"delivery_info"`
			CouponInfo struct {
				UserCouponID string `json:"user_coupon_id"`
			} `json:"coupon_info"`
			ExtInfo struct {
				CustomerNotes string `json:"customer_notes"`
				MerchantNotes string `json:"merchant_notes"`
			} `json:"ext_info"`
			CommissionInfos []struct {
				SkuID    int    `json:"sku_id"`
				Nickname string `json:"nickname"`
				Type     int    `json:"type"`
				Status   int    `json:"status"`
				Amount   int    `json:"amount"`
				FinderId string `json:"finder_id"`
			} `json:"commission_infos"`
			SharerInfo struct {
				SharerOpenid  string `json:"sharer_openid"`
				SharerUnionid string `json:"sharer_unionid"`
				SharerType    int    `json:"sharer_type"`
				ShareScene    int    `json:"share_scene"`
			} `json:"sharer_info"`
			SettleInfo struct {
				PredictCommissionFee int `json:"predict_commission_fee"`
				CommissionFee        int `json:"commission_fee"`
			} `json:"settle_info"`
		} `json:"order_detail"`
		OrderID    string `json:"order_id"`
		Status     int    `json:"status"`
		UpdateTime int    `json:"update_time"`
	} `json:"order"`
}

type RespOrderListGet added in v1.0.0

type RespOrderListGet struct {
	CommonResp
	HasMore     bool     `json:"has_more"`
	NextKey     string   `json:"next_key"`
	OrderIDList []string `json:"order_id_list"`
}

type RespOrderMerchantnotesUpdate added in v1.0.0

type RespOrderMerchantnotesUpdate struct {
	CommonResp
}

type RespOrderPriceUpdate added in v1.0.0

type RespOrderPriceUpdate struct {
	CommonResp
}

type RespOrderSearch added in v1.0.0

type RespOrderSearch struct {
	CommonResp
	HasMore bool     `json:"has_more"`
	NextKey string   `json:"next_key"`
	Orders  []string `json:"orders"`
}

type RespProductAdd added in v1.0.0

type RespProductAdd struct {
	Data struct {
		CreateTime string `json:"create_time"`
		ProductID  int    `json:"product_id"`
	} `json:"data"`
	CommonResp
}

type RespProductAuditCancel added in v1.0.0

type RespProductAuditCancel struct {
	CommonResp
}

type RespProductDelete added in v1.0.0

type RespProductDelete struct {
	CommonResp
}

type RespProductDelisting added in v1.0.0

type RespProductDelisting struct {
	CommonResp
}

type RespProductGet added in v1.0.0

type RespProductGet struct {
	CommonResp
	Product struct {
		Attrs []struct {
			AttrKey   string `json:"attr_key"`
			AttrValue string `json:"attr_value"`
		} `json:"attrs"`
		Cats []struct {
			CatID string `json:"cat_id"`
		} `json:"cats"`
		DescInfo struct {
			Imgs []string `json:"imgs"`
		} `json:"desc_info"`
		EditStatus  int `json:"edit_status"`
		ExpressInfo struct {
			TemplateID string `json:"template_id"`
		} `json:"express_info"`
		HeadImgs     []string `json:"head_imgs"`
		MinPrice     int      `json:"min_price"`
		OutProductID string   `json:"out_product_id"`
		ProductID    string   `json:"product_id"`
		Skus         []struct {
			OutSkuID  string        `json:"out_sku_id"`
			SalePrice int           `json:"sale_price"`
			SkuAttrs  []interface{} `json:"sku_attrs"`
			SkuCode   string        `json:"sku_code"`
			SkuID     string        `json:"sku_id"`
			Status    int           `json:"status"`
			StockNum  int           `json:"stock_num"`
			ThumbImg  string        `json:"thumb_img"`
		} `json:"skus"`
		SpuCode  string `json:"spu_code"`
		Status   int    `json:"status"`
		SubTitle string `json:"sub_title"`
		Title    string `json:"title"`
	} `json:"product"`
}

type RespProductLimiteddiscounttaskAdd added in v1.0.0

type RespProductLimiteddiscounttaskAdd struct {
	CommonResp
	TaskID string `json:"task_id"`
}

type RespProductLimiteddiscounttaskDelete added in v1.0.0

type RespProductLimiteddiscounttaskDelete struct {
	CommonResp
}

type RespProductLimiteddiscounttaskListGet added in v1.0.0

type RespProductLimiteddiscounttaskListGet struct {
	CommonResp
	LimitedDiscountTasks []struct {
		CreateTime          int `json:"create_time"`
		EndTime             int `json:"end_time"`
		LimitedDiscountSkus []struct {
			SalePrice int    `json:"sale_price"`
			SaleStock int    `json:"sale_stock"`
			SkuID     string `json:"sku_id"`
		} `json:"limited_discount_skus"`
		ProductID string `json:"product_id"`
		StartTime int    `json:"start_time"`
		Status    int    `json:"status"`
		TaskID    string `json:"task_id"`
	} `json:"limited_discount_tasks"`
	NextKey  string `json:"next_key"`
	TotalNum int    `json:"total_num"`
}

type RespProductLimiteddiscounttaskStop added in v1.0.0

type RespProductLimiteddiscounttaskStop struct {
	CommonResp
}

type RespProductListGet added in v1.0.0

type RespProductListGet struct {
	CommonResp
	ProductIds []int  `json:"product_ids"` // 商品 id 列表
	NextKey    string `json:"next_key"`    // 本次翻页的上下文,用于请求下一页
	TotalNum   int    `json:"total_num"`   // 商品总数
}

type RespProductListing added in v1.0.0

type RespProductListing struct {
	CommonResp
}

type RespProductStockGet added in v1.0.0

type RespProductStockGet struct {
	Data struct {
		NormalStockNum          int `json:"normal_stock_num"`
		LimitedDiscountStockNum int `json:"limited_discount_stock_num"`
		WarehouseStocks         []struct {
			OutWarehouseId string `json:"out_warehouse_id"`
			Num            int    `json:"num"`
		} `json:"warehouse_stocks"`
		TotalStockNum int `json:"total_stock_num"`
	} `json:"data"`
	CommonResp
}

type RespProductStockUpdate added in v1.0.0

type RespProductStockUpdate struct {
	CommonResp
}

type RespProductUpdate added in v1.0.0

type RespProductUpdate struct {
	Data struct {
		ProductID  string `json:"product_id"`
		UpdateTime string `json:"update_time"`
	} `json:"data"`
	CommonResp
}

type RespQrcodeCheck added in v1.1.5

type RespQrcodeCheck struct {
	CommonResp
	ScanUserType     int    `json:"scan_user_type"`
	SelfCheckErrCode int    `json:"self_check_err_code"`
	SelfCheckErrMsg  string `json:"self_check_err_msg"`
	Status           int    `json:"status"`
}

type RespQrcodeGet added in v1.1.5

type RespQrcodeGet struct {
	CommonResp
	QrcodeBuf string `json:"qrcode_buf"`
}

type RespQualificationUpload added in v1.0.0

type RespQualificationUpload struct {
	CommonResp
	Data struct {
		FileId string `json:"file_id"`
	} `json:"data"`
}

type RespWarehouseAddressPrioritysortGet added in v1.0.0

type RespWarehouseAddressPrioritysortGet struct {
	Data struct {
		PrioritySort []string `json:"priority_sort"`
	} `json:"data"`
	CommonResp
}

type RespWarehouseAddressPrioritysortSet added in v1.0.0

type RespWarehouseAddressPrioritysortSet struct {
	CommonResp
}

type RespWarehouseCoverlocationsAdd added in v1.0.0

type RespWarehouseCoverlocationsAdd struct {
	CommonResp
}

type RespWarehouseCoverlocationsDel added in v1.0.0

type RespWarehouseCoverlocationsDel struct {
	CommonResp
}

type RespWarehouseCreate added in v1.0.0

type RespWarehouseCreate struct {
	CommonResp
}

type RespWarehouseDetailUpdate added in v1.0.0

type RespWarehouseDetailUpdate struct {
	CommonResp
}

type RespWarehouseGet added in v1.0.0

type RespWarehouseGet struct {
	Data struct {
		CoverLocations []struct {
			AddressID1 int `json:"address_id1"`
			AddressID2 int `json:"address_id2"`
			AddressID3 int `json:"address_id3"`
			AddressID4 int `json:"address_id4"`
		} `json:"cover_locations"`
		Intro          string `json:"intro"`
		Name           string `json:"name"`
		OutWarehouseID string `json:"out_warehouse_id"`
	} `json:"data"`
	CommonResp
}

type RespWarehouseListGet added in v1.0.0

type RespWarehouseListGet struct {
	Data struct {
		NextKey         string   `json:"next_key"`
		OutWarehouseIds []string `json:"out_warehouse_ids"`
	} `json:"data"`
	CommonResp
}

type RespWarehouseStockGet added in v1.0.0

type RespWarehouseStockGet struct {
	Data struct {
		Num int `json:"num"`
	} `json:"data"`
	CommonResp
}

type RespWarehouseStockUpdate added in v1.0.0

type RespWarehouseStockUpdate struct {
	CommonResp
}

type RespWindowProductAdd added in v1.0.0

type RespWindowProductAdd struct {
	CommonResp
}

type RespWindowProductGet added in v1.0.0

type RespWindowProductGet struct {
	CommonResp
	Product struct {
		Appid             string `json:"appid"`
		Banned            bool   `json:"banned"`
		ImgURL            string `json:"img_url"`
		IsHideForWindow   int    `json:"is_hide_for_window"`
		LimitDiscountInfo struct {
			DiscountPrice int  `json:"discount_price"`
			EndTimeMs     int  `json:"end_time_ms"`
			IsEffect      bool `json:"is_effect"`
			Stock         int  `json:"stock"`
		} `json:"limit_discount_info"`
		MarketPrice  int    `json:"market_price"`
		OutProductID string `json:"out_product_id"`
		PagePath     struct {
			Appid        string `json:"appid"`
			FullPagePath string `json:"full_page_path"`
			HalfPagePath string `json:"half_page_path"`
		} `json:"page_path"`
		PlatformID              int    `json:"platform_id"`
		PlatformName            string `json:"platform_name"`
		ProductID               string `json:"product_id"`
		ProductRecommendWording string `json:"product_recommend_wording"`
		Sales                   int    `json:"sales"`
		SellingPrice            int    `json:"selling_price"`
		Status                  int    `json:"status"`
		Stock                   int    `json:"stock"`
		ThirdCategoryID         int    `json:"third_category_id"`
		Title                   string `json:"title"`
	} `json:"product"`
}

type RespWindowProductListGet added in v1.0.0

type RespWindowProductListGet struct {
	CommonResp
	LastBuffer string `json:"last_buffer"`
	Products   []struct {
		Appid     string `json:"appid"`
		ProductID string `json:"product_id"`
	} `json:"products"`
	TotalNum int `json:"total_num"`
}

type RespWindowProductOff added in v1.0.0

type RespWindowProductOff struct {
	CommonResp
}

type TelNumberExtInfo added in v1.1.6

type TelNumberExtInfo struct {
	RealTelNumber        string `json:"real_tel_number"`
	VirtualTelNumber     string `json:"virtual_tel_number"`
	VirtualTelExpireTime int    `json:"virtual_tel_expire_time"`
	GetVirtualTelCnt     int    `json:"get_virtual_tel_cnt"`
}

type TimeRange added in v1.0.5

type TimeRange struct {
	StartTime int64 `json:"start_time"`
	EndTime   int64 `json:"end_time"`
}

type TokenInfo

type TokenInfo struct {
	Token       string        `json:"token"`        // access_token/jsapi_ticket
	ExpiresIn   time.Duration `json:"expires_in"`   // 过期时间
	LastRefresh time.Time     `json:"last_refresh"` // 上次刷新access_token时间
}

type UserAddress added in v1.0.5

type UserAddress struct {
	CityName     string `json:"city_name"`
	CountyName   string `json:"county_name"`
	DetailInfo   string `json:"detail_info"`
	NationalCode string `json:"national_code"`
	PostalCode   string `json:"postal_code"`
	ProvinceName string `json:"province_name"`
	TelNumber    string `json:"tel_number"`
	UserName     string `json:"user_name"`
}

Source Files

Jump to

Keyboard shortcuts

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