14 lines
216 B
Go
14 lines
216 B
Go
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,
|
|
Duration: "1",
|
|
Public: true,
|
|
}
|
|
}
|