package com.qqchen.deploy.backend.framework.ssh.websocket.response;

import com.qqchen.deploy.backend.framework.enums.SSHMessageType;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * SSH终端输出响应（Framework层）
 * 
 * 后端发送格式：
 * {
 *   "type": "output",
 *   "data": {
 *     "response": {
 *       "type": "output",
 *       "data": "terminal output text"
 *     }
 *   }
 * }
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SSHOutputResponse extends SSHBaseResponse {
    
    public SSHOutputResponse() {
        setType(SSHMessageType.OUTPUT);
    }
    
    public SSHOutputResponse(String data) {
        this();
        setType(SSHMessageType.OUTPUT);
        setData(data);
    }
}
