16 lines
518 B
Go
16 lines
518 B
Go
package models
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
// CreatePlaylistRequest represents a request to create a playlist
|
|
type CreatePlaylistRequest struct {
|
|
Name string `json:"name" binding:"required,min=1,max=255"`
|
|
Description string `json:"description"`
|
|
IsPublic bool `json:"is_public"`
|
|
}
|
|
|
|
// AddTrackToPlaylistRequest represents a request to add a track to a playlist
|
|
type AddTrackToPlaylistRequest struct {
|
|
TrackID uuid.UUID `json:"track_id" binding:"required"`
|
|
Position *int `json:"position"`
|
|
}
|