puzhibing
2026-04-12 8bf1d8f1cfcdbda64b2a80653a3ee10d31b69108
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
}