소스 검색

feat : 渠道选择接口添加通用权限

bilingfeng 2 년 전
부모
커밋
e52307c361
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      game-module/game-manage/src/main/java/com/zanxiang/manage/controller/ChannelController.java

+ 2 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/controller/ChannelController.java

@@ -1,6 +1,7 @@
 package com.zanxiang.manage.controller;
 
 import com.zanxiang.common.domain.ResultVo;
+import com.zanxiang.erp.security.annotation.PreAuthorize;
 import com.zanxiang.manage.domain.vo.ChannelChoiceVO;
 import com.zanxiang.manage.service.ChannelService;
 import io.swagger.annotations.Api;
@@ -31,6 +32,7 @@ public class ChannelController {
 
     @ApiOperation(value = "渠道选择列表查询")
     @GetMapping(value = "/choice/list")
+    @PreAuthorize(permissionKey = "sdk:channelChoice:list")
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = ChannelChoiceVO.class, responseContainer = "list")})
     public ResultVo<List<ChannelChoiceVO>> choiceList() {
         return new ResultVo<>(channelService.choiceList());