models

package
v0.0.0-...-56fa2b3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 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 Course

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

type CourseData struct {
	Course  *Course   `json:"course"`
	Reviews []*Review `json:"reviews"`
}

type File

type File struct {
	ID   string `json:"driveId"`
	Name string `json:"Name"`
}

File sd

type MGMCourse

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

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

type MGMUser struct {
	ID string
	// contains filtered or unexported fields
}

type NewCourse

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

type Response struct {
	Ok      bool   `json:"ok"`
	Message string `json:"message"`
}

type Review

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

type SearchParams struct {
	Identifier string `json:"identifier"`
}

type User

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"`
}

Jump to

Keyboard shortcuts

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