All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openea.eap.module.system.api.permission.RoleApi Maven / Gradle / Ivy

The newest version!
package org.openea.eap.module.system.api.permission;

import org.openea.eap.framework.common.pojo.CommonResult;
import org.openea.eap.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
@Tag(name = "RPC 服务 - 角色")
public interface RoleApi {

    String PREFIX = ApiConstants.PREFIX + "/role";

    @GetMapping(PREFIX + "/valid")
    @Operation(summary = "校验角色是否合法")
    @Parameter(name = "ids", description = "角色编号数组", example = "1,2", required = true)
    CommonResult validRoleList(@RequestParam("ids") Collection ids);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy