diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index e59399f6..a976dd1d 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -188,6 +188,8 @@ type MatchMgr interface { } type HistoryMgr interface { + AddBattle(string, int32, int32) + PushLastBattleInfo(Player) } type WspListener interface { diff --git a/server/matchserver/history/historymgr.go b/server/matchserver/history/historymgr.go index 4db9f52a..d44b65b7 100644 --- a/server/matchserver/history/historymgr.go +++ b/server/matchserver/history/historymgr.go @@ -1,7 +1,7 @@ package history import ( - + "main/common" ) type historyMgr struct { @@ -13,3 +13,11 @@ func (this *historyMgr) Init() { func (this *historyMgr) UnInit() { } + +func (this *historyMgr) AddBattle(accountId string, mapId int32, modeId int32) { + +} + +func (this *historyMgr) PushLastBattleInfo(hum common.Player) { + +} diff --git a/server/matchserver/history/user.go b/server/matchserver/history/user.go new file mode 100644 index 00000000..0db19d40 --- /dev/null +++ b/server/matchserver/history/user.go @@ -0,0 +1,5 @@ +package history + +type user struct { + accountId string +}