Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(s *FantasyTeam) error
Types ¶
type FantasyTeam ¶
type FantasyTeam struct { FantasyTeamID int64 `db:"fantasy_team_id"` FantasyLeagueID int64 `db:"fantasy_league_id"` UserID int64 `db:"user_id"` Name string `db:"name"` CreatedDate time.Time `db:"created_date"` Status string `db:"status"` ScheduleTeamNumber database.NullInt64 `db:"schedule_team_number"` }
func ReadAllByFantasyLeagueID ¶
func ReadAllByFantasyLeagueID(fantasyLeagueID int64, orderBy string) ([]FantasyTeam, error)
ReadAllByFantasyLeagueID reads all fantasy_teams in the database for the given fantasyLeagueID
type FantasyTeamFull ¶
type FantasyTeamFull struct { SeasonName string `db:"season_name"` FantasyGameName string `db:"fantasy_game_name"` FantasyGameLandingPage database.NullString `db:"landing_page_url"` FantasyTeamID int64 `db:"fantasy_team_id"` TeamName string `db:"fantasy_team_name"` DateCreated time.Time `db:"created_date"` Status string `db:"status"` ScheduleTeamNumber database.NullInt64 `db:"schedule_team_number"` FantasyLeagueID int64 `db:"fantasy_league_id"` FantasyLeagueName string `db:"fantasy_league_name"` UserID int64 `db:"user_id"` UserFirstName string `db:"first_name"` UserLastName string `db:"last_name"` }
func ReadAllByFantasyLeagueIDFull ¶
func ReadAllByFantasyLeagueIDFull(fantasyLeagueID int64, orderBy string) ([]FantasyTeamFull, error)
ReadAllByFantasyLeagueIDFull reads all fantasy_teams in the database for the given fantasyLeagueID
func ReadByUserIDFull ¶
func ReadByUserIDFull(userID int64, activeStatus, orderBy string) ([]FantasyTeamFull, error)
ReadByUserIDFull reads all fantasy_teams in the database for the given userID
Click to show internal directories.
Click to hide internal directories.