Re: [I] [Question] 能否实现这个场景,前端只发送一个post请求到后端 ,后端根据请求的参数(请求的接口名称,然后根据接口名称去数据库或者配置中心获取url,get或者post请求,params,heads,body配置,认证方式:token认证),然后后端组装完成发送到甲方的中台服务; [shenyu]</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=notifications@shenyu.apache.org&q=from:%22via+GitHub%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">via GitHub</span></span></a></span> <span class="date"><a href="/search?l=notifications@shenyu.apache.org&q=date:20250812" rel="nofollow">Tue, 12 Aug 2025 01:02:41 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> chao6118 commented on issue #6098: URL: <a rel="nofollow" href="https://github.com/apache/shenyu/issues/6098#issuecomment-3178185814">https://github.com/apache/shenyu/issues/6098#issuecomment-3178185814</a></pre><pre> 中台 提供多个接口,比如 /a、/b、/c,它们可能属于同一个服务。 前端 不想直接调用 /a、/b、/c,而是希望通过一个统一的入口(如 /tongyi)动态调用这些接口。 新增接口(如 /d)时,只需在网关配置,前端代码无需修改。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg33528.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd6.html#33532">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail6.html#33532">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg34609.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg33528.html">[I] [Question] <title>能否实现这个场景,前端只发送一个post请求到后端 ,后端根据请求的参...</a></span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: [I] [Question] <title>能否实现这个场景,前端只发送一个post请求到后端 ...</span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg34609.html">Re: [I] [Question] <title>能否实现这个场景,前端只发送一个post请求到后端 ...</a></span> <span class="sender italic">via GitHub</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [I] [Question] <title>能否实现这个场景,前端只发送一个post请求到后端 ,后端根据请求的参数(请求的接口名称,然后根据接口名称去数据库或者配置中心获取url,get或者post请求,params,heads,body配置,认证方式:token认证),然后后端组装完成发送到甲方的中台服务; [shenyu]"> <input type="hidden" name="msgid" value="I_kwDOCGCHjs7FbROr-65469628-a82c-46b1-a4f5-70c36592b414@gitbox.apache.org"> <input type="hidden" name="relpath" value="notifications@shenyu.apache.org/msg33532.html"> <input type="submit" value=" via GitHub "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="notifications@shenyu.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search notifications"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/notifications@shenyu.apache.org/">notifications - all messages</a></li> <li class="icons-about"><a href="/notifications@shenyu.apache.org/info.html">notifications - about the list</a></li> <li class="icons-expand"><a href="/search?l=notifications@shenyu.apache.org&q=subject:%22Re%5C%3A+%5C%5BI%5C%5D+%5C%5BQuestion%5C%5D+%3Ctitle%3E%E8%83%BD%E5%90%A6%E5%AE%9E%E7%8E%B0%E8%BF%99%E4%B8%AA%E5%9C%BA%E6%99%AF%EF%BC%8C%E5%89%8D%E7%AB%AF%E5%8F%AA%E5%8F%91%E9%80%81%E4%B8%80%E4%B8%AApost%E8%AF%B7%E6%B1%82%E5%88%B0%E5%90%8E%E7%AB%AF+%EF%BC%8C%E5%90%8E%E7%AB%AF%E6%A0%B9%E6%8D%AE%E8%AF%B7%E6%B1%82%E7%9A%84%E5%8F%82%E6%95%B0%EF%BC%88%E8%AF%B7%E6%B1%82%E7%9A%84%E6%8E%A5%E5%8F%A3%E5%90%8D%E7%A7%B0%EF%BC%8C%E7%84%B6%E5%90%8E%E6%A0%B9%E6%8D%AE%E6%8E%A5%E5%8F%A3%E5%90%8D%E7%A7%B0%E5%8E%BB%E6%95%B0%E6%8D%AE%E5%BA%93%E6%88%96%E8%80%85%E9%85%8D%E7%BD%AE%E4%B8%AD%E5%BF%83%E8%8E%B7%E5%8F%96url%EF%BC%8Cget%E6%88%96%E8%80%85post%E8%AF%B7%E6%B1%82%EF%BC%8Cparams%EF%BC%8Cheads%EF%BC%8Cbody%E9%85%8D%E7%BD%AE%EF%BC%8C%E8%AE%A4%E8%AF%81%E6%96%B9%E5%BC%8F%EF%BC%9Atoken%E8%AE%A4%E8%AF%81%EF%BC%89%EF%BC%8C%E7%84%B6%E5%90%8E%E5%90%8E%E7%AB%AF%E7%BB%84%E8%A3%85%E5%AE%8C%E6%88%90%E5%8F%91%E9%80%81%E5%88%B0%E7%94%B2%E6%96%B9%E7%9A%84%E4%B8%AD%E5%8F%B0%E6%9C%8D%E5%8A%A1%EF%BC%9B+%5C%5Bshenyu%5C%5D%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg33528.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg34609.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">I_kwDOCGCHjs7FbROr-65469628-a82c-46b1-a4f5-70c36592b414@gitbox.apache.org</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9ec80a82b820fad4',t:'MTc3NjIyNTYwMg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>