Update SmsHomeNewProductController.java
This commit is contained in:
parent
f0675db804
commit
58f75d72dc
@ -23,7 +23,7 @@ public class SmsHomeNewProductController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private SmsHomeNewProductService homeNewProductService;
|
private SmsHomeNewProductService homeNewProductService;
|
||||||
|
|
||||||
@ApiOperation("添加首页推荐品牌")
|
@ApiOperation("添加首页新品")
|
||||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult create(@RequestBody List<SmsHomeNewProduct> homeNewProductList) {
|
public CommonResult create(@RequestBody List<SmsHomeNewProduct> homeNewProductList) {
|
||||||
@ -34,7 +34,7 @@ public class SmsHomeNewProductController {
|
|||||||
return CommonResult.failed();
|
return CommonResult.failed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改推荐排序")
|
@ApiOperation("修改首页新品排序")
|
||||||
@RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST)
|
@RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult updateSort(@PathVariable Long id, Integer sort) {
|
public CommonResult updateSort(@PathVariable Long id, Integer sort) {
|
||||||
@ -45,7 +45,7 @@ public class SmsHomeNewProductController {
|
|||||||
return CommonResult.failed();
|
return CommonResult.failed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("批量删除推荐")
|
@ApiOperation("批量删除首页新品")
|
||||||
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult delete(@RequestParam("ids") List<Long> ids) {
|
public CommonResult delete(@RequestParam("ids") List<Long> ids) {
|
||||||
@ -56,7 +56,7 @@ public class SmsHomeNewProductController {
|
|||||||
return CommonResult.failed();
|
return CommonResult.failed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("批量修改推荐状态")
|
@ApiOperation("批量修改首页新品状态")
|
||||||
@RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST)
|
@RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult updateRecommendStatus(@RequestParam("ids") List<Long> ids, @RequestParam Integer recommendStatus) {
|
public CommonResult updateRecommendStatus(@RequestParam("ids") List<Long> ids, @RequestParam Integer recommendStatus) {
|
||||||
@ -67,7 +67,7 @@ public class SmsHomeNewProductController {
|
|||||||
return CommonResult.failed();
|
return CommonResult.failed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("分页查询推荐")
|
@ApiOperation("分页查询首页新品")
|
||||||
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult<CommonPage<SmsHomeNewProduct>> list(@RequestParam(value = "productName", required = false) String productName,
|
public CommonResult<CommonPage<SmsHomeNewProduct>> list(@RequestParam(value = "productName", required = false) String productName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user