dao

package
v0.0.0-...-18a73b7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAbstractForTeam

func AddAbstractForTeam(teamId int) error

func Allot

func Allot(userId int, strEvent string) error

func CheckMentor

func CheckMentor(userId int) *models.Mentor

func GetContriHubRankings

func GetContriHubRankings() (*[]models.ContriHUBUser, error)

func GetDashboardTeam

func GetDashboardTeam(event Event, userId int) (*models.DashboardTeam, error)

func GetDashboardTeamForTeam

func GetDashboardTeamForTeam(team *models.Team) (*models.DashboardTeam, error)

func GetEventRanking

func GetEventRanking(event Event) ([]*models.DashboardTeam, error)

func GetMentorForTeam

func GetMentorForTeam(teamId int) (*models.Mentor, error)

func GetTeam

func GetTeam(event Event, userId int) (*models.Team, error)

func GetTeamIdsWithoutMentor

func GetTeamIdsWithoutMentor(event Event) (*[]int, error)

func GetTeamsForMentor

func GetTeamsForMentor(userId int) (*[]models.MentorTeam, error)

func GetTeamsForMentorEvent

func GetTeamsForMentorEvent(userId int, mentorEvent string) (*models.MentorTeam, error)

func GetUser

func GetUser(id int) (*models.User, error)

func GetUserByEmail

func GetUserByEmail(email *string) (*models.User, error)

func GetUserByRegNo

func GetUserByRegNo(regNo *string) (*models.User, error)

func GetUserDto

func GetUserDto(user *models.User) *models.UserDto

func GetUserInfo

func GetUserInfo(id int) (*models.DashboardUserDto, error)

func RegisterTeam

func RegisterTeam(event Event, teamName string, leaderId int, regNoList []string) (*models.DashboardTeam, error)

func SaveUser

func SaveUser(dto *models.UserDto) (*models.User, error)

func SetTeamScore

func SetTeamScore(strEvent string, teamId int, score int) error

func ToEventName

func ToEventName(event Event) (string, error)

func ValidSenior

func ValidSenior(regNo *string) bool

Types

type Event

type Event string

func ToEvent

func ToEvent(s string) (Event, error)

func (Event) String

func (e Event) String() string

Jump to

Keyboard shortcuts

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