fix():修复forest请求nacosApi接口应为路劲参数的问题

master
LQS 2024-08-08 20:29:04 +08:00
parent 6ef1504cde
commit 651608eaab
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ package com.muyu.common.nacos.remote;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.GetRequest;
import com.dtflys.forest.annotation.Query;
import com.muyu.common.core.constant.Constants;
import com.muyu.common.nacos.remote.interceptor.NacosNamespaceInterceptor;
import com.muyu.common.nacos.remote.req.ServiceListReq;
@ -18,6 +19,6 @@ public interface NacosServerRemote {
@GetRequest(
url = "/list"
)
public ServiceListResp serviceList(@Body ServiceListReq serviceListReq);
public ServiceListResp serviceList(@Query ServiceListReq serviceListReq);
}

View File

@ -17,7 +17,7 @@ public class NacosServerService {
public List<String> nacosServerAllList() {
List<String> serverList = new ArrayList<>();
ServiceListResp serviceListResp = null;
int pageNo = 1, pageSize = 2;
int pageNo = 0, pageSize = 2;
do {
serviceListResp = nacosServerRemote.serviceList(
ServiceListReq.builder()