completed adding MediaLofi for kontor-gin
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -21,11 +21,16 @@ func (service *MediaActorService) List(context context.Context) ([]models.MediaA
|
||||
return service.repository.FindAll(context)
|
||||
}
|
||||
|
||||
func (service *MediaActorService) Get(context context.Context, id string) (models.MediaActor, error) {
|
||||
func (service *MediaActorService) Get(context context.Context, id string) (*models.MediaActor, error) {
|
||||
slog.Info("MediaActorService#Get")
|
||||
return service.repository.GetById(context, id)
|
||||
}
|
||||
|
||||
func (service *MediaActorService) Add(context context.Context, url string) (*models.MediaActor, error) {
|
||||
slog.Info("MediaActorService#Add")
|
||||
return service.repository.Add(context, url)
|
||||
}
|
||||
|
||||
func (service *MediaActorService) Delete(context context.Context, id string) error {
|
||||
slog.Info("MediaActorService#Delete")
|
||||
return service.repository.Delete(context, id)
|
||||
|
||||
Reference in New Issue
Block a user