package cn.reghao.tnb.admin.model.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author reghao
 * @date 2024-11-12 16:52:44
 */
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
public class ServiceInfo {
    private String application;
    private int total;
    private String hostPorts;
    private String role;

    public ServiceInfo(String application, int total, String hostPorts) {
        this.application = application;
        this.total = total;
        this.hostPorts = hostPorts;
    }

    public ServiceInfo(String application, String role) {
        this.application = application;
        this.total = 0;
        this.hostPorts = "";
        this.role = role;
    }
}
