miduo_gm/src/main/java/com/jmfy/dao/ServerInfoDao.java

42 lines
1.3 KiB
Java
Raw Normal View History

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;
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-04-02 15:02:48 +08:00
void updateServerInfo(String server_id, int status,int isWhite,int isnew,String name,String register_state) throws Exception;
2019-06-03 17:22:38 +08:00
2021-08-16 10:49:34 +08:00
void updateServerInfo(ServerInfo serverInfo) 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;
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;
2021-10-29 18:19:25 +08:00
void deleteServer(String serverId) throws Exception;
2019-04-08 17:29:02 +08:00
}