package
1.6.1
Repository: https://github.com/projeto-uspy/uspy-backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CompleteSignup sets a user's email and password and verifies an user.
NewCourseFromController is a constructor.
NewInstituteFromController is a constructor.
NewMajorFromController is a constructor.
NewSubjectFromController is a constructor.
NewSubjectReviewFromController is a constructor.
NewUser creates a new user.

# Structs

Comment is the DTO for a comment.
CommentRating is the DTO for a comment rating, it contains offering data and the rating evaluation.
CommentReport is the DTO for a comment report, it contains offering data and the report.
Course is the DTO for a course Example: {"Bacharelado em Ciências de Computação", "55041", []Subjects{...}, map[string]string{"SMA0356": "Cálculo IV", ...}}.
Institute represents an institute or collection of courses.
Major is the DTO for a course/major.
Offering is the DTO for an offering of a subject Since it is inside a subcollection of a subject, it does not have subject data It contains some properties that are not mapped to firestore for internal logic and data collection purposes.
OfferingStats represents the evaluation stats for an offering.
Professor is an object that represents a USP professor It is not a DTO and is only used for data collection purposes.
Record is a DTO for a user's subject grade record It contains some properties that are not mapped to the database and solely used for internal, contextual logic.
Requirement represents a subject requirement It is nested inside a subject DTO and not mapped directly to a document.
Stats is a DTO for the database stats.
StatsEntry represents a simple counter.
Subject is the DTO for a subject.
SubjectReview is the DTO for a subject review/evaluation made by an user.
User is the DTO for a registered user It also contains non mapped properties used for internal contextual logic.
UserComment is the DTO for a user comment It is a replica of the comment object, but stored in the context of the user instead of the offering.