Documentation
¶
Index ¶
- type AdminGetIdea
- type AdminGetProject
- type AdminGetTeam
- type AdminGetTeamUser
- type AdminUser
- type BanUser
- type CompleteUserRequest
- type CreateTeamRequest
- type CreateUserRequest
- type ForgotPasswordRequest
- type GetAdminUser
- type GetTeam
- type GetUser
- type Idea
- type IdeaRequest
- type JoinTeamRequest
- type KickMemberRequest
- type LoginRequest
- type Project
- type ProjectRequest
- type ResendOTPRequest
- type ResetPasswordRequest
- type SelectIdeaRequest
- type Team
- type TeamReview
- type TeamReviewRequest
- type UpdateIdeaRequest
- type UpdateProjectRequest
- type UpdateTeamReviewRequest
- type UpdateUserRequest
- type User
- type UserDetails
- type VITDetails
- type VerifyUserRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminGetIdea ¶
type AdminGetProject ¶
type AdminGetTeam ¶
type AdminGetTeamUser ¶
type AdminUser ¶
type AdminUser struct { ID uuid.UUID `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` RegNo string `json:"reg_no"` Email string `json:"email"` Password string `json:"-"` Phone string `json:"phone_number"` College string `json:"college"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` Gender string `json:"gender"` Role string `json:"role"` IsBanned bool `json:"is_banned"` IsAdded bool `json:"is_added"` IsVitian bool `json:"is_vitian"` IsVerified bool `json:"is_verified"` IsLeader bool `json:"is_leader"` IsProfileComplete bool `json:"is_profile_complete"` TeamID uuid.UUID `json:"team_id"` }
type CompleteUserRequest ¶
type CompleteUserRequest struct { FirstName string `json:"first_name" validate:"required,min=1,max=20"` LastName string `json:"last_name" validate:"required,min=1,max=20"` PhoneNumber string `json:"phone_number" validate:"required,min=10"` Gender string `json:"gender" validate:"required"` IsVitian *bool `json:"is_vitian" validate:"required"` VitEmail string `json:"vit_email,omitempty" validate:"omitempty,email"` HostelBlock string `json:"block"` HostelRoom string `json:"room"` College string `json:"college"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` RegNo string `json:"reg_no" validate:"required"` }
type CreateTeamRequest ¶
type CreateTeamRequest struct {
Name string `json:"name" validate:"required,min=1,max=50"`
}
type CreateUserRequest ¶
type ForgotPasswordRequest ¶
type ForgotPasswordRequest struct {
Email string `json:"email" validate:"required,email"`
}
type GetAdminUser ¶
type IdeaRequest ¶
type IdeaRequest struct { Title string `json:"title" validate:"required,min=1,max=50"` Description string `json:"description" validate:"required,min=50,max=2500"` Track string `json:"track" validate:"required"` Github string `json:"github_link,omitempty" validate:"omitempty,url"` Figma string `json:"figma_link,omitempty" validate:"omitempty,url"` Others string `json:"others"` }
type JoinTeamRequest ¶
type JoinTeamRequest struct {
Code string `json:"code" validate:"required,min=1,max=6"`
}
type KickMemberRequest ¶
type KickMemberRequest struct {
UserID string `json:"id" validate:"required"`
}
type LoginRequest ¶
type ProjectRequest ¶
type ProjectRequest struct { Name string `json:"name" validate:"required,min=1,max=50"` Description string `json:"description" validate:"required,min=50,max=2500"` Track string `json:"track" validate:"required"` GithubLink string `json:"github_link" validate:"omitempty,url"` FigmaLink string `json:"figma_link" validate:"omitempty,url"` Others string `json:"others"` }
type ResendOTPRequest ¶
type ResetPasswordRequest ¶
type SelectIdeaRequest ¶
type TeamReview ¶
type TeamReview struct { ID uuid.UUID `json:"id"` TeamID uuid.UUID `json:"team_id"` Reviewer string `json:"reviewer"` InnovationScore float64 `json:"innovation_and_creativity"` FunctionalityScore float64 `json:"functionality_and_completeness"` DesignScore float64 `json:"ui_and_design"` TechScore float64 `json:"techincal_implementation"` PresentationScore float64 `json:"presentation_and_communication"` ReviewRound int `json:"review_round"` Comments string `json:"comments"` TotalScore float64 `json:"total_score"` }
type TeamReviewRequest ¶
type TeamReviewRequest struct { TeamID uuid.UUID `json:"team_id" validate:"required,uuid"` Reviewer string `json:"reviewer" validate:"required"` InnovationScore float64 `json:"innovation_and_creativity" validate:"required"` FunctionalityScore float64 `json:"functionality_and_completeness" validate:"required"` DesignScore float64 `json:"ui_and_design" validate:"required"` TechScore float64 `json:"techincal_implementation" validate:"required"` PresentationScore float64 `json:"presentation_and_communication" validate:"required"` ReviewRound int `json:"review_round" validate:"required"` Comments string `json:"comments"` }
type UpdateIdeaRequest ¶
type UpdateIdeaRequest struct { Title string `json:"title,omitempty" validate:"omitempty,min=1,max=50"` Description string `json:"description,omitempty" validate:"omitempty,min=50,max=2500"` Track string `json:"track,omitempty"` Github string `json:"github_link,omitempty" validate:"omitempty,url"` Figma string `json:"figma_link,omitempty" validate:"omitempty,url"` Others string `json:"others,omitempty"` }
type UpdateProjectRequest ¶
type UpdateProjectRequest struct { Name string `json:"name" validate:"omitempty,min=1,max=50"` Description string `json:"description" validate:"omitempty,min=50,max=2500"` Track string `json:"track"` GithubLink string `json:"github_link" validate:"omitempty,url"` FigmaLink string `json:"figma_link" validate:"omitempty,url"` Others string `json:"others"` }
type UpdateTeamReviewRequest ¶
type UpdateTeamReviewRequest struct { ID uuid.UUID `json:"id" validate:"required,uuid"` Reviewer string `json:"reviewer"` InnovationScore *float64 `json:"innovation_and_creativity,omitempty"` FunctionalityScore *float64 `json:"functionality_and_completeness,omitempty"` DesignScore *float64 `json:"ui_and_design,omitempty"` TechScore *float64 `json:"techincal_implementation,omitempty"` PresentationScore *float64 `json:"presentation_and_communication,omitempty"` ReviewRound *int `json:"review_round,omitempty"` Comments string `json:"comments"` }
type UpdateUserRequest ¶
type UpdateUserRequest struct { FirstName string `json:"first_name,omitempty" validate:"omitempty,min=1,max=20"` LastName string `json:"last_name,omitempty" validate:"omitempty,min=1,max=20"` PhoneNumber string `json:"phone_number,omitempty" validate:"omitempty,min=10"` Gender string `json:"gender,omitempty" validate:"omitempty"` VitEmail string `json:"vit_email,omitempty" validate:"omitempty"` HostelBlock string `json:"block,omitempty" validate:"omitempty"` College string `json:"college,omitempty" validate:"omitempty"` City string `json:"city,omitempty" validate:"omitempty"` State string `json:"state,omitempty" validate:"omitempty"` Country string `json:"country,omitempty" validate:"omitempty"` RegNo string `json:"reg_no,omitempty" validate:"omitempty"` Room string `json:"room,omitempty" validate:"omitempty"` }
type User ¶
type User struct { ID uuid.UUID `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` RegNo string `json:"reg_no"` Email string `json:"email"` Password string `json:"-"` Phone string `json:"phone_number"` College string `json:"college"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` Gender string `json:"gender"` Role string `json:"role"` IsBanned bool `json:"-"` IsAdded bool `json:"-"` IsVitian bool `json:"-"` IsVerified bool `json:"-"` IsLeader bool `json:"is_leader"` IsProfileComplete bool `json:"-"` TeamID uuid.UUID `json:"team_id"` }
type UserDetails ¶
type UserDetails struct { User VITDetails }
type VITDetails ¶
type VerifyUserRequest ¶
Click to show internal directories.
Click to hide internal directories.