models

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AHP

type AHP struct {
	StudentId        string  `db:"student_id"`
	Id               int32   `db:"id"`
	ConsistencyRatio float32 `db:"consistency_ratio"`
}

type AHPToAlternatives

type AHPToAlternatives struct {
	Score         float32 `db:"score"`
	AhpId         int32   `db:"ahp_id"`
	AlternativeId int     `db:"alternative_id"`
}

type Admin

type Admin struct {
	Id          string      `db:"id" json:"id"`
	Username    string      `db:"username" json:"username"`
	Email       null.String `db:"email" json:"email,omitempty"`
	Password    string      `db:"password" json:"-"`
	PhoneNumber null.String `db:"phone_number" json:"phone_number,omitempty"`
}

type AhpRecommendation

type AhpRecommendation struct {
	Result           []RecommendationResultWithRank `db:"result" json:"result"`
	ConsistencyRatio null.Float                     `db:"consistency_ratio" json:"consistency_ratio"`
}

type Alternative

type Alternative struct {
	Alternative string      `db:"alternative" json:"alternative"`
	Description null.String `db:"description" json:"description"`
	Id          int         `db:"id" json:"id"`
}

type Answer

type Answer struct {
	StudentId  string      `db:"student_id" json:"student_id"`
	Answer     null.String `db:"answer" json:"answer"`
	Id         int64       `db:"id" json:"id"`
	QuestionId int         `db:"question_id" json:"question_id"`
}

type ChangePasswordRequest added in v1.1.0

type ChangePasswordRequest struct {
	OldPassword     string `json:"old_password"`
	NewPassword     string `json:"new_password"`
	ConfirmPassword string `json:"confirm_password"`
}

type CriteriaWeights added in v1.1.0

type CriteriaWeights struct {
	Entropy Weights `json:"entropy"`
	AHP     Weights `json:"ahp"`
}

type Expectation added in v1.1.0

type Expectation struct {
	Id           string                     `db:"id"`
	StudentId    string                     `db:"student_id"`
	Expectations []ExpectationToAlternative `db:"expectations"`
}

type ExpectationData added in v1.1.0

type ExpectationData struct {
	AlternativeId int `json:"alternative_id"`
	Rank          int `json:"rank"`
}

type ExpectationRequest added in v1.1.0

type ExpectationRequest struct {
	Expectations []ExpectationData `json:"expectations"`
}

type ExpectationStatusResponse added in v1.1.0

type ExpectationStatusResponse struct {
	Status string `json:"status"`
}

type ExpectationToAlternative added in v1.1.0

type ExpectationToAlternative struct {
	ExpectationId   string `db:"expectation_id" json:"expectation_id"`
	AlternativeId   string `db:"alternative_id" json:"alternative_id"`
	AlternativeName string `db:"alternative_name" json:"alternative_name"`
	Id              int64  `db:"id" json:"id"`
	Rank            int    `db:"rank" json:"rank"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Type     string `json:"type"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
	Role  string `json:"role"`
}

type Question

type Question struct {
	Code        string      `db:"code" json:"code"`
	Question    string      `db:"question" json:"question"`
	Category    string      `db:"category" json:"category"`
	Description null.String `db:"description" json:"description"`
	Id          int         `db:"id" json:"id"`
	Number      int         `db:"number" json:"number"`
}

type QuestionResponse

type QuestionResponse struct {
	Question string   `json:"question"`
	Type     string   `json:"type"`
	MinText  string   `json:"min_text"`
	MaxText  string   `json:"max_text"`
	Options  []string `json:"options"`
	Id       int      `json:"id"`
	Number   int      `json:"number"`
}

type QuestionnareSetting

type QuestionnareSetting struct {
	SchoolId                    string     `db:"school_id" json:"school_id"`
	Id                          int        `db:"id" json:"id"`
	AlternativeId               int        `db:"alternative_id" json:"alternative_id"`
	TotalOpenJobs               null.Int16 `db:"total_open_jobs" json:"total_open_jobs"`
	EntrepreneurshipOpportunity null.Int16 `db:"entrepreneurship_opportunity" json:"entrepreneurship_opportunity"`
	Salary                      null.Int16 `db:"salary" json:"salary"`
}

type QuestionnareSettingAlternative

type QuestionnareSettingAlternative struct {
	Alternative                 string     `db:"alternative" json:"alternative"`
	Id                          int        `db:"id" json:"id"`
	TotalOpenJobs               null.Int16 `db:"total_open_jobs" json:"total_open_jobs"`
	EntrepreneurshipOpportunity null.Int16 `db:"entrepreneurship_opportunity" json:"entrepreneurship_opportunity"`
	Salary                      null.Int16 `db:"salary" json:"salary"`
}

type Recommendation

