models

package
v0.0.0-...-094ba9a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 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 SongDTO

type SongDTO struct {
	Artist string             `json:"artist,omitempty" bson:"artist,omitempty"`
	Id     primitive.ObjectID `json:"id" bson:"_id" binding:"required"`
	Title  string             `json:"title,omitempty" bson:"title,omitempty"`
	Year   int                `json:"year,omitempty" bson:"year,omitempty"`
}

type SongQuery

type SongQuery struct {
	Artist string `json:"artist,omitempty" bson:"artist,omitempty"`
	Album  string `json:"album,omitempty" bson:"album,omitempty"`
	Genre  string `json:"genre,omitempty" bson:"genre,omitempty"`
	Title  string `json:"title,omitempty" bson:"title,omitempty"`
}

type SongsFilterResponse

type SongsFilterResponse struct {
	Id     string `json:"id,omitempty" bson:"id,omitempty"`
	Artist string `json:"artist,omitempty" bson:"artist,omitempty"`
	Album  string `json:"album,omitempty" bson:"album,omitempty"`
	Genre  string `json:"genre,omitempty" bson:"genre,omitempty"`
	Title  string `json:"title,omitempty" bson:"title,omitempty"`
}

Jump to

Keyboard shortcuts

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