add basic playlist

This commit is contained in:
sentriz
2019-11-24 15:21:58 +00:00
parent 3b240fccb0
commit 6193f1b37d
6 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package spec
import "senan.xyz/g/gonic/model"
func NewPlaylist(p *model.Playlist) *Playlist {
return &Playlist{
ID: p.ID,
Name: p.Name,
Comment: p.Comment,
}
}