K8s: Implement playlist api with k8s client (#77405)

This commit is contained in:
Ryan McKinley
2023-10-31 10:26:39 -07:00
committed by GitHub
parent 254648b96b
commit dd773e74f1
15 changed files with 294 additions and 53 deletions

View File

@@ -47,6 +47,9 @@ type PlaylistDTO struct {
// Returned for k8s
OrgID int64 `json:"-"`
// Returned for k8s and added as an annotation
Id int64 `json:"-"`
}
type PlaylistItemDTO struct {

View File

@@ -68,6 +68,7 @@ func (s *Service) Get(ctx context.Context, q *playlist.GetPlaylistByUidQuery) (*
}
}
return &playlist.PlaylistDTO{
Id: v.Id,
Uid: v.UID,
Name: v.Name,
Interval: v.Interval,