repositories

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQuestionnareSetting

func AddQuestionnareSetting(data models.QuestionnareSetting) error

func AddStudent

func AddStudent(schoolId string, data models.Student) error

func CheckStudentExpectationExist added in v1.1.0

func CheckStudentExpectationExist(studentId string) bool

func DeleteAnswers

func DeleteAnswers(studentId string) error

func DeleteStudent

func DeleteStudent(studentId string) error

func DeleteStudentExpectation added in v1.1.0

func DeleteStudentExpectation(studentId string) error

func GetAHPByStudentId

func GetAHPByStudentId(studentId string) (models.AHP, error)

func GetAHPConsistencyRatio

func GetAHPConsistencyRatio(studentId string) (float32, error)

func GetAHPRecommendations

func GetAHPRecommendations(studentId string) ([]models.RecommendationResult, error)

func GetAdminById

func GetAdminById(adminId string) (models.Admin, error)

func GetAdminByUsername

func GetAdminByUsername(username string) (models.Admin, error)

func GetAlternativeById

func GetAlternativeById(id int) (models.Alternative, error)

func GetAlternativeByName

func GetAlternativeByName(name string) (models.Alternative, error)

func GetAlternatives

func GetAlternatives() ([]models.Alternative, error)

func GetAnswersByStudentId

func GetAnswersByStudentId(studentId string) ([]models.Answer, error)

func GetAvgConsistencyRatio

func GetAvgConsistencyRatio(schoolId string) (sql.NullFloat64, error)

func GetEntrepreneurshipOpportunitiesPerSchool added in v1.1.0

func GetEntrepreneurshipOpportunitiesPerSchool(schoolID string) ([]float32, error)

func GetMissingSettings

func GetMissingSettings(schoolId string) ([]models.Alternative, error)

func GetQuestionnareSettings

func GetQuestionnareSettings(schoolId string) ([]models.QuestionnareSettingAlternative, error)

func GetQuestions

func GetQuestions() ([]models.Question, error)

func GetRecommendationsBySchoolId

func GetRecommendationsBySchoolId(schoolId string) ([]models.StudentRecommendation, error)

func GetSalariesPerSchool added in v1.1.0

func GetSalariesPerSchool(schoolID string) ([]float32, error)

func GetSchoolByAdminId

func GetSchoolByAdminId(adminId string) (models.School, error)

func GetSchoolById

func GetSchoolById(schoolId string) (models.School, error)

func GetSchoolByStudentId

func GetSchoolByStudentId(studentId string) (models.School, error)

func GetSchools added in v1.1.0

func GetSchools() ([]models.School, error)

func GetStudentById

func GetStudentById(studentId string) (models.Student, error)

func GetStudentBySchoolId

func GetStudentBySchoolId(schoolId string, studentId string) (models.Student, error)

func GetStudentByUsername

func GetStudentByUsername(username string) (models.Student, error)

func GetStudentExpectations added in v1.1.0

func GetStudentExpectations(studentId string) ([]models.ExpectationToAlternative, error)

func GetStudentsBySchool

func GetStudentsBySchool(schoolId string) ([]models.Student, error)

func GetSumEntrepreneurshipOpportunities added in v1.1.0

func GetSumEntrepreneurshipOpportunities(schoolId string) (int64, error)

func GetSumPowerOfEntrepreneurshipOpportunities added in v1.1.0

func GetSumPowerOfEntrepreneurshipOpportunities(schoolId string) (float32, error)

func GetSumPowerOfSalaries added in v1.1.0

func GetSumPowerOfSalaries(schoolId string) (float32, error)

func GetSumPowerOfTotalOpenJobs added in v1.1.0

func GetSumPowerOfTotalOpenJobs(schoolId string) (float32, error)

func GetSumSalary added in v1.1.0

func GetSumSalary(schoolId string) (int64, error)

func GetSumTotalOpenJobs added in v1.1.0

func GetSumTotalOpenJobs(schoolId string) (int64, error)

func GetTOPSISAHPRecommendations added in v1.1.0

