Documentation
¶
Index ¶
- type FetchProfessorParam
- type FetchProfessorResponse
- type FetchReactionParams
- type FetchReviewParams
- type FetchReviewResponse
- type FetchUserParams
- type FetchUserResponse
- type ForgotPasswordRequest
- type PaginationQuery
- type PaginationResponse
- type ProfessorRatingDistribution
- type ProfessorReviewRequest
- type ProfessorStatic
- type RefreshATRequest
- type ReviewReactionRequest
- type UserLoginRequest
- type UserProfileResponse
- type UserRegisterRequest
- type UserTokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchProfessorParam ¶
type FetchProfessorResponse ¶
type FetchProfessorResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Faculty string `json:"faculty"`
Major string `json:"major"`
ProfileImgLink string `json:"profileImgLink"`
ReviewsCount uint64 `json:"reviewsCount"`
AvgDiffRate float32 `json:"avgDiffRate"`
AvgFriendlyRate float32 `json:"avgFriendlyRate"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type FetchReactionParams ¶
type FetchReviewParams ¶
type FetchReviewResponse ¶
type FetchReviewResponse struct {
ID string `json:"id"`
ProfessorID string `json:"profId"`
UserID string `json:"userId"`
Comment string `json:"comment"`
DiffRate float32 `json:"difficultyRating"`
FriendlyRate float32 `json:"friendlyRating"`
CreatedAt string `json:"createdAt"`
IsLiked int `json:"isLiked"`
Like int `json:"like"`
Dislike int `json:"dislike"`
User FetchUserResponse `json:"user"`
Professor FetchProfessorResponse `json:"professor"`
}
type FetchUserParams ¶
type FetchUserResponse ¶
type ForgotPasswordRequest ¶
type PaginationQuery ¶
type PaginationQuery struct {
Page uint `query:"page" validate:"min=1"`
Limit uint `query:"limit" validate:"max=100"`
}
func (*PaginationQuery) SetDefaultValue ¶
func (pageQuery *PaginationQuery) SetDefaultValue()
type PaginationResponse ¶
type ProfessorRatingDistribution ¶
type ProfessorRatingDistribution struct {
ProfessorID string `json:"profId"`
DiffcultyDistribution entity.RatingDistribution `json:"difficultyDistribution"`
FriendlyDistirbutuion entity.RatingDistribution `json:"friendlyDistribution"`
}
type ProfessorReviewRequest ¶
type ProfessorStatic ¶
type RefreshATRequest ¶
type RefreshATRequest struct {
RefreshToken string `json:"refreshToken" validate:"required"`
}
type ReviewReactionRequest ¶
type UserLoginRequest ¶
type UserProfileResponse ¶
type UserProfileResponse struct {
UserProfile FetchUserResponse `json:"user"`
ReviewsCount int `json:"reviewsCount"`
RecentReviews []FetchReviewResponse `json:"recentReviews"`
}
type UserRegisterRequest ¶
type UserTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.