package com.tashow.cloud.systemapi.api.permission;

import com.tashow.cloud.common.pojo.CommonResult;
import com.tashow.cloud.systemapi.enums.ApiConstants;
import java.util.Collection;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

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

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

  @GetMapping(PREFIX + "/valid")
  /** 校验角色是否合法 */
  CommonResult<Boolean> validRoleList(@RequestParam("ids") Collection<Long> ids);
}
