cloud-common-nacos-remote/src/main/java/com/muyu/common/nacos/remote/NacosServiceRemote.java

33 lines
803 B
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.muyu.common.nacos.remote;
import com.dtflys.forest.annotation.*;
import com.muyu.common.core.constant.Constants;
import com.muyu.common.nacos.remote.interceptor.NacosNamespaceInterceptor;
import com.muyu.common.nacos.remote.req.ServiceListReq;
import com.muyu.common.nacos.remote.resp.ServiceListResp;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.common.nacos.remote
* @Projectcloud-common-nacos-remote
* @nameNacosServiceRemote
* @Date2024/8/4 16:21
*/
@BaseRequest(
baseURL = Constants.HTTP+"#{nacos.addr}/nacos/v1/ns/service",
interceptor = {NacosNamespaceInterceptor.class}
)
public interface NacosServiceRemote {
@GetRequest(
url = "/list"
)
public ServiceListResp serviceList(@Body ServiceListReq serviceListReq);
}