2019-04-08 17:29:02 +08:00
|
|
|
package com.jmfy.dao;
|
|
|
|
|
|
|
|
|
2023-08-15 15:28:06 +08:00
|
|
|
import com.jmfy.model.*;
|
2022-03-03 17:11:53 +08:00
|
|
|
import org.springframework.data.mongodb.core.query.Query;
|
|
|
|
import org.springframework.data.mongodb.core.query.Update;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
|
|
|
import java.util.List;
|
2021-11-02 17:41:12 +08:00
|
|
|
import java.util.Map;
|
2019-04-08 17:29:02 +08:00
|
|
|
|
|
|
|
public interface ServerInfoDao {
|
|
|
|
List<ServerInfo> getAllServerInfo() throws Exception;
|
2023-08-15 15:28:06 +08:00
|
|
|
List<ServerInfo> getServerInfoOfSubChannel(String subChannel) throws Exception;
|
2023-12-19 16:35:19 +08:00
|
|
|
List<ServerInfo> getServerInfoOfSlaveServer(int isSlaveServer) throws Exception;
|
2021-11-02 17:41:12 +08:00
|
|
|
Map<String,ServerInfo> getAllServerMap() throws Exception;
|
2021-02-04 11:15:05 +08:00
|
|
|
List<gameName> getAllGameInfo() throws Exception;
|
2022-05-10 18:34:37 +08:00
|
|
|
ServerInfo getServerInfo(String id) throws Exception;
|
2021-02-04 11:15:05 +08:00
|
|
|
void closeServerWhite(String server_id) throws Exception;
|
|
|
|
void openServerWhite(String server_id) throws Exception;
|
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;
|
2021-08-16 10:49:34 +08:00
|
|
|
void updateServerInfo(ServerInfo serverInfo) throws Exception;
|
2021-02-04 11:15:05 +08:00
|
|
|
void updateOpenServerTime(CServerOpenTime cServerOpenTime,String serverId) throws Exception;
|
2022-05-10 18:34:37 +08:00
|
|
|
void updateServerInfo(String server_id, String status) throws Exception;
|
2021-02-04 11:15:05 +08:00
|
|
|
CServerOpenTime getOpenServerTime(String serverId) throws Exception;
|
2022-05-10 18:34:37 +08:00
|
|
|
void updateOpenServerTime(String serverId, String openTime) throws Exception;
|
2021-02-04 11:15:05 +08:00
|
|
|
long getRegisterNum(String server_id) throws Exception;
|
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;
|
2021-10-29 18:19:25 +08:00
|
|
|
void deleteServer(String serverId) throws Exception;
|
2022-03-03 17:11:53 +08:00
|
|
|
ServerAreaInfoManager findServerArenaInfoManager() throws Exception;
|
|
|
|
void addServerArenaInfoManager(ServerAreaInfoManager serverAreaInfoManager) throws Exception;
|
|
|
|
void updateServerArenaInfoManager(Query query, Update update) throws Exception;
|
|
|
|
|
2023-08-15 15:28:06 +08:00
|
|
|
// 自动开服
|
|
|
|
List<AssSetting> findAllAssSettingInfo() throws Exception;
|
|
|
|
AssSetting findAssSettingInfo(String id) throws Exception;
|
|
|
|
void updateAssSettingInfo(AssSetting assSetting) throws Exception;
|
|
|
|
void insertAssSettingInfo(AssSetting assSetting) throws Exception;
|
|
|
|
void deleteAssSettingInfo(String id) throws Exception;
|
2019-04-08 17:29:02 +08:00
|
|
|
}
|