POSTapp/douYinGroup/product/detail

POST app/douYinGroup/product/detail

 

请求

 

参数名称
参数类型
是否必须
示例值
参数描述
product_id_list
 
list<int64>
[ 1796636629603354 ]
商品id列表
city_code
 
string
 
“11”
注意:city_code、longitude、latitude 不会进行过滤数据,只会用来返回更精准的门店信息。如果附近没有门店 nearest_poi.distance为null
 
 
当传递了经纬度时,会依据经纬度查询所在城市。
其它情况,请必需传递city_code,依据场景尽量传递到城市级别即可,例如:天津为120000
longitude
 
double
 
 
116.11
经度。WGS84坐标,参见https://tool.lu/coordinate。默认为北京市王府井
 
重要:一定需要WGS84坐标,且线上场景必需传递该参数。如果获取不到或者无法传递,请咨询运营或技术
latitude
double
 
36.11
纬度。WGS84坐标,参见https://tool.lu/coordinate。默认为北京市王府井
 
重要:一定需要WGS84坐标,且线上场景必需传递该参数。如果获取不到或者无法传递,请咨询运营或技术

 

 

返回

 
参数名称
参数类型
示例值
参数描述
data
product_map
map<int64, Product>
 
 
Product
 
参见商品列表接口
nearest_poi
 
PoiInfo
 
当前商品离用户最近的适用POI(如果用户没传经纬度,默认北京王府井)
 
PoiInfo
name
string
 
店铺名称
distance
double
 
距离门店的距离
 
返回值说明,就近门店判断示例:附近3km门店,distance != null and distance < 3000
  1. 经纬度附近的门店:
  1. 经纬度附近没有门店:
poi_id
int64
 
店铺id

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部