Archived
1

Add tournament reports storage and karma changing function

This commit is contained in:
2018-05-05 10:33:40 +04:00
parent 0a5361ee09
commit 07c24b8822
10 changed files with 187 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ type DataCacheInterface interface {
GetUserRolesInSquads(userID int) []dbmapping.SquadPlayerFull
AddPlayer(player *dbmapping.Player) (int, error)
ChangePlayerKarma(addition int, playerID int) (*dbmapping.Player, error)
GetOrCreatePlayerByTelegramID(telegramID int) (*dbmapping.Player, error)
GetPlayerByID(playerID int) (*dbmapping.Player, error)
GetPlayerByTelegramID(telegramID int) (*dbmapping.Player, error)
@@ -45,6 +46,8 @@ type DataCacheInterface interface {
GetProfileByID(profileID int) (*dbmapping.Profile, error)
GetProfileByPlayerID(playerID int) (*dbmapping.Profile, error)
AddTournamentReport(tournamentNumber int, playerID int, target string) (int, error)
GetElementByID(elementID int) (*datamapping.Element, error)
FindElementIDBySymbol(symbol string) (int, error)