package com.xiaopeng.api.feignClient.account;
|
|
|
import com.xiaopeng.api.factory.account.SysUserRoleClientFallbackFactory;
|
import com.xiaopeng.api.model.account.SysUserRole;
|
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.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@FeignClient(contextId = "SysUserRoleClient",
|
value = ServiceNameConstantsEnum.XP_ACCOUNT_SERVICE,
|
fallbackFactory = SysUserRoleClientFallbackFactory.class)
|
public interface SysUserRoleClient {
|
|
|
/**
|
* 根据用户id查询用户和角色关联信息
|
* @param userId
|
* @return
|
*/
|
@PostMapping(value = "/logan/userRole/selectSysUserRoleByUserId")
|
R<SysUserRole> selectSysUserRoleByUserId(@RequestParam("userId") Long userId);
|
}
|