fix: delete ListLatest(func)
This commit is contained in:
@@ -34,14 +34,6 @@ func (vs *VideoService) ListByAuthorID(ctx context.Context, authorID uint) ([]Vi
|
||||
return videos, nil
|
||||
}
|
||||
|
||||
func (vs *VideoService) ListLatest(ctx context.Context) ([]Video, error) {
|
||||
videos, err := vs.repo.ListLatest(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return videos, nil
|
||||
}
|
||||
|
||||
func (vs *VideoService) GetDetail(ctx context.Context, id uint) (*Video, error) {
|
||||
video, err := vs.repo.GetByID(ctx, id)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user