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

33 lines
953 B
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;
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;
ServerInfo getServerinfo(int id) throws Exception;
void closeServerWhite(int server_id) throws Exception;
void openServerWhite(int server_id) throws Exception;
2019-09-10 16:17:18 +08:00
void updateServerInfo(int server_id, int status,int isWhite,int isnew,String name) throws Exception;
2019-06-03 17:22:38 +08:00
2019-09-10 18:29:38 +08:00
void updateOpenServerTime(CServerOpenTime cServerOpenTime,int serverId) throws Exception;
2019-06-03 17:22:38 +08:00
CServerOpenTime getOpenServerTime(int serverId) throws Exception;
long getRegisterNum(int 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;
2019-04-08 17:29:02 +08:00
}