Commit 7469b864 authored by zhangfeng's avatar zhangfeng

feat(member): 广告设置查询权限校验取消

parent f50003d7
...@@ -61,7 +61,7 @@ public class BannerController { ...@@ -61,7 +61,7 @@ public class BannerController {
@GetMapping("/get") @GetMapping("/get")
@ApiOperation("获得广告设置") @ApiOperation("获得广告设置")
@ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
@PreAuthorize("@ss.hasPermission('ecw:banner:query')") //@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public CommonResult<BannerBackVO> getBanner(@RequestParam("id") Long id) { public CommonResult<BannerBackVO> getBanner(@RequestParam("id") Long id) {
BannerDO banner = bannerService.getBanner(id); BannerDO banner = bannerService.getBanner(id);
return success(BannerConvert.INSTANCE.convert(banner)); return success(BannerConvert.INSTANCE.convert(banner));
...@@ -70,7 +70,7 @@ public class BannerController { ...@@ -70,7 +70,7 @@ public class BannerController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperation("获得广告设置列表") @ApiOperation("获得广告设置列表")
@ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class) @ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class)
@PreAuthorize("@ss.hasPermission('ecw:banner:query')") //@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public CommonResult<List<BannerBackVO>> getBannerList(@RequestParam("ids") Collection<Long> ids) { public CommonResult<List<BannerBackVO>> getBannerList(@RequestParam("ids") Collection<Long> ids) {
List<BannerDO> list = bannerService.getBannerList(ids); List<BannerDO> list = bannerService.getBannerList(ids);
return success(BannerConvert.INSTANCE.convertList(list)); return success(BannerConvert.INSTANCE.convertList(list));
...@@ -78,7 +78,7 @@ public class BannerController { ...@@ -78,7 +78,7 @@ public class BannerController {
@GetMapping("/page") @GetMapping("/page")
@ApiOperation("获得广告设置分页") @ApiOperation("获得广告设置分页")
@PreAuthorize("@ss.hasPermission('ecw:banner:query')") //@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public CommonResult<PageResult<BannerBackVO>> getBannerPage(@Valid BannerQueryVO query, PageVO page) { public CommonResult<PageResult<BannerBackVO>> getBannerPage(@Valid BannerQueryVO query, PageVO page) {
PageResult<BannerDO> pageResult = bannerService.getBannerPage(query, page); PageResult<BannerDO> pageResult = bannerService.getBannerPage(query, page);
return success(BannerConvert.INSTANCE.convertPage(pageResult)); return success(BannerConvert.INSTANCE.convertPage(pageResult));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment