文档
测试

获取拼团商品信息

POST
GetSpellGroupGoodsInfo

接口描述

获取拼团商品信息:GetSpellGroupGoodsInfo

请求参数

参数名
类型
描述
必填
dataJson
object
数据参数
必填
id
number
拼团商品ID,必传
必填
isnew
string
是否获取新结构数据 只要dataJson含有 isnew 表示获取新结构数据
可选

响应参数

参数名
类型
描述
必填
ret
number
0为成功,大于0为失败;示例:0
必填
msg
string
跟据错误编号,消息描述,示例:ok
必填
err_code
number
错误编号,示例:0
必填
data
object
数据
必填
album
array
轮播图数组
必填
attributes
array
商品参数
必填
name
string
参数名
必填
content
string
参数内容
必填
comment_count
number
评价数
必填
goods_activities
array
商品可参与的活动
必填
activitie_id
number
活动ID
必填
preferential_type
number
优惠类型 0全店商品 1指定商品
必填
threshold_type
number
活动层级类型 0打折 1满减
必填
title
string
标题 如:1件打9折,2件打8折
必填
vip
number
VIP 等级 0非VIP 大于属于VIP
必填
id
number
拼品商品ID
必填
name
string
商品标题
必填
pic_info
array
商品信息图片数组
必填
product
object
商品规格信息
必填
index
number
索引 等于 规格ID
必填
market_price
float
市场价
必填
price
float
拼团价
必填
stock
number
库存
必填
specs_list
array
选择的规格列表
必填
list
array
同类规格可选列表(含当前规格)
必填
id
产品规格索引
必填
is_default
当前是否选择
必填
name
规格名
必填
name
string
规格类型名称
必填
product_id
number
产品ID
必填
sale_count
number
销售数量
必填
service_list
array
服务列表
必填
name
string
服务名称
必填
content
string
服务内容
必填
subtitle
string
副标题
必填
open_group_parameter
array
开团参数
必填
id
开团参数ID
必填
number
成团人数
必填
brokerage_rage
团长佣金(%)
必填
price
float
拼团价
必填
market_price
float
原价
必填
product_id
number
产品ID
必填
count_down
number
倒计时:(分),距离结束时间还乘多少分钟
必填
end_time
string
拼团商品-结束时间
必填
feedback_rate
number
好评率,1-100
必填
feedback_str
string
中文好评描术,好评|一般|差评|极差
必填
spell_group_id
number
开团ID, 是否已开团. 0为没开团,大于0为进行的开团ID
必填
is_group_leader
Boolean
是否是团长,即团长权限,可开团
必填
stock_quantity
number
库存
必填
customer_service_qr
string
客服二维码
必填
tj_titel
string
推荐标题
必填
tj_content
string
推荐内容
必填
sku
object
数据字典
必填
keys
object
数据字典
必填
类型名
array
类型值数组,字符串数组 数据列表
必填
sku_list
array
数据列表
必填
attrs
string
sku值,如:类型1值|类型2值 示例:白色|180cm
必填
stock
number
库存 示例:100
必填
index
number
规格索引 示例:1
必填
sort
array
类型名排序 字符串数组
必填
share_picture_img_url
string
小程序分享海报图片链接
必填
share_card
string
小程序分享卡图片链接
必填
spell_group_type
number
拼团类型 0团长开团模式 1购买开团模式
必填

说明 / 示例

