|
|
@ -35,6 +35,8 @@ public class BannerController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping
|
|
|
|
@PutMapping
|
|
|
|
public R updateChannel(@Validated @RequestBody ShopBanner banner) {
|
|
|
|
public R updateChannel(@Validated @RequestBody ShopBanner banner) {
|
|
|
|
|
|
|
|
banner.setUpdateBy(SecurityUtils.getUsername());
|
|
|
|
|
|
|
|
banner.setUpdateTime(new Date());
|
|
|
|
return R.result(iBannerService.updateById(banner));
|
|
|
|
return R.result(iBannerService.updateById(banner));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +47,6 @@ public class BannerController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("{bannerId}")
|
|
|
|
@DeleteMapping("{bannerId}")
|
|
|
|
public R deleteChannel(@PathVariable Long bannerId) {
|
|
|
|
public R deleteChannel(@PathVariable Long bannerId) {
|
|
|
|
return R.success().add("data", iBannerService.removeById(bannerId));
|
|
|
|
return R.result(iBannerService.removeById(bannerId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|