models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 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"`
	Titulo string             `bson:"titulo" json:"titulo"`
	Cor    string             `bson:"cor" json:"cor"`
	Active bool               `bson:"active" json:"active"`
}

func GetFreeCategory

func GetFreeCategory() *Category

type Video

type Video struct {
	ID         primitive.ObjectID `bson:"_id" json:"id"`
	CategoryID primitive.ObjectID `bson:"category_id" json:"categoriaID"`
	Titulo     string             `bson:"titulo" json:"titulo"`
	Descricao  string             `bson:"descricao" json:"descricao"`
	Url        string             `bson:"url" json:"url"`
	Active     bool               `bson:"active" json:"active"`
}

Jump to

Keyboard shortcuts

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