type Recommendation struct {
	Ahp                AhpRecommendation                `db:"ahp" json:"ahp"`
	Topsis             TopsisRecommendation             `db:"topsis" json:"topsis"`
	TopsisAHP          TopsisAHPRecommendation          `db:"topsis_ahp" json:"topsis_ahp"`
	TOPSISCombinatives TOPSISCombinativesRecommendation `db:"topsis_combinative" json:"topsis_combinative"`
}

type RecommendationResult

type RecommendationResult struct {
	Alternative string      `db:"alternative" json:"alternative"`
	Description null.String `db:"description" json:"description"`
	Score       null.Float  `db:"score" json:"score"`
	Id          int32       `db:"id" json:"id"`
}

type RecommendationResultWithRank added in v1.1.0

type RecommendationResultWithRank struct {
	Alternative string      `json:"alternative"`
	Description null.String `json:"description"`
	Score       null.Float  `json:"score"`
	Rank        int         `json:"rank"`
	Id          int32       `json:"id"`
}

type School

type School struct {
	Id   string `db:"id" json:"id"`
	Name string `db:"name" json:"name"`
}

type Statistic

type Statistic struct {
	RegisteredStudents    int64      `db:"registered_students" json:"registered_students"`
	QuestionnareCompleted int64      `db:"questionnare_completed" json:"questionnare_completed"`
	ConsistencyAvg        null.Float `db:"consistency_avg" json:"consistency_avg"`
}

type Student

type Student struct {
	Id          string      `db:"id" json:"id"`
	Username    string      `db:"username" json:"username"`
	Password    string      `db:"password" json:"-"`
	Fullname    string      `db:"fullname" json:"fullname"`
	Nisn        string      `db:"nisn" json:"nisn"`
	Email       null.String `db:"email" json:"email,omitempty"`
	PhoneNumber null.String `db:"phone_number" json:"phone_number,omitempty"`
}

type StudentProfile

type StudentProfile struct {
	Id          string      `db:"id" json:"id"`
	Username    string      `db:"username" json:"username"`
	Fullname    string      `db:"fullname" json:"fullname"`
	Nisn        string      `db:"nisn" json:"nisn"`
	School      string      `json:"school"`
	Email       null.String `db:"email" json:"email,omitempty"`
	PhoneNumber null.String `db:"phone_number" json:"phone_number,omitempty"`
}

type StudentRecommendation

type StudentRecommendation struct {
	StudentId        string                 `db:"student_id" json:"student_id"`
	Fullname         string                 `db:"fullname" json:"fullname"`
	Nisn             string                 `db:"nisn" json:"nisn"`
	AhpResults       []RecommendationResult `db:"ahp_results" json:"ahp_results"`
	TopsisResults    []RecommendationResult `db:"topsis_results" json:"topsis_results"`
	ConsistencyRatio null.Float             `db:"consistency_ratio" json:"consistency_ratio"`
}

type StudentRegisterRequest added in v1.1.0

type StudentRegisterRequest struct {
	Fullname string `json:"fullname"`
	Nisn     string `json:"nisn"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
	School   string `json:"school"`
}

type SubmitAnswerRequest

type SubmitAnswerRequest struct {
	Answer string `json:"answer"`
	Id     int    `json:"id"`
	Number int    `json:"number"`
}

type TOPSIS added in v1.1.0

type TOPSIS struct {
	StudentId string `db:"student_id"`
	Id        int32  `db:"id"`
}

type TOPSISAHPToAlternatives added in v1.1.0

type TOPSISAHPToAlternatives struct {
	Score         float32 `db:"score"`
	TopsisId      int32   `db:"topsis_id"`
	AlternativeId int     `db:"alternative_id"`
}

type TOPSISCombinativesRecommendation added in v1.1.0

type TOPSISCombinativesRecommendation struct {
	Result []RecommendationResult `db:"result" json:"result"`
	Id     int32                  `db:"id" json:"id"`
}

type TOPSISToAlternatives added in v1.1.0

type TOPSISToAlternatives struct {
	Score         float32 `db:"score"`
	TopsisId      int32   `db:"topsis_id"`
	AlternativeId int     `db:"alternative_id"`
}

type TopsisAHPRecommendation added in v1.1.0

type TopsisAHPRecommendation struct {
	Result []RecommendationResult `db:"result" json:"result"`
	Id     int32                  `db:"id" json:"id"`
}

type TopsisRecommendation

type TopsisRecommendation struct {
	Result []RecommendationResult `db:"result" json:"result"`
	Id     int32                  `db:"id" json:"id"`
}

type UpdateAdminRequest

type UpdateAdminRequest struct {
	Username    string `json:"username"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phone_number"`
}

type Weights added in v1.1.0

type Weights struct {
	Interest                  float64 `json:"interest"`
	Facilities                float64 `json:"facilities"`
	TotalOpenJobs             float64 `json:"total_open_jobs"`
	Salaries                  float64 `json:"salaries"`
	EntrepreneurOpportunities float64 `json:"entrepreneur_opportunities"`
}

Jump to

Keyboard shortcuts

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