package com.pqs9900.service.DataInfo;

import com.pqs9900.pojo.DataInfo.Server;
import com.pqs9900.pojo.DataInfo.ServerTree;

import java.util.List;

/** @Author denghuajun
 * @Description //TODO 服务器表
 * @Date  2019/3/15 13:25
 **/
public interface ServerService {
    //查询服务器信息
    List<Server> getServer(String sevIndex);
    //树的形成
    List<ServerTree> getTreeType();
    //查询所有服务器消息
    List<Server> getServerDetails();

    String saveServer(String serverName, String type, String version,String hardware,
                      String userName,String password,String ip);
    String updateServer(String sevIndex,String serverName, String type, String version,String hardware,
                        String userName,String password,String ip);

    //删除
    String deleteServer(String sevIndex);

    Server selectServer(String sevIndex);
}
