package com.xiaopeng.api.feignClient.account;
|
|
|
import com.xiaopeng.api.factory.account.UserRoutePlanRuleClientFallbackFactory;
|
import com.xiaopeng.api.factory.account.UserSubscribeMessageClientFallbackFactory;
|
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.PathVariable;
|
|
@FeignClient(contextId = "UserSubscribeMessageClient",
|
value = ServiceNameConstantsEnum.XP_ACCOUNT_SERVICE,
|
fallbackFactory = UserSubscribeMessageClientFallbackFactory.class)
|
public interface UserSubscribeMessageClient {
|
|
|
/**
|
* 根据用户id获取openid
|
* @param uid
|
* @return
|
*/
|
@GetMapping("/logan/inner/v1/subscribeMessage/getUserOpenId/{v}")
|
R<String> getUserOpenId(@PathVariable("uid") Integer uid);
|
}
|