Documentation
¶
Index ¶
- func AddJob(job *model.Job) error
- func AddVolunteer(volunteer *model.Volunteer) error
- func CheckAuth(context *gin.Context, username string, password string) error
- func CreateTeam(team *model.Team) error
- func DeleteJob(teamId sql.NullInt64, id uint) (int64, error)
- func DeleteTeam(teamID uint) error
- func DeleteVolunteer(teamID sql.NullInt64, volunteerID uint) error
- func ExtractAdminInfo(session sessions.Session) (model.TeamAdmin, error)
- func GetJobsNum(teamId sql.NullInt64) (int64, error)
- func GetTeamInfo(teamID uint) (model.Team, error)
- func GetVolunteersNum(teamID sql.NullInt64, pageSize int) (int64, error)
- func ListTeams(offset int, pageSize int) ([]model.Team, int64, error)
- func ListVolunteers(teamID sql.NullInt64, offset int, pageSize int) ([]model.Volunteer, error)
- func SearchVolunteer(teamID sql.NullInt64, IDNumber string) (model.Volunteer, error)
- func UpdateJob(id uint, job *model.Job) (int64, error)
- func UpdateTeam(team *model.Team) error
- func UpdateVolunteer(teamID sql.NullInt64, volunteerID uint, volunteer *model.Volunteer) error
- type Jobs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVolunteer ¶
func CreateTeam ¶
func DeleteTeam ¶
func GetVolunteersNum ¶
GetVolunteersNum fetch all tuple's count in the table
func ListVolunteers ¶
func SearchVolunteer ¶
SearchVolunteer get volunteer data with user id card number
func UpdateTeam ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.