parent
273f3c97d7
commit
50b5e8f854
@ -1,24 +1,16 @@ |
|||||||
package com.gitee.sop.registryapi.bean; |
package com.gitee.sop.registryapi.bean; |
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Data; |
||||||
import lombok.Setter; |
|
||||||
|
|
||||||
import java.util.Collections; |
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
/** |
/** |
||||||
* @author tanghc |
* @author tanghc |
||||||
*/ |
*/ |
||||||
@Getter |
@Data |
||||||
@Setter |
|
||||||
public class ServiceInfo { |
public class ServiceInfo { |
||||||
/** 服务名称 */ |
/** 服务名称 */ |
||||||
private String serviceId; |
private String serviceId; |
||||||
/** 实例列表 */ |
/** 实例列表 */ |
||||||
private List<ServiceInstance> instances = Collections.emptyList(); |
private List<ServiceInstance> instances; |
||||||
|
|
||||||
@Override |
|
||||||
public String toString() { |
|
||||||
return "服务名称: " + serviceId + ", 实例数:" + instances.size(); |
|
||||||
} |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue