package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;

import com.ruoyi.system.api.factory.RemoteSmsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


import java.util.Map;

/**
 * 短信服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteSmsService", value = ServiceNameConstants.SC_DEMO, fallbackFactory = RemoteSmsFallbackFactory.class)
public interface RemoteSmsService
{
    /**
     * 发送短信
     * @param sjhm
     * @param ywlx
     * @param map
     * @return
     */
    @PostMapping(value = "/log/smsLog/sendMsg")
    public R<Boolean> sendMsg(@RequestParam(value = "sjhm") String sjhm, @RequestParam(value = "ywlx") String ywlx, @RequestParam(value = "map") Map<String,String> map);

    @PostMapping(value = "/log/smsLog/add")
    public R<Boolean> sendMsg2();
}


stackTrace = {StackTraceElement[90]@21315} 
 0 = {StackTraceElement@21316} "feign.querymap.BeanQueryMapEncoder.encode(BeanQueryMapEncoder.java:42)"
 1 = {StackTraceElement@21317} "org.springframework.cloud.openfeign.support.PageableSpringQueryMapEncoder.encode(PageableSpringQueryMapEncoder.java:90)"
 2 = {StackTraceElement@21318} "feign.ReflectiveFeign$BuildTemplateByResolvingArgs.toQueryMap(ReflectiveFeign.java:256)"
 3 = {StackTraceElement@21319} "feign.ReflectiveFeign$BuildTemplateByResolvingArgs.create(ReflectiveFeign.java:237)"
 4 = {StackTraceElement@21320} "feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:86)"
 5 = {StackTraceElement@21321} "com.alibaba.cloud.sentinel.feign.SentinelInvocationHandler.invoke(SentinelInvocationHandler.java:109)"
 6 = {StackTraceElement@21322} "org.springframework.cloud.openfeign.FeignCachingInvocationHandlerFactory$1.proceed(FeignCachingInvocationHandlerFactory.java:66)"
 7 = {StackTraceElement@21323} "org.springframework.cache.interceptor.CacheInterceptor.lambda$invoke$0(CacheInterceptor.java:54)"
 8 = {StackTraceElement@21324} "org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:351)"
 9 = {StackTraceElement@21325} "org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:64)"
 10 = {StackTraceElement@21326} "org.springframework.cloud.openfeign.FeignCachingInvocationHandlerFactory.lambda$create$1(FeignCachingInvocationHandlerFactory.java:53)"
 11 = {StackTraceElement@21327} "com.sun.proxy.$Proxy199.sendMsg(Unknown Source)"
 12 = {StackTraceElement@21328} "com.ruoyi.activiti.service.impl.ActTaskServiceImpl.Taskhandle(ActTaskServiceImpl.java:525)"
 13 = {StackTraceElement@21329} "com.ruoyi.activiti.service.impl.ActTaskServiceImpl$$FastClassBySpringCGLIB$$27459f63.invoke(<generated>)"
 14 = {StackTraceElement@21330} "org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)"
 15 = {StackTraceElement@21331} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)"
 16 = {StackTraceElement@21332} "org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)"
 17 = {StackTraceElement@21333} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)"
 18 = {StackTraceElement@21334} "org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)"
 19 = {StackTraceElement@21335} "org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)"
 20 = {StackTraceElement@21336} "org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)"
 21 = {StackTraceElement@21337} "org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)"
 22 = {StackTraceElement@21338} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)"
 23 = {StackTraceElement@21339} "org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)"
 24 = {StackTraceElement@21340} "com.ruoyi.activiti.service.impl.ActTaskServiceImpl$$EnhancerBySpringCGLIB$$ac2cd2d4.Taskhandle(<generated>)"
 25 = {StackTraceElement@21341} "com.ruoyi.activiti.controller.TaskController.taskHandle(TaskController.java:135)"
 26 = {StackTraceElement@21342} "com.ruoyi.activiti.controller.TaskController$$FastClassBySpringCGLIB$$1a44fe3.invoke(<generated>)"
 27 = {StackTraceElement@21343} "org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)"
 28 = {StackTraceElement@21344} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)"
 29 = {StackTraceElement@21345} "org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)"
 30 = {StackTraceElement@21346} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)"
 31 = {StackTraceElement@21347} "org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)"
 32 = {StackTraceElement@21348} "org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)"
 33 = {StackTraceElement@21349} "org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)"
 34 = {StackTraceElement@21350} "org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)"
 35 = {StackTraceElement@21351} "com.ruoyi.activiti.controller.TaskController$$EnhancerBySpringCGLIB$$79059385.taskHandle(<generated>)"
 36 = {StackTraceElement@21352} "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
 37 = {StackTraceElement@21353} "sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)"
 38 = {StackTraceElement@21354} "sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"
 39 = {StackTraceElement@21355} "java.lang.reflect.Method.invoke(Method.java:498)"
 40 = {StackTraceElement@21356} "org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)"
 41 = {StackTraceElement@21357} "org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)"
 42 = {StackTraceElement@21358} "org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)"
 43 = {StackTraceElement@21359} "org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)"
 44 = {StackTraceElement@21360} "org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)"
 45 = {StackTraceElement@21361} "org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)"
 46 = {StackTraceElement@21362} "org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)"
 47 = {StackTraceElement@21363} "org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)"
 48 = {StackTraceElement@21364} "org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)"
 49 = {StackTraceElement@21365} "org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)"
 50 = {StackTraceElement@21366} "javax.servlet.http.HttpServlet.service(HttpServlet.java:665)"
 51 = {StackTraceElement@21367} "org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)"
 52 = {StackTraceElement@21368} "javax.servlet.http.HttpServlet.service(HttpServlet.java:750)"
 53 = {StackTraceElement@21369} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)"
 54 = {StackTraceElement@21370} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 55 = {StackTraceElement@21371} "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)"
 56 = {StackTraceElement@21372} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)"
 57 = {StackTraceElement@21373} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 58 = {StackTraceElement@21374} "org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)"
 59 = {StackTraceElement@21375} "org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)"
 60 = {StackTraceElement@21376} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)"
 61 = {StackTraceElement@21377} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 62 = {StackTraceElement@21378} "org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)"
 63 = {StackTraceElement@21379} "org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)"
 64 = {StackTraceElement@21380} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)"
 65 = {StackTraceElement@21381} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 66 = {StackTraceElement@21382} "org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)"
 67 = {StackTraceElement@21383} "org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)"
 68 = {StackTraceElement@21384} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)"
 69 = {StackTraceElement@21385} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 70 = {StackTraceElement@21386} "org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)"
 71 = {StackTraceElement@21387} "org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)"
 72 = {StackTraceElement@21388} "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)"
 73 = {StackTraceElement@21389} "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)"
 74 = {StackTraceElement@21390} "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)"
 75 = {StackTraceElement@21391} "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)"
 76 = {StackTraceElement@21392} "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)"
 77 = {StackTraceElement@21393} "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)"
 78 = {StackTraceElement@21394} "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)"
 79 = {StackTraceElement@21395} "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)"
 80 = {StackTraceElement@21396} "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)"
 81 = {StackTraceElement@21397} "org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)"
 82 = {StackTraceElement@21398} "org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)"
 83 = {StackTraceElement@21399} "org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928)"
 84 = {StackTraceElement@21400} "org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1794)"
 85 = {StackTraceElement@21401} "org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)"
 86 = {StackTraceElement@21402} "org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)"
 87 = {StackTraceElement@21403} "org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)"
 88 = {StackTraceElement@21404} "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)"
 89 = {StackTraceElement@21405} "java.lang.Thread.run(Thread.java:748)
调用报错，帮我分析下