models

package
v0.0.0-...-4c03c20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL