Commit cf529457 authored by zhangfeng's avatar zhangfeng

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

parent 42f4cc34
......@@ -61,7 +61,7 @@ public class BannerController {
@GetMapping("/get")
@ApiOperation("获得广告设置")
@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) {
BannerDO banner = bannerService.getBanner(id);
return success(BannerConvert.INSTANCE.convert(banner));
......@@ -70,7 +70,7 @@ public class BannerController {
@GetMapping("/list")
@ApiOperation("获得广告设置列表")
@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) {
List<BannerDO> list = bannerService.getBannerList(ids);
return success(BannerConvert.INSTANCE.convertList(list));
......@@ -78,7 +78,7 @@ public class BannerController {
@GetMapping("/page")
@ApiOperation("获得广告设置分页")
@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
//@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public CommonResult<PageResult<BannerBackVO>> getBannerPage(@Valid BannerQueryVO query, PageVO page) {
PageResult<BannerDO> pageResult = bannerService.getBannerPage(query, page);
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