Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatRequest ¶
type FormatRequest struct {
DriveName string `json:"drive"`
}
Response represents a response to a submission endpoint
type IndexStatusReq ¶
type IndexStatusReq struct {
Name string `json:"name"`
}
Response represents a response to a submission endpoint
type Login ¶
type Login struct {
Password string `json:"password"`
}
Login represents a login request
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
LoginResponse represents a login response
type RequestSubmission ¶
type RequestSubmission struct { Name string `json:"name"` Notes string `json:"notes"` Articles []string `json:"articles"` }
RequestSubmission represents a students request
type RequestUpdate ¶
type RequestUpdate struct { RequestID int `json:"requestID"` ArticleID string `json:"articleID"` Status database.ArticleStatus `json:"status"` }
RequestUpdate represents an admin request to update a request to change its status
type Response ¶
type Response struct { Code int32 `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` }
Response represents a response to a submission endpoint
type SyncRequest ¶
type SyncRequest struct { Indices map[string]struct { IncludeContent bool `json:"includeContent"` } `json:"indices"` }
Response represents a response to a submission endpoint
Click to show internal directories.
Click to hide internal directories.