puzhibing
2026-03-01 8d5f2e4948c9aa18e8024232e3f6dcd712be61ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.xiaopeng.api.feignClient.operation;
 
import com.xiaopeng.api.dto.operation.SmsDto;
import com.xiaopeng.api.factory.operation.SmsClientFallbackFactory;
import com.xiaopeng.api.vo.operation.SmsVo;
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
@FeignClient(contextId = "SmsClient", value = ServiceNameConstantsEnum.XP_NOTIFY_BOOT, fallbackFactory = SmsClientFallbackFactory.class)
public interface SmsClient {
 
 
    /**
     * 发送短信
     */
    @PostMapping("/logan/msgs/sendByTemplate")
    SmsDto pushSms(@RequestBody SmsVo vo);
 
 
}