merge create and update playlist
This commit is contained in:
@@ -4,8 +4,10 @@ import "senan.xyz/g/gonic/model"
|
||||
|
||||
func NewPlaylist(p *model.Playlist) *Playlist {
|
||||
return &Playlist{
|
||||
ID: p.ID,
|
||||
Name: p.Name,
|
||||
Comment: p.Comment,
|
||||
ID: p.ID,
|
||||
Name: p.Name,
|
||||
Comment: p.Comment,
|
||||
Duration: "1",
|
||||
Public: true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user