models

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 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 Category

type Category struct {
	ID     primitive.ObjectID `bson:"_id" json:"id" example:"000000000000000000000000"`
	Titulo string             `bson:"titulo" json:"titulo" example:"Example category"`
	Cor    string             `bson:"cor" json:"cor" example:"Red"`
	Active bool               `bson:"active" json:"active" example:"true"`
}

Category represents a model of categories

func GetFreeCategory

func GetFreeCategory() *Category

type Video

type Video struct {
	ID         primitive.ObjectID `bson:"_id" json:"id" example:"000000000000000000000000"`
	CategoryID primitive.ObjectID `bson:"category_id" json:"categoriaID" example:"000000000000000000000000"`
	Titulo     string             `bson:"titulo" json:"titulo" example:"Example video"`
	Descricao  string             `bson:"descricao" json:"descricao" example:"Example description"`
	Url        string             `bson:"url" json:"url" example:"https://www.example-url.com"`
	Active     bool               `bson:"active" json:"active" example:"true"`
}

Video represents a model of videos

Jump to

Keyboard shortcuts

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