dao

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeros

func AddHeros(heros []dto.HeroDto)

func GetHeroName

func GetHeroName(heroID int) string

func GetMatchPlayer

func GetMatchPlayer(matchID int64, playerID string) *dto.MatchPlayerDto

func GetSubPlayerMapByGroupId

func GetSubPlayerMapByGroupId(groupID int) map[string]string

func GetSubscription added in v1.5.0

func GetSubscription(groupID int, playerID string) *ent.Subscription

func GetSubscriptionDto added in v1.5.0

func GetSubscriptionDto(groupID int, playerID string) *dto.SubscriptionDto

func HasHeroData

func HasHeroData() bool

func InitDB

func InitDB()

func ListAllGroupIds added in v1.5.0

func ListAllGroupIds() []int

func ListAllPlayerIDs

func ListAllPlayerIDs() (pids []string)

func ListRecentMatchPlayers added in v1.2.0

func ListRecentMatchPlayers(playerID string) []*dto.MatchPlayerDto

func ListSubPlayersByGroupId added in v1.4.1

func ListSubPlayersByGroupId(groupID int) []dto.SubscriptionDto

func ListSubPlayersByPlayerId added in v1.4.1

func ListSubPlayersByPlayerId(playerID string) []dto.SubscriptionDto

func SaveMatchPlayer

func SaveMatchPlayer(mp *dto.MatchPlayerDto)

func SaveSubPlayer

func SaveSubPlayer(groupId int, steamId string, alias string)

func UpdateSubPlayer

func UpdateSubPlayer(s *ent.Subscription)

Types

type PlayerMatchCount added in v1.5.0

type PlayerMatchCount struct {
	PlayerID string `json:"player_id"`
	Count    int64  `json:"count"`
}

func GetMatchesCount added in v1.5.0

func GetMatchesCount(playerIds []string, start, end time.Time) (result []PlayerMatchCount)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL