requests

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLaboratoryRequest

type CreateLaboratoryRequest struct {
	CourseUUID  string `json:"course_uuid" validate:"required,uuid4"`
	Name        string `json:"name" validate:"required,min=4,max=255"`
	OpeningDate string `json:"opening_date" validate:"required,ISO_date"`
	DueDate     string `json:"due_date" validate:"required,ISO_date"`
}

func (*CreateLaboratoryRequest) ToDTO

func (request *CreateLaboratoryRequest) ToDTO(teacherUUID string) *dtos.CreateLaboratoryDTO

type CreateTestBlockRequest added in v0.36.0

type CreateTestBlockRequest struct {
	LaboratoryUUID string `validate:"required,uuid4"`
	LanguageUUID   string `validate:"required,uuid4"`
	Name           string `validate:"required,min=4,max=255"`
}

type UpdateLaboratoryRequest added in v0.30.0

type UpdateLaboratoryRequest struct {
	Name        string  `json:"name" validate:"required,min=4,max=255"`
	OpeningDate string  `json:"opening_date" validate:"required,ISO_date"`
	DueDate     string  `json:"due_date" validate:"required,ISO_date"`
	RubricUUID  *string `json:"rubric_uuid,omitempty" validate:"omitempty,uuid4"`
}

func (*UpdateLaboratoryRequest) ToDTO added in v0.30.0

func (request *UpdateLaboratoryRequest) ToDTO(laboratoryUUID string, teacherUUID string) *dtos.UpdateLaboratoryDTO

Jump to

Keyboard shortcuts

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