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

29 lines
760 B
Java

package com.jmfy.dao;
import com.jmfy.model.CServerOpenTime;
import com.jmfy.model.ServerInfo;
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;
void updateServerInfo(int server_id, int status,int isWhite,int isnew,String name) throws Exception;
void updateOpenServerTime(CServerOpenTime cServerOpenTime,int serverId) throws Exception;
CServerOpenTime getOpenServerTime(int serverId) throws Exception;
long getRegisterNum(int server_id) throws Exception;
long getOnlineNum(int server_id);
}