获取商品详情
GET
http://192.168.0.101/v1/goodsDetail/3
接口描述
获取商品详情 说明:v1为路径版本,尾部为参数信息
请求参数
参数名
类型
描述
必填
id
int
所查询商品id
必填
响应参数
参数名
类型
描述
必填
errCode
int
自定义code码,详情查询状态码文档
必填
msg
string
示例:获取商品信息成功
必填
code
int
响应状态码,详情查看状态码文档
必填
id
int
商品id
必填
goods_name
string
商品名
必填
gc_id
int
商品分类id
必填
goods_price
string
商品价格
必填
weight
int
商品权重
必填
goods_storage
int
库存
必填
goods_type
int
商品类型 1原料 2粉料
必填
goods_new
int
是否新品 0否 1是
必填
goods_sign
int
是否招牌 0否 1是
必填
goodImg
string
商品介绍图
必填
createtime
string
创建时间
必填
template_id
int
运费模板id
必填
is_on_sale
int
是否上架 0否 1是
必填
is_free_shopping
int
是否包邮 0否 1是
必填
check_status
int
审核状态 0未审核 1成功 2失败
必填
goods_content
string
商品详情
必填
id
int
运费模板id
必填
template_name
string
模板名称
必填
type
int
计价方式 0 件数;1 商品重量;2 商品体积
必填
unit_price
string
起步价
必填
createtime
string
模板创建时间
必填
id
int
自增id
必填
goods_id
int
商品id
必填
attr_id
int
属性id
必填
attr_value
string
属性值
必填
attr_storage
int
分类库存
必填
attr_price
string
分类价格
必填
createtime
string
创建时间
必填
id
int
自增id
必填
goods_id
int
商品id
必填
value
int
购买值
必填
give_value
int
给予值
必填
createtime
string
创建时间
必填
acti_id
int
活动id
必填
start_time
string
活动开始时间
必填
end_time
string
活动结束时间
必填
goods_sale_price
string
商品折扣价 非必填项,有折扣则显示该字段信息
必填