Documentation
¶
Index ¶
- type ActivityInfo
- type BrandDetailResponse
- type BrandInfo
- type BrandSnListResponse
- type CommonParams
- type GetBrandDetailParam
- type GetBrandDetailRequest
- type GetBrandDetailResponse
- type GetBrandSnListParam
- type GetBrandSnListRequest
- type GetBrandSnListResponse
- type GetByGoodsIdsParam
- type GetByGoodsIdsRequest
- type GetByGoodsIdsResponse
- type GetByGoodsIdsV2Param
- type GetByGoodsIdsV2Request
- type GetByGoodsIdsV2Response
- type GoodsCommentsInfo
- type GoodsInfo
- type GoodsInfoRequest
- type GoodsInfoRequestV2
- type GoodsInfoResponse
- type GoodsInfoResponseV2
- type GoodsListParam
- type GoodsListResponse
- type GoodsListV2Param
- type GoodsListV2Response
- type PMSCouponInfo
- type PrepayInfo
- type QueryByBrandSnParam
- type QueryByBrandSnRequest
- type QueryByBrandSnResponse
- type QueryGoodsParam
- type QueryGoodsRequest
- type QueryGoodsResponse
- type Service
- type SimilarRecommendParam
- type SimilarRecommendRequest
- type SimilarRecommendResponse
- type SortFields
- type StoreInfo
- type StoreServiceCapability
- type UserRecommendParam
- type UserRecommendRequest
- type UserRecommendResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityInfo ¶
type ActivityInfo struct { ActType int64 `json:"actType,omitempty"` // 活动类型:18-唯品快抢 ActName string `json:"actName,omitempty"` // 活动名称 BeginTime int64 `json:"beginTime,omitempty"` // 开始时间:时间戳,单位毫秒 EndTime int64 `json:"endTime,omitempty"` // 结束时间:时间戳,单位毫秒 ForeShowBeginTime int64 `json:"foreShowBeginTime,omitempty"` // 预热开始时间:时间戳,单位毫秒 }
商品参加的唯品会活动信息
type BrandDetailResponse ¶
type BrandInfo ¶
type BrandInfo struct { BrandSn string `json:"brandSn"` //品牌Sn CnName string `json:"cnName"` //品牌中文名称(与英文名称至少有一个) EnName string `json:"enName"` //英文名称(与中文名称至少有一个) ShowName string `json:"showName"` //前端展示名称 Logo string `json:"logo"` //品牌LOGO图地址 SLogon string `json:"slogon"` //品牌描述 AtmosphereUrl string `json:"atmosphereUrl"` //品牌氛围图 Content string `json:"content"` //品牌故事内容 BrandStoryImage string `json:"brandStoryImage"` //品牌故事图片地址 }
type BrandSnListResponse ¶
type CommonParams ¶
type CommonParams struct { Plat int64 `json:"plat,omitempty"` // 用户平台:1-PC,2-APP,3-小程序,不传默认为APP DeviceType string `json:"deviceType,omitempty"` // 设备号类型:IMEI,IDFA,OAID,有则传入 DeviceValue string `json:"deviceValue,omitempty"` // 设备号MD5加密后的值,有则传入 IP string `json:"ip,omitempty"` // 用户ip地址 Longitude string `json:"longitude,omitempty"` // 经度 如:29.590961456298828 Latitude string `json:"latitude,omitempty"` // 纬度 如:106.51573181152344 }
通用参数
type GetBrandDetailParam ¶
type GetBrandDetailParam struct { Service Request GetBrandDetailRequest }
func (GetBrandDetailParam) MethodName ¶
func (a GetBrandDetailParam) MethodName() string
func (GetBrandDetailParam) Params ¶
func (a GetBrandDetailParam) Params() interface{}
type GetBrandDetailRequest ¶
type GetBrandDetailResponse ¶
type GetBrandDetailResponse struct { ReturnCode string `json:"returnCode"` Result BrandDetailResponse `json:"result"` }
type GetBrandSnListParam ¶
type GetBrandSnListParam struct { Service Request GetBrandSnListRequest }
func (GetBrandSnListParam) MethodName ¶
func (a GetBrandSnListParam) MethodName() string
func (GetBrandSnListParam) Params ¶
func (a GetBrandSnListParam) Params() interface{}
type GetBrandSnListRequest ¶
type GetBrandSnListResponse ¶
type GetBrandSnListResponse struct { ReturnCode string `json:"returnCode"` Result BrandSnListResponse `json:"result"` }
type GetByGoodsIdsParam ¶
type GetByGoodsIdsParam struct { Service Request GetByGoodsIdsRequest }
func (GetByGoodsIdsParam) MethodName ¶
func (a GetByGoodsIdsParam) MethodName() string
func (GetByGoodsIdsParam) Params ¶
func (a GetByGoodsIdsParam) Params() interface{}
type GetByGoodsIdsRequest ¶
type GetByGoodsIdsResponse ¶
type GetByGoodsIdsV2Param ¶
type GetByGoodsIdsV2Param struct { Service Request GetByGoodsIdsV2Request }
func (GetByGoodsIdsV2Param) MethodName ¶
func (a GetByGoodsIdsV2Param) MethodName() string
func (GetByGoodsIdsV2Param) Params ¶
func (a GetByGoodsIdsV2Param) Params() interface{}
type GetByGoodsIdsV2Request ¶
type GetByGoodsIdsV2Request struct { GoodsIds []string `json:"goodsIds"` // 商品id列表 RequestId string `json:"requestId"` // 请求id:UUID ChanTag string `json:"chanTag"` // chanTag=pid,即推广位标识 (必传),: default_pid OpenId string `json:"openId"` // 渠道用户在渠道侧的用户唯一标识(必传)default_open_id RealCall bool `json:"realCall"` // 是否实时调用(必传),false QueryDetail bool `json:"queryDetail"` // 是否查询详情信息:此参数设为true,将查询出商品轮播图和详情图,默认为false QueryStock bool `json:"queryStock"` // 是否查询商品库存状态:默认为false QueryReputation bool `json:"queryReputation"` // 是否查询商品评价信息:默认为false QueryStoreServiceCapability bool `json:"queryStoreServiceCapability"` // 是否查询商品所属店铺服务能力信息:默认为false QueryPMSAct bool `json:"queryPMSAct"` // 是否查询商品活动信息:默认为false QueryCpsInfo int64 `json:"queryCpsInfo"` // 是否返回cps链接:0-不查询,1-tra_from参数,2-小程序链接,默认为0,查询多个时按照位运算处理,例如:3表示查询tra_from参数+小程序链接 }
type GetByGoodsIdsV2Response ¶
type GoodsCommentsInfo ¶
type GoodsCommentsInfo struct { Comments int64 `json:"comments,omitempty"` // 商品评论数 }
商品评价信息
type GoodsInfo ¶
type GoodsInfo struct { GoodsId string `json:"goodsId,omitempty"` GoodsName string `json:"goodsName,omitempty"` GoodsDesc string `json:"goodsDesc,omitempty"` DestURL string `json:"destUrl,omitempty"` GoodsThumbURL string `json:"goodsThumbUrl,omitempty"` GoodsCarouselPictures []string `json:"goodsCarouselPictures,omitempty"` GoodsMainPicture string `json:"goodsMainPicture,omitempty"` CategoryId int64 `json:"categoryId,omitempty"` CategoryName string `json:"categoryName,omitempty"` SourceType int64 `json:"sourceType,omitempty"` MarketPrice string `json:"marketPrice,omitempty"` VipPrice string `json:"vipPrice,omitempty"` CommissionRate string `json:"commissionRate,omitempty"` Commission string `json:"commission,omitempty"` Discount string `json:"discount,omitempty"` GoodsDetailPictures []string `json:"goodsDetailPictures,omitempty"` Cat1stId int64 `json:"cat1stId,omitempty"` Cat1stName string `json:"cat1stName,omitempty"` Cat2ndId int64 `json:"cat2ndId,omitempty"` Cat2ndName string `json:"cat2ndName,omitempty"` BrandStoreSn string `json:"brandStoreSn,omitempty"` BrandName string `json:"brandName,omitempty"` BrandLogoFull string `json:"brandLogoFull,omitempty"` SchemeEndTime int64 `json:"schemeEndTime,omitempty"` SellTimeFrom int64 `json:"sellTimeFrom,omitempty"` SellTimeTo int64 `json:"sellTimeTo,omitempty"` Weight int64 `json:"weight,omitempty"` StoreInfo StoreInfo CommentsInfo GoodsCommentsInfo StoreServiceCapability StoreServiceCapability BrandId int64 `json:"brandId,omitempty"` SchemeStartTime int64 `json:"schemeStartTime,omitempty"` SaleStockStatus int64 `json:"saleStockStatus,omitempty"` Status int64 `json:"status,omitempty"` PrepayInfo PrepayInfo JoinedActivities []*ActivityInfo CouponInfo PMSCouponInfo HaiTao int }
type GoodsInfoRequest ¶
type GoodsInfoRequest struct { RequestId string `json:"requestId"` // 请求id:UUID ChanTag string `json:"chanTag"` // chanTag=pid,即推广位标识 (必传),: default_pid OpenId string `json:"openId"` // 渠道用户在渠道侧的用户唯一标识(必传)default_open_id RealCall bool `json:"realCall"` // 是否实时调用(必传),false ChannelType int64 `json:"channelType"` // 频道类型:0-超高佣,1-出单爆款; 当请求类型为频道时必传 Page int64 `json:"page,omitempty"` // 页码 PageSize int64 `json:"pageSize,omitempty"` // 分页大小:默认20,最大100 JxCode string `json:"jxCode,omitempty"` // 精选组货码:当请求源类型为组货时必传 VendorCode string `json:"vendorCode,omitempty"` // 工具商code SourceType int64 `json:"sourceType"` // 请求源类型:0-频道,1-组货 FieldName string `json:"fieldName,omitempty"` // 排序字段: COMMISSION-佣金,PRICE-价格,COMM_RATIO-佣金比例,DISCOUNT-折扣 Order int64 `json:"order"` // 排序顺序:0-正序,1-逆序,默认正序 }
type GoodsInfoRequestV2 ¶
type GoodsInfoRequestV2 struct { RequestId string `json:"requestId"` // 请求id:UUID ChanTag string `json:"chanTag"` // chanTag=pid,即推广位标识 (必传),: default_pid OpenId string `json:"openId"` // 渠道用户在渠道侧的用户唯一标识(必传)default_open_id RealCall bool `json:"realCall"` // 是否实时调用(必传),false ChannelType int64 `json:"channelType"` // 频道类型:0-超高佣,1-出单爆款; 当请求类型为频道时必传 Page int64 `json:"page,omitempty"` // 页码 PageSize int64 `json:"pageSize,omitempty"` // 分页大小:默认20,最大100 JxCode string `json:"jxCode,omitempty"` // 精选组货码:当请求源类型为组货时必传 VendorCode string `json:"vendorCode,omitempty"` // 工具商code SourceType int64 `json:"sourceType"` // 请求源类型:0-频道,1-组货 FieldName string `json:"fieldName,omitempty"` // 排序字段: COMMISSION-佣金,PRICE-价格,COMM_RATIO-佣金比例,DISCOUNT-折扣 Order int64 `json:"order"` // 排序顺序:0-正序,1-逆序,默认正序 Offset int64 `json:"offset"` // 排序顺序:0-正序,1-逆序,默认正序 }
type GoodsInfoResponse ¶
type GoodsInfoResponse struct { GoodsInfoList []*GoodsInfo `json:"goodsInfoList"` Total int64 `json:"total"` SortFields []*SortFields `json:"sortFields"` Page int64 `json:"page"` PageSize int64 `json:"pageSize"` }
type GoodsInfoResponseV2 ¶
type GoodsListParam ¶
type GoodsListParam struct { Service Request GoodsInfoRequest RequestId string }
func (GoodsListParam) MethodName ¶
func (a GoodsListParam) MethodName() string
func (GoodsListParam) Params ¶
func (a GoodsListParam) Params() interface{}
type GoodsListResponse ¶
type GoodsListResponse struct { ReturnCode string `json:"returnCode"` ReturnMessage string `json:"returnMessage,omitempty"` Result GoodsInfoResponse `json:"result"` }
type GoodsListV2Param ¶
type GoodsListV2Param struct { Service Request GoodsInfoRequestV2 RequestId string }
func (GoodsListV2Param) MethodName ¶
func (a GoodsListV2Param) MethodName() string
func (GoodsListV2Param) Params ¶
func (a GoodsListV2Param) Params() interface{}
type GoodsListV2Response ¶
type GoodsListV2Response struct { ReturnCode string `json:"returnCode"` ReturnMessage string `json:"returnMessage,omitempty"` Result GoodsInfoResponseV2 `json:"result"` }
type PMSCouponInfo ¶
type PMSCouponInfo struct { CouponNo string `json:"couponNo,omitempty"` // 优惠券批次号 CouponName string `json:"couponName,omitempty"` // 优惠劵名称 Buy string `json:"buy,omitempty"` // 使用门槛 Fav string `json:"fav,omitempty"` // 优惠金额 }
红包信息
type PrepayInfo ¶
type PrepayInfo struct { IsPrepay int64 `json:"isPrepay,omitempty"` // 是否预付商品:0-否,1-是 PrepayPrice string `json:"prepayPrice,omitempty"` // 预付到手价:元 FirstAmount string `json:"firstAmount,omitempty"` // 预付首款金额:元 LastAmount string `json:"lastAmount,omitempty"` // 预付尾款金额:元 PrepayFavAmount string `json:"prepayFavAmount,omitempty"` // 预付优惠金额: 元 DeductionPrice string `json:"deductionPrice,omitempty"` // 抵扣价格(首款+优惠金额):元 PrepayDiscount string `json:"prepayDiscount,omitempty"` // 预付折扣:(唯品价-优惠金额)/唯品价 保留两位小数的数字字符串 PrepayFirstStartTime int64 `json:"prepayFirstStartTime,omitempty"` // 首款支付开始时间:时间戳,单位毫秒 PrepayFirstEndTime int64 `json:"prepayFirstEndTime,omitempty"` // 首款支付结束时间:时间戳,单位毫秒 PrepayLastStartTime int64 `json:"prepayLastStartTime,omitempty"` // 尾款支付开始时间:时间戳,单位毫秒 PrepayLastEndTime int64 `json:"prepayLastEndTime,omitempty"` // 尾款支付结束时间:时间戳,单位毫秒 }
商品预付信息
type QueryByBrandSnParam ¶
type QueryByBrandSnParam struct { Service Request QueryByBrandSnRequest }
func (QueryByBrandSnParam) MethodName ¶
func (a QueryByBrandSnParam) MethodName() string
func (QueryByBrandSnParam) Params ¶
func (a QueryByBrandSnParam) Params() interface{}
type QueryByBrandSnRequest ¶
type QueryByBrandSnRequest struct { BrandSn string `json:"brandSn"` //品牌SN FieldName string `json:"fieldName"` //排序字段 Order int64 `json:"order"` //排序顺序:0-正序,1-逆序,默认正序 Page int64 `json:"page"` // PageSize int64 `json:"pageSize"` //页面大小:默认20,最大50 PageOffset int64 `json:"pageOffset"` //查询偏移 GoodsCateId1 int64 `json:"goodsCateId1"` // GoodsCateId2 int64 `json:"goodsCateId2"` // GoodsCateId3 int64 `json:"goodsCateId3"` // RequestId string `json:"requestId"` // 请求id:UUID ChanTag string `json:"chanTag"` // chanTag=pid,即推广位标识 (必传),: default_pid OpenId string `json:"openId"` // 渠道用户在渠道侧的用户唯一标识(必传)default_open_id RealCall bool `json:"realCall"` //是否实时调用(必传),false }
type QueryByBrandSnResponse ¶
type QueryByBrandSnResponse struct { ReturnCode string `json:"returnCode"` Result GoodsInfoResponse `json:"result"` }
type QueryGoodsParam ¶
type QueryGoodsParam struct { Service Request QueryGoodsRequest }
func (QueryGoodsParam) MethodName ¶
func (a QueryGoodsParam) MethodName() string
func (QueryGoodsParam) Params ¶
func (a QueryGoodsParam) Params() interface{}
type QueryGoodsRequest ¶
type QueryGoodsRequest struct { RequestId string `json:"requestId"` // 请求id:UUID ChanTag string `json:"chanTag"` // chanTag=pid,即推广位标识 (必传),: default_pid OpenId string `json:"openId"` // 渠道用户在渠道侧的用户唯一标识(必传)default_open_id RealCall bool `json:"realCall"` // 是否实时调用(必传),false Keyword string `json:"keyword"` // 关键词 FieldName string `json:"fieldName,omitempty"` // 排序字段 Order int64 `json:"order"` // 排序顺序:0-正序,1-逆序,默认正序 Page int64 `json:"page,omitempty"` // 页码 PageSize int64 `json:"pageSize,omitempty"` // 分页大小:默认20,最大100 PriceStart string `json:"priceStart"` // 价格区间---start PriceEnd string `json:"priceEnd"` // 价格区间---end QueryReputation bool `json:"queryReputation,omitempty"` // 是否查询商品评价信息:默认不查询,该数据在详情页有返回,没有特殊需求,建议不查询 QueryStoreServiceCapability bool `json:"queryStoreServiceCapability,omitempty"` // 是否查询店铺服务能力信息:默认不查询,该数据在详情页有返回,没有特殊需求,建议不查询 QueryStock bool `json:"queryStock,omitempty"` // 是否查询库存:默认不查询 QueryActivity bool `json:"queryActivity,omitempty"` // 是否查询商品活动信息:默认不查询 QueryPrepay bool `json:"queryPrepay,omitempty"` // 是否查询商品预付信息:默认不查询 CommonParams CommonParams `json:"commonParams,omitempty"` // 通用参数 VendorCode string `json:"vendorCode,omitempty"` // 工具商code }
关键词搜索商品请求参数
type QueryGoodsResponse ¶
type QueryGoodsResponse struct { ReturnCode string `json:"returnCode"` Result GoodsInfoResponse `json:"result"` }
type Service ¶
type Service struct {
RequestId string `json:"requestId"` // 请求id:UUID
}
func (Service) ServiceName ¶
type SimilarRecommendParam ¶
type SimilarRecommendParam struct { Service Request SimilarRecommendRequest }
func (SimilarRecommendParam) MethodName ¶
func (a SimilarRecommendParam) MethodName() string
func (SimilarRecommendParam) Params ¶
func (a SimilarRecommendParam) Params() interface{}
type SimilarRecommendRequest ¶
type SimilarRecommendRequest struct { GoodsId string `json:"goodsId"` // 相似推荐商品列表请求参数 Page int64 `json:"page"` // 页码 PageSize int64 `json:"pageSize,omitempty"` // 分页大小:默认20,最大100 RequestId string `json:"requestId,omitempty"` // 请求id:调用方自行定义,用于追踪请求,单次请求唯一,建议使用UUID CommonParams CommonParams `json:"commonParams,omitempty"` // 通用参数 QueryReputation bool `json:"queryReputation,omitempty"` // 是否查询商品评价信息:默认不查询,该数据在详情页有返回,没有特殊需求,建议不查询 QueryStoreServiceCapability bool `json:"queryStoreServiceCapability,omitempty"` // 是否查询店铺服务能力信息:默认不查询,该数据在详情页有返回,没有特殊需求,建议不查询 QueryStock bool `json:"queryStock,omitempty"` // 是否查询库存:默认不查询 QueryActivity bool `json:"queryActivity,omitempty"` // 是否查询商品活动信息:默认不查询 QueryPrepay bool `json:"queryPrepay,omitempty"` // 是否查询商品预付信息:默认不查询 ChanTag string `json:"chanTag,omitempty"` // pid }
相似推荐商品列表请求参数
type SimilarRecommendResponse ¶
type SimilarRecommendResponse struct { ReturnCode string `json:"returnCode"` Result GoodsInfoResponse `json:"result"` }
type SortFields ¶
type StoreInfo ¶
type StoreInfo struct { StoreId string `json:"storeId,omitempty"` // 店铺id StoreName string `json:"storeName,omitempty"` // 店铺名称 }
店铺信息
type StoreServiceCapability ¶
type StoreServiceCapability struct { StoreScore string `json:"storeScore,omitempty"` // 店铺评分:保留两位小数 StoreRankRate string `json:"storeRankRate,omitempty"` // 店铺同品类排名比例:例如10表示前10% }
商品所属店铺服务能力评价
type UserRecommendParam ¶
type UserRecommendParam struct { Service Request UserRecommendRequest }
func (UserRecommendParam) MethodName ¶
func (a UserRecommendParam) MethodName() string
func (UserRecommendParam) Params ¶
func (a UserRecommendParam) Params() interface{}
type UserRecommendRequest ¶
type UserRecommendRequest struct { Page int64 `json:"page,omitempty"` // 页码 PageSize int64 `json:"pageSize,omitempty"` // 分页大小:默认20,最大100 RequestId string `json:"requestId,omitempty"` // 请求id:调用方自行定义,用于追踪请求,单次请求唯一,建议使用UUID InStock int64 `json:"inStock,omitempty"` // 是否有货 1:有货 0:无货 默认1 GoodsSaleStats int64 `json:"goodsSaleStats,omitempty"` // 商品售卖状态 1(在售), 2(预热), 3(在售+预热) 默认1 OfflineStore int64 `json:"offlineStore"` // 筛选线下店商品:1只返线下店,0或者不传只返回特卖会 CommonParams CommonParams `json:"commonParams,omitempty"` // 通用参数 ChanTag string `json:"chanTag"` // 自定义渠道标识 }
type UserRecommendResponse ¶
type UserRecommendResponse struct { ReturnCode string `json:"returnCode"` Result GoodsInfoResponse `json:"result"` }
Click to show internal directories.
Click to hide internal directories.