Explorar el Código

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

bilingfeng hace 2 años
padre
commit
e52307c361

+ 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());