model

package
v0.0.0-...-e7a1876 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exam

type Exam struct {
	UUID          uuid.UUID `gorm:"type:uuid;primary_key;" json:"ID,omitempty"`
	Subject       string    `json:"subject"`
	ModuleName    string    `json:"moduleName"`
	URL           string    `json:"url"`
	ModuleAltName *string   `json:"moduleAltName"`
	Year          *int      `json:"year"`
	Examiners     *string   `json:"examiners"`
	Semester      *string   `json:"semester"`
}

func (*Exam) BeforeCreate

func (exam *Exam) BeforeCreate(db *gorm.DB) error

BeforeCreate will set a UUID rather than numeric ID. taken from https://github.com/FachschaftMathPhysInfo/ostseee/blob/master/server/go/model_base.go

type NewExam

type NewExam struct {
	Subject       string         `json:"subject"`
	ModuleName    string         `json:"moduleName"`
	File          graphql.Upload `json:"file"`
	ModuleAltName *string        `json:"moduleAltName"`
	Year          *int           `json:"year"`
	Examiners     *string        `json:"examiners"`
	Semester      *string        `json:"semester"`
}

type PresignedReturn

type PresignedReturn struct {
	ViewURL     string `json:"viewUrl"`
	DownloadURL string `json:"downloadUrl"`
}

Jump to

Keyboard shortcuts

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