@RestController @RequestMapping(value="goods") public class GoodsController extends Object
Constructor and Description |
---|
GoodsController() |
Modifier and Type | Method and Description |
---|---|
R |
back(Integer[] ids)
商品从回收站恢复
|
R |
delete(Integer[] ids)
删除
|
R |
enSale(Integer id)
上架
|
R |
historyList(Map<String,Object> params)
商品回收站
|
R |
info(Integer id)
查看信息
|
R |
list(Map<String,Object> params)
查看列表
|
R |
queryAll(Map<String,Object> params)
查看所有列表
|
R |
queryTotal(Map<String,Object> params)
总计
|
R |
save(GoodsEntity goods)
保存
|
R |
unSale(Integer id)
下架
|
R |
update(GoodsEntity goods)
修改
|
@RequestMapping(value="/save") public R save(@RequestBody GoodsEntity goods)
@RequestMapping(value="/update") public R update(@RequestBody GoodsEntity goods)
@RequestMapping(value="/queryAll") public R queryAll(@RequestParam Map<String,Object> params)
@RequestMapping(value="/historyList") public R historyList(@RequestParam Map<String,Object> params)
params
- @RequestMapping(value="/queryTotal") public R queryTotal(@RequestParam Map<String,Object> params)
Copyright © 2021. All rights reserved.