无关风月
2026-02-14 ad37d93e63f3151c7863035c9ea80f7c8f6f57a5
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.xiaopeng.api.feignClient.account;
 
import com.alibaba.fastjson.JSONObject;
import com.xiaopeng.api.dto.account.UserResourcesDto;
import com.xiaopeng.api.factory.account.UserResourcesClientFallbackFactory;
import com.xiaopeng.api.vo.account.GetUserListByUidsVo;
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;
 
/**
 * 小鹏用户中心---用户信息
 */
@FeignClient(contextId = "UserResourcesClient",
        value = ServiceNameConstantsEnum.XP_USER_RESOURCES_SERVICE,
        fallbackFactory = UserResourcesClientFallbackFactory.class)
public interface UserResourcesClient {
 
 
    /**
     * 根据uid列表批量查询用户信息 有大小限制最大200个
     */
    @GetMapping("/logan/userResources/getUserListByUids")
    UserResourcesDto getUserListByUids(GetUserListByUidsVo vo);
 
 
    /**
     * 根据uid获取用户基本信息,不包括预订状态和主使用人身份
     */
    @GetMapping("/logan/userResources/getBaseUserByUid")
    UserResourcesDto getBaseUserByUid(@RequestParam("uid") String uid);
 
 
    /**
     * 根据手机号获取用户信息
     */
    @GetMapping("/logan/userResources/getUserByMobile")
    UserResourcesDto getUserByMobile(@RequestParam("mobile") String mobile);
}