package
Version:
v0.0.0-...-56fa2b3
Opens a new window with list of versions in this module.
Published: Mar 1, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Course struct {
Title string `json:"title"`
Number string `json:"number"`
Credits string `json:"credits"`
Offered string `json:"offered"`
Contents string `json:"contents"`
DriveFiles []string `json:"driveFiles"`
ID string `json:"id"`
Dept string `json:"dept"`
Author string `json:"author"`
}
type CourseData struct {
Course *Course `json:"course"`
Reviews []*Review `json:"reviews"`
}
type File struct {
ID string `json:"driveId"`
Name string `json:"Name"`
}
File sd
type MGMCourse struct {
ID string `bson:"_id,omitempty"`
Title string `bson:"title"`
Number string `bson:"number"`
Credits string `bson:"credits"`
Offered string `bson:"offered"`
Contents string `bson:"contents"`
DriveFolder string `bson:"driveFolder"`
DriveFiles []string `bson:"driveFiles"`
Reviews []primitive.ObjectID `bson:"reviews"`
Author string `bson:"author"`
Dept string `bson:"dept"`
}
Course Structure
type MGMReview struct {
ID string `bson:"_id,omitempty"`
Course primitive.ObjectID `bson:"course"`
Semester string `bson:"semester"`
Professor string `bson:"professor"`
Contents string `bson:"contents"`
Author string `bson:"author"`
Approved string `bson:"approved"`
}
Review Structure
type MGMUser struct {
ID string
}
type NewCourse struct {
Title string `json:"title"`
Number string `json:"number"`
Credits string `json:"credits"`
Offered string `json:"offered"`
Contents string `json:"contents"`
Dept string `json:"dept"`
Author string `json:"author"`
}
type Response struct {
Ok bool `json:"ok"`
Message string `json:"message"`
}
type Review struct {
ID string `json:"id"`
Semester string `json:"semester"`
Instructor string `json:"instructor"`
Grading string `json:"grading"`
Course string `json:"course"`
Approved string `json:"approved"`
}
type SearchParams struct {
Identifier string `json:"identifier"`
}
type User struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
RollNo string `json:"rollNo"`
Banned bool `json:"banned"`
Role string `json:"role"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.