add basic playlist
This commit is contained in:
11
server/ctrlsubsonic/spec/construct.go
Normal file
11
server/ctrlsubsonic/spec/construct.go
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user