schemas

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStudentRequest

type AddStudentRequest struct {
	Username    string `json:"username"`
	Fullname    string `json:"fullname"`
	Nisn        string `json:"nisn"`
	Email       string `json:"email,omitempty"`
	PhoneNumber string `json:"phone_number,omitempty"`
}

type Admin

type Admin struct {
	Id          string `json:"id"`
	Username    string `json:"username"`
	Email       string `json:"email"`
	Password    string `json:"password"`
	PhoneNumber string `json:"phone_number"`
}

type AhpRecommendation

type AhpRecommendation struct {
	Result           RecommendationResult `json:"result"`
	ConsistencyRatio float32              `json:"consistency_ratio"`
}

type Alternative

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

type Answer

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

type DeleteRecommendationRequest

type DeleteRecommendationRequest struct {
	StudentId string `json:"student_id"`
}

type DeleteStudentRequest

type DeleteStudentRequest struct {
	Id string `json:"id"`
}

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 MessageResponse

type MessageResponse struct {
	Message string `json:"message"`
}

type Question

type Question struct {
	Code        string `json:"code"`
	Question    string `json:"question"`
	Category    string `json:"category"`
	Description int    `json:"description"`
	Id          int    `json:"id"`
	Number      int    `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 `json:"school_id"`
	Id                          int    `json:"id"`
	AlternativeId               int    `json:"alternative_id"`
	TotalOpenJobs               int    `json:"total_open_jobs"`
	EntrepreneurshipOpportunity int    `json:"entrepreneurship_opportunity"`
	Salary                      int    `json:"salary"`
}

type QuestionnareSettingAlternative

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

type QuestionnareSettingRequest

type QuestionnareSettingRequest struct {
	AlternativeId               int `json:"alternative_id"`
	TotalOpenJobs               int `json:"total_open_jobs"`
	EntrepreneurshipOpportunity int `json:"entrepreneurship_opportunity"`
	Salary                      int `json:"salary"`
}

type QuestionnareStatusResponse

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

type Recommendation

type Recommendation struct {
	Ahp    AhpRecommendation    `json:"ahp"`
	Topsis TopsisRecommendation `json:"topsis"`
}

type RecommendationResult

type RecommendationResult struct {
	Alternative string  `json:"alternative"`
	Description string  `json:"description"`
	Score       float32 `json:"score"`
	Id          int32   `json:"id"`
}

type School

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

type Statistic

type Statistic struct {
	RegisteredStudents       int     `json:"registered_students"`
	QuestionnareCompleted    int     `json:"questionnare_completed"`
	RecommendationAcceptance float32 `json:"recommendation_acceptance"`
	ConsistencyAvg           float32 `json:"consistency_avg"`
}

type Student

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

type StudentProfile

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

type StudentRecommendation

type StudentRecommendation struct {
	Fullname         string                 `json:"fullname"`
	Nisn             string                 `json:"nisn"`
	AhpResults       []RecommendationResult `json:"ahp_results"`
	TopsisResults    []RecommendationResult `json:"topsis_results"`
	Id               int32                  `json:"id"`
	ConsistencyRatio float32                `json:"consistency_ratio"`
}

type SubmitAnswerRequest

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

type TopsisRecommendation

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

type UpdateAdminRequest

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

type UpdateStudentRequest

type UpdateStudentRequest struct {
	Username    string `json:"username"`
	Fullname    string `json:"fullname"`
	Nisn        string `json:"nisn"`
	Email       string `json:"email,omitempty"`
	PhoneNumber string `json:"phone_number,omitempty"`
}

Jump to

Keyboard shortcuts

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