merge create and update playlist

This commit is contained in:
sentriz
2019-11-24 23:09:36 +00:00
parent cca60fbb89
commit 48397b7291
6 changed files with 71 additions and 29 deletions

View File

@@ -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,
}
}