开放文档-SiC B2B2C Shop v2.0 : 标签库设计-商品、分类、品牌、评论、咨询、参数

类型 标签名 作用 参数 返回值 完成
商品 product.one(); 获取产品(单个)
参数名 数据类型 默认值 作用
pid int 获取一个商品
SolrProduct 已完成
商品 product.list(); 获取产品(列表)
参数名 数据类型 默认值 作用
cid Long 根据分类id查询商品
cname String 根据分类名查询商品
k String 根据关键字查询商品
sid int 根据店铺id获取商品
models String 根据车型获取商品
pids String 根据多个商品id获取商品
price int 根据价格区间获取商品
bid String 根据品牌id获取商品
bname String 根据品牌名获取商品
limit int 10 取前n条数据
attr String 参数
isRecommend String 是否推荐
scid int 店铺分类id

sort

参数值:价格(minPrice)、

销量(allSales)、

综合、

收藏(collectionCount)、

评论量(commentCount)

String create_date 排序条件

sortMode

参数值:asc、desc

String asc 排序方式
Map<String, Object> 已完成
商品 product.page(); 获取产品(列表,有分页)

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

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

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

排序方式 升序、降序

参数名 数据类型 默认值 作用
cid Long 根据分类id查询商品
cname String 根据分类名查询商品
k String 根据关键字查询商品
sid int 根据店铺id获取商品
models String 根据车型获取商品
pids String 根据多个商品id获取商品
price int 根据价格区间获取商品
bid String 根据品牌id获取商品
bname String 根据品牌名获取商品
pageNo int 1 页码,取第几页
pageSize int 20 每页大小
pageCount int 总记录数
attr String 参数
isRecommend String 是否推荐
scid int 店铺分类id

sort

参数值:价格(minPrice)、

销量(allSales)、

综合、

收藏(collectionCount)、

评论量(commentCount)

String create_date 排序条件

sortMode

参数值:asc、desc

String asc 排序方式
Map<String, Object> 已完成
商品分类 product.category(); 获取商品分类(单个)
参数名 数据类型 默认值 作用
cid int 根据分类id获取分类
name String 根据分类名获取分类
ProductCategory 已完成
商品分类 product.categoryList(); 获取商品分类(列表)
参数名 数据类型 默认值 作用
limit int 10 取前n条数据
parentId int 根据父id获取分类
name String 根据名称获取分类
List<ProductCategory> 已完成
商品品牌

product.brand();

获取品牌(单个)
参数名 数据类型 默认值 作用
bid int 获取单个品牌
name String 根据名称获取品牌
ProductBrand 已完成
商品品牌 product.brandList(); 获取品牌(列表)

按sort排升序

参数名 数据类型 默认值 作用
limit int 10 取前n条数据
cid int 根据分类id获取品牌
name String 根据分类名称获取品牌
bids String 10 品牌ids
List<ProductBrand> 已完成
商品品牌 product.brandPage(); 获取品牌(列表,有分页)

按sort排升序

参数名 数据类型 默认值 作用
pageNo int 1 页码,取第几页
pageSize int 20 每页大小
pageCount int 总记录数
cid
int 根据分类id获取品牌
name String 根据分类名称获取品牌
Page<ProductBrand> 已完成
商品评论 product.commentList(); 获取评论(列表)
参数名 数据类型 默认值 作用
pid int 获取当前商品的评论
limit int 10 取前n条数据
List<TradeComment> 已完成
商品评论 product.commentPage(); 获取评论(列表,有分页)
参数名 数据类型 默认值 作用
pid int 获取当前商品的评论
pageNo int 1 页码,取第几页
pageSize int 20 每页大小
pageCount int 总记录数


Page<TradeComment> 已完成
商品咨询

product.consultationList();

获取咨询(列表)
参数名 数据类型 默认值 作用
pid int 获取当前商品的咨询
limit int 10 取前n条数据


List<TradeConsultation> 已完成
商品咨询 product.consultationPage(); 获取咨询(列表,有分页)
参数名 数据类型 默认值 作用
pid int 获取当前商品的咨询
pageNo int 1 页码,取第几页
pageSize int 20 每页大小
pageCount int 总记录数


Page<TradeConsultation> 已完成
商品参数 product.param(); 获取商品参数(单个)
参数名 数据类型 默认值 作用
paramId int 根据参数id获取参数
productParam 已完成
商品参数 product.paramList(); 获取商品参数(列表,不分页)
参数名 数据类型 默认值 作用
pid int 根据商品id获取商品参数
List<ProductParamMapping> 已完成