package com.jmfy.dao; import com.jmfy.model.CServerOpenTime; import com.jmfy.model.ServerInfo; import com.jmfy.model.gameName; import org.springframework.data.mongodb.core.MongoTemplate; import java.util.List; import java.util.Map; public interface ServerInfoDao { List getAllServerInfo() throws Exception; Map getAllServerMap() throws Exception; List getAllGameInfo() throws Exception; ServerInfo getServerinfo(String id) throws Exception; void closeServerWhite(String server_id) throws Exception; void openServerWhite(String server_id) throws Exception; void updateServerInfo(String server_id, int status,int isWhite,int isnew,String name,String register_state) throws Exception; void updateServerInfo(ServerInfo serverInfo) throws Exception; void updateOpenServerTime(CServerOpenTime cServerOpenTime,String serverId) throws Exception; void updateServerInfo(String server_id, int status) throws Exception; CServerOpenTime getOpenServerTime(String serverId) throws Exception; long getRegisterNum(String server_id) throws Exception; long getOnlineNum(String server_id); void addServerInfo(ServerInfo serverInfo) throws Exception; String getAllServerName(String server_Ids) throws Exception; void deleteServer(String serverId) throws Exception; }