Compare commits

..

2 Commits

Author SHA1 Message Date
yangpeng eee562dbde fix(): 修复forest请求nacosApi接口因为路径参数问题 2024-08-09 15:36:40 +08:00
yangpeng 4c41394c4d 初始化 2024-08-09 15:13:29 +08:00
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,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;
@ -17,8 +18,9 @@ import com.muyu.common.nacos.remote.resp.ServiceListResp;
baseURL = Constants.HTTP + "#{nacos.addr}/nacos/v1/ns/service",
interceptor = {NacosNamespaceInterceptor.class}
)
public interface NacosServiceRemote {
@GetRequest(url = "/list")
public ServiceListResp serviceList(@Body ServiceListReq serviceListReq);
public ServiceListResp serviceList(@Query ServiceListReq serviceListReq);
}