1
This commit is contained in:
parent
1cdff642b6
commit
895d3f9fcb
@ -17,6 +17,8 @@
|
|||||||
#include "handlermgr.h"
|
#include "handlermgr.h"
|
||||||
#include "IMListener.h"
|
#include "IMListener.h"
|
||||||
#include "perfmonitor.h"
|
#include "perfmonitor.h"
|
||||||
|
#include "dbengine.h"
|
||||||
|
#include "guildmgr.h"
|
||||||
|
|
||||||
#include "ss_msgid.pb.h"
|
#include "ss_msgid.pb.h"
|
||||||
#include "ss_proto.pb.h"
|
#include "ss_proto.pb.h"
|
||||||
@ -79,6 +81,8 @@ void App::Init(int argc, char* argv[])
|
|||||||
JsonDataMgr::Instance()->Init();
|
JsonDataMgr::Instance()->Init();
|
||||||
uuid.SetMachineId(instance_id);
|
uuid.SetMachineId(instance_id);
|
||||||
IMListener::Instance()->Init();
|
IMListener::Instance()->Init();
|
||||||
|
DBEngine::Instance()->Init();
|
||||||
|
GuildMgr::Instance()->Init();
|
||||||
|
|
||||||
a8::UdpLog::Instance()->Info("rankserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
a8::UdpLog::Instance()->Info("rankserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
||||||
}
|
}
|
||||||
@ -88,6 +92,8 @@ void App::UnInit()
|
|||||||
if (terminated) {
|
if (terminated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
GuildMgr::Instance()->UnInit();
|
||||||
|
DBEngine::Instance()->UnInit();
|
||||||
IMListener::Instance()->UnInit();
|
IMListener::Instance()->UnInit();
|
||||||
JsonDataMgr::Instance()->UnInit();
|
JsonDataMgr::Instance()->UnInit();
|
||||||
f8::MsgQueue::Instance()->UnInit();
|
f8::MsgQueue::Instance()->UnInit();
|
||||||
|
27
server/rankserver/guildmgr.cc
Normal file
27
server/rankserver/guildmgr.cc
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#include "precompile.h"
|
||||||
|
#include "guildmgr.h"
|
||||||
|
|
||||||
|
void GuildMgr::Init()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuildMgr::UnInit()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuildMgr::__GuildCreate(f8::JsonHttpRequest* request)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuildMgr::__GuildSearch(f8::JsonHttpRequest* request)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuildMgr::__GuildRank(f8::JsonHttpRequest* request)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
17
server/rankserver/guildmgr.h
Normal file
17
server/rankserver/guildmgr.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
class GuildMgr : public a8::Singleton<GuildMgr>
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
GuildMgr() {};
|
||||||
|
friend class a8::Singleton<GuildMgr>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
void Init();
|
||||||
|
void UnInit();
|
||||||
|
|
||||||
|
void __GuildCreate(f8::JsonHttpRequest* request);
|
||||||
|
void __GuildSearch(f8::JsonHttpRequest* request);
|
||||||
|
void __GuildRank(f8::JsonHttpRequest* request);
|
||||||
|
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user