model

package
v0.0.0-...-d259e94 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description *string   `json:"description"`
	Courses     []*Course `json:"courses"`
}

type Chapter

type Chapter struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description *string   `json:"description"`
	Category    *Category `json:"category"`
}

type Course

type Course struct {
	ID          string     `json:"id"`
	Name        string     `json:"name"`
	Description *string    `json:"description"`
	Category    *Category  `json:"category"`
	Courses     []*Chapter `json:"courses"`
}

type NewCategory

type NewCategory struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type NewChapter

type NewChapter struct {
	Name     string `json:"name"`
	CourseID string `json:"courseID"`
}

type NewCourse

type NewCourse struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	CategoryID  string `json:"categoryID"`
}

Jump to

Keyboard shortcuts

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