This commit is contained in:
@@ -16,9 +16,9 @@ func NewSportService(repo *repository.SportRepository) *SportService {
|
||||
return service
|
||||
}
|
||||
|
||||
func (service *SportService) List(context context.Context) ([]models.Sport, error) {
|
||||
func (service *SportService) List(context context.Context) ([]models.Sport, int64, error) {
|
||||
slog.Info("SportService#List")
|
||||
return service.repository.FindAll(context)
|
||||
return service.repository.FindAll(1, 10, context)
|
||||
}
|
||||
|
||||
func (service *SportService) Get(context context.Context, id string) (models.Sport, error) {
|
||||
|
||||
Reference in New Issue
Block a user