|
|
@@ -40,11 +40,12 @@ public class StoreBannerController {
|
|
|
@ApiOperation("删除Banner")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@PostMapping("/delete")
|
|
|
- public R<String> delete(@RequestBody List<Integer> ids) {
|
|
|
- log.info("StoreBannerController.delete?ids={}", ids);
|
|
|
- return storeBannerService.removeByIds(ids) ? R.success("删除成功") : R.fail("删除失败");
|
|
|
+ public R<String> delete(@RequestParam("id") Integer id) {
|
|
|
+ log.info("StoreBannerController.delete?id={}", id);
|
|
|
+ return storeBannerService.removeById(id) ? R.success("删除成功") : R.fail("删除失败");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@ApiOperation("分页查询Banner列表")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
@ApiImplicitParams({
|