models

package
v0.0.0-...-b185ea6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: GPL-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 Filemedia

type Filemedia struct {
	Id   primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Name string             `json:"filename" bson:"filename"`
}

type Media

type Media struct {
	Id primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	//	Userid bson.ObjectId `json:"userid" bson:"userid"`
	Gridfsid    string           `json:"gridfsid" bson:"gridfsid"`
	Name        string           `json:"name" bson:"name"`
	Category    string           `json:"category" bson:"category"`
	Tag         string           `json:"tag" bson:"tag"`
	Tags        []string         `json:"tag" bson:"tags"`
	Size        int64            `json:"size" bson:"size"`
	TSize       string           `json:"tsize" bson:"tsize"`
	Description string           `json:"description" bson:"description"`
	Submedia    []*Submedia      `json:"submedia"`
	Thumbnail   primitive.Binary `json:"thumbnail" bson:"thumbnail"`
	Ext         string           `json:"ext" bson:"ext"`
	Mime        string           `json:"mime" bson:"mime"`
}

type Submedia

type Submedia struct {
	Id       primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Fatherid string             `json:"fatherid" bson:"fatherid"`
	Gridfsid string             `json:"gridfsid" bson:"gridfsid"`
	Name     string             `json:"name" bson:"name"`
	Size     int                `json:"size" bson:"size"`
	TSize    string             `json:"tsize" bson:"tsize"`
	Ext      string             `json:"ext" bson:"ext"`
	Mime     string             `json:"mime" bson:"mime"`
}

type Tag

type Tag struct {
	Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
	//Jobid bson.ObjectId `json:"jobid" bson:"jobid"`
	//	Userid bson.ObjectId `json:"userid" bson:"userid"`
	Name string `json:"name" bson:"name"`
}

type User

type User struct {
	Id        bson.ObjectId `json:"id" bson:"_id"`
	Token     string        `json:"token" bson:"token"`
	Validated string        `json:"validated" bson:"validated"`
	Nickname  string        `json:"nickname" bson:"nickname"`
	Email     string        `json:"email" bson:"email"`
}

User represents the structure of our resource

Jump to

Keyboard shortcuts

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