2019-04-08 17:29:02 +08:00
|
|
|
package com.jmfy.dao;
|
|
|
|
|
|
|
|
|
2019-06-03 17:22:38 +08:00
|
|
|
import com.jmfy.model.CServerOpenTime;
|
2019-04-08 17:29:02 +08:00
|
|
|
import com.jmfy.model.ServerInfo;
|
2021-02-04 11:15:05 +08:00
|
|
|
import com.jmfy.model.gameName;
|
2019-11-05 14:35:25 +08:00
|
|
|
import org.springframework.data.mongodb.core.MongoTemplate;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public interface ServerInfoDao {
|
|
|
|
List<ServerInfo> getAllServerInfo() throws Exception;
|
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
List<gameName> getAllGameInfo() throws Exception;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
ServerInfo getServerinfo(String id) throws Exception;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
void closeServerWhite(String server_id) throws Exception;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
void openServerWhite(String server_id) throws Exception;
|
2019-06-03 17:22:38 +08:00
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
void updateServerInfo(String server_id, int status,int isWhite,int isnew,String name) throws Exception;
|
2019-06-03 17:22:38 +08:00
|
|
|
|
|
|
|
|
2021-02-04 11:15:05 +08:00
|
|
|
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;
|
2019-06-03 18:36:40 +08:00
|
|
|
|
2019-11-05 14:35:25 +08:00
|
|
|
long getOnlineNum(String server_id);
|
|
|
|
|
|
|
|
void addServerInfo(ServerInfo serverInfo) throws Exception;
|
2021-01-13 16:02:11 +08:00
|
|
|
|
|
|
|
String getAllServerName(String server_Ids) throws Exception;
|
2019-04-08 17:29:02 +08:00
|
|
|
}
|