## 接口地址 ## 成功返回示例 旧 ```language { "data": { "id": 1, "product_id": 10001, "name": "七分裤", "subtitle": "七分裤", "comment_count": 0, "sale_count": 20, "count_down": 3600, "end_time": "2019-11-01 20:10:22", "feedback_rate": 100, "feedback_str": "好评", "spell_group_id": 0, "is_group_leader": true, "tj_titel": "推荐标题", "tj_content": "推荐内容", "customer_service_qr": "http://localhost:6020/Upload/Product/10001/product_1563180576.jpg", "service_list": [{ "name": "7天包退", "content": "7天包退7天包退" }], "attributes": [{ "name": "重量", "content": "555KG" }], "album": ["http://localhost:6020/Upload/Product/10001/product_1563180576.jpg"], "pic_info": ["http://localhost:6020/Upload/Product/10001/product_1563180581.jpg"], "product": { "index": 1, "price": 111, "market_price": 0, "stock": 11, "specs_list": [{ "id": 0, "name": "衣料", "list": [{ "id": 1, "name": "A布", "is_default": true }, { "id": 2, "name": "毛料", "is_default": false }] }] }, "goods_activities": [{ "activitie_id": 55, "threshold_type": 0, "preferential_type": 0, "vip": 0, "title": "1件打9折,2件打8折" }, { "activitie_id": 56, "threshold_type": 1, "preferential_type": 0, "vip": 0, "title": "满100元减20元" }], "open_group_parameter": [{ "id": 1, "number": 20, "brokerage_rage": 12, "price":50, "market_price": 100 }, { "id": 1, "number": 50, "brokerage_rage": 20, "price":50, "market_price": 100 }], "share_picture_img_url":"http://xxxxx", "share_card":"http://xxxxx" }, "ret": 0, "err_code": 0, "msg": "ok" } ``` ## 成功返回示例 新 ```language { "data": { "stock_quantity": 500, "id": 9, "product_id": 10003, "name": "七分裤", "subtitle": "甚至三厢一非顶不可在末枯要", "comment_count": 0, "sale_count": 0, "end_time": "2019-10-31 02:33:23", "count_down": 81287, "pic_url": "http://localhost:6020/Upload/Product/10003/product_1570728082.jpg", "customer_service_qr": "http://localhost:6020/Upload/CustomerService/1.jpg", "service_list": [{ "name": "7天包退", "content": "7天包退7天包退" }], "attributes": [{ "name": "一箱", "content": "24包" }], "album": [{ "url": "http://localhost:6020/Upload/Product/10003/product_1572417096.mp4", "poster": "http://localhost:6020/Upload/Product/10003/product_1570728088.jpg", "type": 2 }, { "url": "http://localhost:6020/Upload/Product/10003/product_1570728091.jpg", "poster": "", "type": 1 }, { "url": "http://localhost:6020/Upload/Product/10003/product_1572417093.jpg", "poster": "", "type": 1 }], "pic_info": [{ "url": "http://localhost:6020/Upload/Product/10003/product_1570728095.jpg", "poster": "", "type": 1 }, { "url": "http://localhost:6020/Upload/Product/10003/product_1572417099.jpg", "poster": "", "type": 1 }, { "url": "http://localhost:6020/Upload/Product/10003/product_1572417114.mp4", "poster": "http://localhost:6020/Upload/Product/10003/product_1572417102.jpg", "type": 2 }, { "url": "http://localhost:6020/Upload/Product/10003/product_1572417105.jpg", "poster": "", "type": 1 }], "product": { "product_id": 10003, "index": 0, "price": 80.0, "market_price": 100.0, "stock": 500, "specs_list": [] }, "goods_activities": [], "open_group_parameter": [{ "id": 15, "number": 2, "brokerage_rage": 1.0, "price": 80.0, "market_price": 100.0 }], "feedback_rate": 100, "feedback_str": "好评", "is_group_leader": false, "spell_group_id": 0, "tj_titel": "", "tj_content": "", "sku": { "sort":["颜色","尺码"], "keys": { "颜色": ["白色", "红色", "默青色"], "尺码": ["180cm", "160cm", "165cm"] }, "sku_list": [{ "attrs": "白色|180cm", "stock": 100, "index": 1 }, { "attrs": "白色|160cm", "stock": 100, "index": 2 }, { "attrs": "白色|165cm", "stock": 100, "index": 3 }, { "attrs": "红色|165cm", "stock": 100, "index": 4 }, { "attrs": "红色|180cm", "stock": 100, "index": 5 }, { "attrs": "默青色|180cm", "stock": 100, "index": 6 }, { "attrs": "默青色|160cm", "stock": 100, "index": 7 }] }, "share_picture_img_url":"http://xxxxx", "spell_group_type":0 }, "ret": 0, "err_code": 0, "msg": "ok" } ``` >i 注:ret = 0 为成功 ## 失败返回示例 ```language { "ret": 4, "msg": "参数不能为空", "err_code": 10008 } ``` >d 注:ret > 0 为失败 ## 错误编号(errCode):

响应参数-新

参数名
类型
描述
必填
data
object
数据字典
必填
stock_quantity
number
示例:500
必填
id
number
示例:9
必填
product_id
number
示例:10003
必填
name
string
示例:七分裤
必填
subtitle
string
示例:甚至三厢一非顶不可在末枯要
必填
comment_count
number
示例:0
必填
sale_count
number
示例:0
必填
end_time
string
示例:2019-10-31 02:33:23
必填
count_down
number
示例:81287
必填
pic_url
string
示例:http://localhost:6020/Upload/Product/10003/product_1570728082.jpg
必填
customer_service_qr
string
示例:http://localhost:6020/Upload/CustomerService/1.jpg
必填
service_list
array
数据列表
必填
name
string
示例:7天包退
必填
content
string
示例:7天包退7天包退
必填
attributes
array
数据列表
必填
name
string
示例:一箱
必填
content
string
示例:24包
必填
album
array
数据列表
必填
url
string
示例:http://localhost:6020/Upload/Product/10003/product_1572417096.mp4
必填
poster
string
示例:http://localhost:6020/Upload/Product/10003/product_1570728088.jpg
必填
type
number
类型 1图片 2视频 示例:2
必填
pic_info
array
数据列表
必填
url
string
示例:http://localhost:6020/Upload/Product/10003/product_1570728095.jpg
必填
poster
string
示例:
必填
type
number
示例:1
必填
product
object
数据字典
必填
product_id
number
示例:10003
必填
index
number
示例:0
必填
price
number
示例:80
必填
market_price
number
示例:100
必填
stock
number
示例:500
必填
specs_list
array
数据列表
必填
goods_activities
array
数据列表
必填
open_group_parameter
array
数据列表
必填
id
number
示例:15
必填
number
number
示例:2
必填
brokerage_rage
number
示例:1
必填
price
number
示例:80
必填
market_price
number
示例:100
必填
feedback_rate
number
示例:100
必填
feedback_str
string
示例:好评
必填
is_group_leader
boolean
示例:false
必填
spell_group_id
number
示例:0
必填
tj_titel
string
示例:
必填
tj_content
string
示例:
必填
ret
number
示例:0
必填
err_code
number
示例:0
必填
msg
string
示例:ok
必填