package com.xiaopeng.api.feignClient.account; import com.xiaopeng.api.factory.account.XpOperationsRoleClientFallbackFactory; import com.xiaopeng.api.model.account.XpOperationsRole; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; /** * 运维人员角色关联 Feign 客户端 */ @FeignClient( contextId = "XpOperationsRoleClient", value = ServiceNameConstantsEnum.XP_ACCOUNT_SERVICE, fallbackFactory = XpOperationsRoleClientFallbackFactory.class ) public interface XpOperationsRoleClient { /** * 根据运维人员ID查询运维人员-角色关联列表 * * @param operationUserId 运维人员id */ @GetMapping("/inner/xp-operations-role/listByOperationUserId") R> listByOperationUserId(@RequestParam("operationUserId") Long operationUserId); }