| | |
| | | |
| | | |
| | | import com.xiaopeng.api.factory.pushMessage.SubscribeMessageClientFallbackFactory; |
| | | import com.xiaopeng.api.vo.pushMessage.SendSubscribeMessageVo; |
| | | import com.xiaopeng.api.vo.pushMessage.UpdateEndAddStatusVo; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | @FeignClient(contextId = "SubscribeMessageClient", |
| | | value = ServiceNameConstantsEnum.XP_PUSH_MESSAGE_SERVICE, |
| | |
| | | */ |
| | | @GetMapping("/logan/inner/v1/subscribeMessage/getOpenId/{code}") |
| | | R<String> getOpenId(@PathVariable("code") String code); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 发送订阅消息 |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/v1/subscribeMessage/sendSubscribeMessage") |
| | | R<?> sendSubscribeMessage(@RequestBody SendSubscribeMessageVo vo); |
| | | } |