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); }