dtos

package
v0.53.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLaboratoryDTO

type CreateLaboratoryDTO struct {
	TeacherUUID string
	CourseUUID  string
	Name        string
	OpeningDate time.Time
	DueDate     time.Time
}

type CreateMarkdownBlockDTO added in v0.32.0

type CreateMarkdownBlockDTO struct {
	TeacherUUID    string
	LaboratoryUUID string
}

type CreateTestBlockDTO added in v0.36.0

type CreateTestBlockDTO struct {
	TeacherUUID     string
	LaboratoryUUID  string
	LanguageUUID    string
	TestArchiveUUID string
	Name            string
	MultipartFile   *multipart.File
}

type GetLaboratoryDTO added in v0.31.0

type GetLaboratoryDTO struct {
	LaboratoryUUID string
	UserUUID       string
	UserRole       string
}

type GetLaboratoryProgressDTO added in v0.44.0

type GetLaboratoryProgressDTO struct {
	LaboratoryUUID string
	TeacherUUID    string
}

type GetProgressOfStudentInLaboratoryDTO added in v0.53.0

type GetProgressOfStudentInLaboratoryDTO struct {
	UserUUID       string
	UserRole       string
	LaboratoryUUID string
	StudentUUID    string
}

type LaboratoryDetailsDTO added in v0.45.0

type LaboratoryDetailsDTO struct {
	UUID        string  `json:"uuid"`
	CourseUUID  string  `json:"-"`
	RubricUUID  *string `json:"rubric_uuid"`
	Name        string  `json:"name"`
	OpeningDate string  `json:"opening_date"`
	DueDate     string  `json:"due_date"`
}

type LaboratoryProgressDTO added in v0.44.0

type LaboratoryProgressDTO struct {
	TotalTestBlocks  int                             `json:"total_test_blocks"`
	StudentsProgress []*SummarizedStudentProgressDTO `json:"students_progress"`
}

type StudentProgressInLaboratoryDTO added in v0.53.0

type StudentProgressInLaboratoryDTO struct {
	TotalTestBlocks    int                               `json:"total_test_blocks"`
	StudentSubmissions []*SummarizedStudentSubmissionDTO `json:"submissions"`
}

type SummarizedStudentProgressDTO added in v0.53.0

type SummarizedStudentProgressDTO struct {
	StudentUUID        string `json:"student_uuid"`
	StudentFullName    string `json:"student_full_name"`
	PendingSubmissions int    `json:"pending_submissions"`
	RunningSubmissions int    `json:"running_submissions"`
	FailingSubmissions int    `json:"failing_submissions"`
	SuccessSubmissions int    `json:"success_submissions"`
}

type SummarizedStudentSubmissionDTO added in v0.53.0

type SummarizedStudentSubmissionDTO struct {
	SubmissionUUID        string `json:"uuid"`
	SubmissionArchiveUUID string `json:"archive_uuid"`
	TestBlockName         string `json:"test_block_name"`
	SubmissionStatus      string `json:"status"`
	IsSubmissionPassing   bool   `json:"is_passing"`
}

type UpdateLaboratoryDTO added in v0.30.0

type UpdateLaboratoryDTO struct {
	LaboratoryUUID string
	TeacherUUID    string
	RubricUUID     *string
	Name           string
	OpeningDate    time.Time
	DueDate        time.Time
}

Jump to

Keyboard shortcuts

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