编号 类型 接口名 所在controller 参数 参数类型 参数默认值 参数备注 接口返回值 映射地址 接口备注
1 商品
productOne
ProductController
pid
String 商品id

{status:0、1、2,

msg:xxx,

data: Map

page:null

}

/{version}/product/one
根据商品id查询商品
2

商品列表








productPage
ProductController

cid String 根据分类id查询商品

{status:0、1、2,

msg:xxx,

data: Map

page:page

}

/{version}/product/page
根据条件来获取商品

查询条件:分类id、分类name、关键字、店铺id、车型、ids、价格(10-100),品牌id、品牌name

参数:attr=1039_广州,1098_4g,1099_100-200,1023_xxl:xl

排序条件:价格(minPrice)、销量(allSales)、综合、收藏(collectionCount)、评论量(commentCount)

排序方式:升序、降序

cname String 根据分类名查询商品
k String 根据关键字查询商品
sid String 根据店铺id获取商品
pids String 根据多个商品id获取商品
price int 根据价格区间获取商品。参数示例:“1-10”,“1”是最小值,“10”是最大值
bid String 根据品牌id获取商品
bname String 根据品牌名获取商品
attr String 参数,示例“产品型号_T-1550:12006746089,品牌_24V,商品所在地_国际香调”。1.每个“逗号”分隔一个参数,2.每个下划线分隔参数的建与值,3.每个“冒号”分隔不同的参数值。
isRecommend String 是否推荐
scid String 店铺分类id

sort

参数值:价格(minPrice)、

销量(allSales)、

综合、

收藏(collectionCount)、

评论量(commentCount)

String create_date 排序条件

sortMode

参数值:asc、desc

String asc 排序方式
pageNo int 1 页码,取第几页
pageSize int 20 每页大小
3













商品列表




















productList












ProductController













cid String 根据分类id查询商品

{status:0、1、2,

msg:xxx,

data: Map

page:page

}













/{version}/product/list












根据条件来获取商品

查询条件:分类id、分类name、关键字、店铺id、车型、ids、价格(10-100),品牌id、品牌name

参数:attr=1039_广州,1098_4g,1099_100-200,1023_xxl:xl

排序条件:价格(minPrice)、销量(allSales)、综合、收藏(collectionCount)、评论量(commentCount)

排序方式:升序、降序













cname String 根据分类名查询商品
k String 根据关键字查询商品
sid String 根据店铺id获取商品
pids String 根据多个商品id获取商品
price int 根据价格区间获取商品。参数示例:“1-10”,“1”是最小值,“10”是最大值
bid String 根据品牌id获取商品
bname String 根据品牌名获取商品
attr String 参数,示例“ 产品型号_T-1550:12006746089,品牌_24V,商品所在地_国际香调 ”。1.每个“逗号”分隔一个参数,2.每个下划线分隔参数的建与值,3.每个“冒号”分隔不同的参数值。
isRecommend String 是否推荐
scid String 店铺分类id

sort

参数值:价格(minPrice)、

销量(allSales)、

综合、

收藏(collectionCount)、

评论量(commentCount)

String create_date 排序条件

sortMode

参数值:asc、desc

String asc 排序方式
limit int 10 取前n条数据
4 商品参数 productParamlList ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:List<ProductParam>,

page:null

}

/{version}/product/param/list

根据商品id查询商品参数
limit String 10 取前n条数据
5 商品批发价 productSectionPriceList ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:List<ProductSectionPrice>,

page:null

}

/{version}/product/sectionPrice/list

根据商品id查询商品批发价
limit String 10 取前n条数据
6 商品批发价 getSectionPrice ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:price,

page:null

}

/{version}/product/getSectionPrice 根据商品id和商品的数量获取批发价
count String 商品数量
7 商品图片 productImageList ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:List<StoreAlbumPicture>,

page:null}

/{version}/product/image/list 根据商品id和颜色获取商品图片
color String 颜色
8 商品详情 productDetail ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:ProductDetail,

page:null}

/{version}/product/detail 根据商品id获取商品详情
9

商品sku

(暂无用)

productSkuOne ProductController skuId String 商品skuId

{status:0、1、2,

msg:xxx,

data:ProductSku,

page:null}

/{version}/product/sku/one

根据skuId获取商品sku

10 商品sku productSkuList ProductController pid String 商品id

{status:0、1、2,

msg:xxx,

data:List<ProductSku>,

page:null}

/{version}/product/sku/list 根据pid或skuIds获取sku列表
skuIds String 多个skuId

11

商品评价

productCommentPage

ProductController

replyIds String 回复的评价id

{status:0、1、2,

msg:xxx,

data:List<TradeComment>,

page:null}



/{version}/product/comment/page

根据pid获取商品的评价

type String 评价类型(0评论、1追评、2回复)
pid String 商品id
grade String 评价等级(1好评,2中评,3差评)
pageNo int 1 页码,取第几页
pageSize int 20 每页大小

12

商品评价

productCommentList

ProductController

replyIds String 回复的评价id

{status:0、1、2,

msg:xxx,

data:List<TradeComment>,

page:null}

/{version}/product/comment/list

根据商品id获取商品评价list

type String 评价类型(0评论、1追评、2回复)
pid String 商品id
grade String 评价等级(1好评,2中评,3差评)
limit String 10 查询数量
13 商品评价图片 productCommentImageList ProductController commentIds String 多个评价id

{status:0、1、2,

msg:xxx,

data:List<TradeComment>,

page:null}

/{version}/product/comment/image/list 根据多个评价id获取评价的图片

14

 
 
 
 

咨询





 
 

product ConsultationList

 
 

ProductController





 
 

consultationIds

String

多个咨询ids

{status:0、1、2,

msg:xxx,

data:List<TradeConsultation>,

page:null

}

/{version}/product/consultation/list

查询商品咨询信息(不分页)

pid

String

商品id

type

String

类别,0咨询、1回复

category

String

咨询类型

isReply

String

是否回复

limit

String

数量

15 咨询

productConsultationPage

ProductController

consultationIds

String

多个咨询ids

{status:0、1、2,

msg:xxx,

data:List<TradeConsultation>,

page:page

}

/{version}/product/consultation/page

查询商品咨询信息

(分页)

pid

String

商品id

type

String

类别,0咨询、1回复

category

String

咨询类型

isReply

String

是否回复

pageNo

int

页码

pageSize

int

每页大小