@RestController @RequestMapping(value="/api/goods") public class ApiGoodsController extends ApiBaseAction
logger, request, response, tokenService
Constructor and Description |
---|
ApiGoodsController() |
Modifier and Type | Method and Description |
---|---|
Object |
category(Integer id)
获取分类下的商品
|
Object |
count()
在售的商品总数
|
Object |
detail(Integer id,
Long referrer)
商品详情页数据
|
Object |
filter(Integer categoryId,
String keyword,
Integer isNew,
Integer isHot)
商品列表筛选的分类列表
|
Object |
hot()
人气推荐
|
Object |
index() |
Object |
list(UserVo loginUser,
Integer categoryId,
Integer brandId,
String keyword,
Integer isNew,
Integer isHot,
Integer page,
Integer size,
String sort,
String order)
获取商品列表
|
Object |
newAction()
新品首发
|
Object |
productlist(Integer categoryId,
Integer isNew,
Integer discount,
Integer page,
Integer size,
String sort,
String order)
获取商品列表
|
Object |
related(Integer id)
商品详情页的大家都在看的商品
|
Object |
sku(Integer id)
获取商品规格信息,用于购物车编辑时选择规格
|
bindException, getClientIp, getJsonRequest, getUserId, initBinder, toResponseFail, toResponseSuccess, toResponseSuccess, toResponseSuccessForSelect, toResponsObject
@IgnoreAuth @PostMapping(value="index") public Object index()
@IgnoreAuth @PostMapping(value="sku") public Object sku(Integer id)
@IgnoreAuth @PostMapping(value="category") public Object category(Integer id)
@IgnoreAuth @PostMapping(value="list") public Object list(UserVo loginUser, Integer categoryId, Integer brandId, String keyword, Integer isNew, Integer isHot, @RequestParam(value="page",defaultValue="1") Integer page, @RequestParam(value="size",defaultValue="10") Integer size, String sort, String order)
@IgnoreAuth @PostMapping(value="filter") public Object filter(Integer categoryId, String keyword, Integer isNew, Integer isHot)
@IgnoreAuth @PostMapping(value="new") public Object newAction()
@IgnoreAuth @PostMapping(value="hot") public Object hot()
@IgnoreAuth @PostMapping(value="related") public Object related(Integer id)
@IgnoreAuth @PostMapping(value="count") public Object count()
Copyright © 2021. All rights reserved.