Archived
1

Best pokememes for user listing

This commit is contained in:
Vladimir Hodakov
2017-10-13 03:52:04 +04:00
parent 25991e0839
commit d897d2c3f9
11 changed files with 129 additions and 13 deletions

View File

@@ -12,10 +12,12 @@ type GettersInterface interface {
Init()
// Player
GetOrCreatePlayer(telegram_id int) (dbmapping.Player, bool)
GetPlayerByID(player_id int) (dbmapping.Player, bool)
// Profile
GetProfile(player_id int) (dbmapping.Profile, bool)
// Pokememes
GetPokememes() ([]dbmapping.PokememeFull, bool)
GetBestPokememes(player_id int) ([]dbmapping.PokememeFull, bool)
GetPokememeByID(pokememe_id string) (dbmapping.PokememeFull, bool)
// Possibilities
PossibilityRequiredPokeballs(location int, grade int, lvl int) (float64, int)