package cn.reghao.tnb.sb.zk.model.po;

import cn.reghao.tnb.sb.zk.model.constant.NodeStatus;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author reghao
 * @date 2023-03-29 11:51:25
 */
@AllArgsConstructor
@Setter
@Getter
public class NodeInfo {
    private String id;
    private String status;
    private String role;

    public NodeInfo(String id, NodeStatus status, String role) {
        this.id = id;
        this.status = status.name();
        this.role = role;
    }
}
