houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.system.api.permission;
H 2
3 import com.iailab.framework.common.pojo.CommonResult;
4 import com.iailab.module.system.enums.ApiConstants;
5 import io.swagger.v3.oas.annotations.tags.Tag;
6 import io.swagger.v3.oas.annotations.Parameter;
7 import io.swagger.v3.oas.annotations.Operation;
8 import org.springframework.cloud.openfeign.FeignClient;
9 import org.springframework.web.bind.annotation.GetMapping;
10 import org.springframework.web.bind.annotation.RequestParam;
11
12 import java.util.Collection;
13
14 @FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory =
15 @Tag(name = "RPC 服务 - 角色")
16 public interface RoleApi {
17
18     String PREFIX = ApiConstants.PREFIX + "/role";
19
20     @GetMapping(PREFIX + "/valid")
21     @Operation(summary = "校验角色是否合法")
22     @Parameter(name = "ids", description = "角色编号数组", example = "1,2", required = true)
23     CommonResult<Boolean> validRoleList(@RequestParam("ids") Collection<Long> ids);
24
25 }