package com.xiaopeng.api.feignClient.pushMessage;
|
|
|
import com.xiaopeng.api.factory.pushMessage.SubscribeMessageClientFallbackFactory;
|
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 = "SubscribeMessageClient",
|
value = ServiceNameConstantsEnum.XP_PUSH_MESSAGE_SERVICE,
|
fallbackFactory = SubscribeMessageClientFallbackFactory.class)
|
public interface SubscribeMessageClient {
|
|
|
/**
|
* 根据微信jscode获取openid
|
* @param code
|
* @return
|
*/
|
@GetMapping("/logan/inner/v1/subscribeMessage/getOpenId/{code}")
|
R<String> getOpenId(@PathVariable("code") String code);
|
}
|