add templates media_links.html and media_detail.html for kontor-gin
This commit is contained in:
@@ -20,3 +20,23 @@ func (service *MediaVideoService) List(context context.Context) ([]models.MediaV
|
||||
slog.Info("MediaVideoService#List")
|
||||
return service.repository.FindAll(context)
|
||||
}
|
||||
|
||||
func (service *MediaVideoService) Get(context context.Context, id string) (*models.MediaVideo, error) {
|
||||
slog.Info("MediaVideoService#Get")
|
||||
return service.repository.GetById(context, id)
|
||||
}
|
||||
|
||||
func (service *MediaVideoService) Add(context context.Context, url string) (*models.MediaVideo, error) {
|
||||
slog.Info("MediaVideoService#Add")
|
||||
return service.repository.Add(context, url)
|
||||
}
|
||||
|
||||
func (service *MediaVideoService) Update(context context.Context, music models.MediaVideoDTO) (*models.MediaVideo, error) {
|
||||
slog.Info("MediaVideoService#Update")
|
||||
return service.repository.Update(context, music)
|
||||
}
|
||||
|
||||
func (service *MediaVideoService) Delete(context context.Context, id string) error {
|
||||
slog.Info("MediaVideoService#Delete")
|
||||
return service.repository.Delete(context, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user