Documentation
¶
Overview ¶
Package datagsm defines shared DataGSM models. Use openapi, oauth, and event for API access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Club ¶
type Club struct {
ID int64 `json:"id"`
Name string `json:"name"`
Type ClubType `json:"type"`
Status ClubStatus `json:"status"`
FoundedYear int `json:"foundedYear"`
AbolishedYear *int `json:"abolishedYear"`
Leader *ParticipantInfo `json:"leader"`
Participants []ParticipantInfo `json:"participants"`
}
type ClubSortBy ¶
type ClubSortBy string
const ( ClubSortByID ClubSortBy = "ID" ClubSortByName ClubSortBy = "NAME" ClubSortByType ClubSortBy = "TYPE" ClubSortByFoundedYear ClubSortBy = "FOUNDED_YEAR" ClubSortByStatus ClubSortBy = "STATUS" )
type ClubStatus ¶
type ClubStatus string
const ( ClubStatusActive ClubStatus = "ACTIVE" ClubStatusAbolished ClubStatus = "ABOLISHED" )
type ClubSummary ¶
type ParticipantInfo ¶
type Project ¶
type Project struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
StartYear int `json:"startYear"`
EndYear *int `json:"endYear"`
Status ProjectStatus `json:"status"`
Categories []ProjectCategory `json:"categories"`
IconURL *string `json:"iconUrl"`
IconKey *string `json:"iconKey"`
DeploymentURL *string `json:"deploymentUrl"`
Repositories []string `json:"repositories"`
TechStacks []string `json:"techStacks"`
Club *ClubSummary `json:"club"`
Participants []ParticipantInfo `json:"participants"`
}
type ProjectCategory ¶
type ProjectCategory string
const ( ProjectCategoryToy ProjectCategory = "TOY_PROJECT" ProjectCategoryTeam ProjectCategory = "TEAM" ProjectCategoryClub ProjectCategory = "CLUB" ProjectCategoryIdeaFestival ProjectCategory = "IDEA_FESTIVAL" ProjectCategoryNotDeployed ProjectCategory = "NOT_DEPLOYED" )
type ProjectSortBy ¶
type ProjectSortBy string
const ( ProjectSortByID ProjectSortBy = "ID" ProjectSortByName ProjectSortBy = "NAME" )
type ProjectStatus ¶
type ProjectStatus string
const ( ProjectStatusActive ProjectStatus = "ACTIVE" ProjectStatusEnded ProjectStatus = "ENDED" )
type SortDirection ¶
type SortDirection string
const ( SortDirASC SortDirection = "ASC" SortDirDESC SortDirection = "DESC" )
type Student ¶
type Student struct {
ID int64 `json:"id"`
Name string `json:"name"`
Sex Sex `json:"sex"`
Email string `json:"email"`
Grade *int `json:"grade"`
ClassNum *int `json:"classNum"`
Number *int `json:"number"`
StudentNumber *int `json:"studentNumber"`
Major *Major `json:"major"`
Specialty *string `json:"specialty"`
Role StudentRole `json:"role"`
DormitoryFloor *int `json:"dormitoryFloor"`
DormitoryRoom *int `json:"dormitoryRoom"`
MajorClub *ClubSummary `json:"majorClub"`
AutonomousClub *ClubSummary `json:"autonomousClub"`
GitHubID *string `json:"githubId"`
GitHubURL *string `json:"githubUrl"`
}
type StudentRole ¶
type StudentRole string
const ( StudentRoleGeneralStudent StudentRole = "GENERAL_STUDENT" StudentRoleStudentCouncil StudentRole = "STUDENT_COUNCIL" StudentRoleDormitoryManager StudentRole = "DORMITORY_MANAGER" StudentRoleGraduate StudentRole = "GRADUATE" StudentRoleWithdrawn StudentRole = "WITHDRAWN" )
type StudentSortBy ¶
type StudentSortBy string
const ( StudentSortByID StudentSortBy = "ID" StudentSortByName StudentSortBy = "NAME" StudentSortByEmail StudentSortBy = "EMAIL" StudentSortByStudentNumber StudentSortBy = "STUDENT_NUMBER" StudentSortByGrade StudentSortBy = "GRADE" StudentSortByClassNum StudentSortBy = "CLASS_NUM" StudentSortByNumber StudentSortBy = "NUMBER" StudentSortByMajor StudentSortBy = "MAJOR" StudentSortByRole StudentSortBy = "ROLE" StudentSortBySex StudentSortBy = "SEX" StudentSortByDormitoryRoom StudentSortBy = "DORMITORY_ROOM" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package event verifies and decodes DataGSM webhook events.
|
Package event verifies and decodes DataGSM webhook events. |
|
examples
|
|
|
openapi
command
|
|
|
internal
|
|
|
Package oauth implements DataGSM OAuth 2.0 and OpenID Connect.
|
Package oauth implements DataGSM OAuth 2.0 and OpenID Connect. |
|
Package openapi provides DataGSM data queries and administrative writes.
|
Package openapi provides DataGSM data queries and administrative writes. |
Click to show internal directories.
Click to hide internal directories.