func GetTOPSISAHPRecommendations(studentId string) ([]models.RecommendationResult, error)

func GetTOPSISCombinativeRecommendations added in v1.1.0

func GetTOPSISCombinativeRecommendations(studentId string) ([]models.RecommendationResult, error)

func GetTOPSISRecommendations added in v1.1.0

func GetTOPSISRecommendations(studentId string) ([]models.RecommendationResult, error)

func GetTotalCompleteQuestionnare

func GetTotalCompleteQuestionnare(schoolId string) (int64, error)

func GetTotalOpenJobsPerSchool added in v1.1.0

func GetTotalOpenJobsPerSchool(schoolID string) ([]float32, error)

func GetTotalStudents

func GetTotalStudents(schoolId string) (int64, error)

func IsUniqueStudentEmail added in v1.1.0

func IsUniqueStudentEmail(email string) (bool, error)

func IsUniqueStudentEmailFromId added in v1.1.0

func IsUniqueStudentEmailFromId(studentId string, email string) (bool, error)

func IsUniqueStudentNisn added in v1.1.0

func IsUniqueStudentNisn(nisn string) (bool, error)

func IsUniqueStudentNisnFromId added in v1.1.0

func IsUniqueStudentNisnFromId(studentId string, nisn string) (bool, error)

func IsUniqueStudentPhoneNumber added in v1.1.0

func IsUniqueStudentPhoneNumber(phoneNumber string) (bool, error)

func IsUniqueStudentPhoneNumberFromId added in v1.1.0

func IsUniqueStudentPhoneNumberFromId(studentId string, phoneNumber string) (bool, error)

func IsUniqueStudentUsername added in v1.1.0

func IsUniqueStudentUsername(username string) (bool, error)

func IsUniqueStudentUsernameFromId added in v1.1.0

func IsUniqueStudentUsernameFromId(studentId string, username string) (bool, error)

func SaveAHP

func SaveAHP(data models.AHP) error

func SaveAHPAlternative

func SaveAHPAlternative(data models.AHPToAlternatives) error

func SaveAHPAlternativeTx

func SaveAHPAlternativeTx(data models.AHPToAlternatives, tx *sqlx.Tx) error

func SaveAHPAlternatives

func SaveAHPAlternatives(data []models.AHPToAlternatives) error

func SaveAHPAlternativesTx

func SaveAHPAlternativesTx(data []models.AHPToAlternatives, tx *sqlx.Tx) error

func SaveAHPTx

func SaveAHPTx(data models.AHP, tx *sqlx.Tx) (int32, error)

func SaveAnswersTx

func SaveAnswersTx(answers []models.Answer, tx *sqlx.Tx) error

func SaveStudentExpectations added in v1.1.0

func SaveStudentExpectations(expectations []models.ExpectationData, studentId string) error

func SaveTOPSISAHPAlternativeTx added in v1.1.0

func SaveTOPSISAHPAlternativeTx(data models.TOPSISToAlternatives, tx *sqlx.Tx) error

func SaveTOPSISAlternativeTx added in v1.1.0

func SaveTOPSISAlternativeTx(data models.TOPSISToAlternatives, tx *sqlx.Tx) error

func SaveTOPSISCombinativeAlternativeTx added in v1.1.0

func SaveTOPSISCombinativeAlternativeTx(data models.TOPSISToAlternatives, tx *sqlx.Tx) error

func SaveTOPSISTx added in v1.1.0

func SaveTOPSISTx(data models.TOPSIS, tx *sqlx.Tx) (int32, error)

func UpdateAdminPassword added in v1.1.0

func UpdateAdminPassword(adminId string, hashedPassword string) error

func UpdateAdminProfile

func UpdateAdminProfile(adminId string, data models.UpdateAdminRequest) error

func UpdateStudent

func UpdateStudent(studentId string, data models.Student) error

func UpdateStudentExpectation added in v1.1.0

func UpdateStudentExpectation(expectations []models.ExpectationData, studentId string) error

func UpdateStudentPassword added in v1.1.0

func UpdateStudentPassword(studentId string, hashedPassword string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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