Merge branch 'dev' of github.com:rede5/gohorsejobs into dev

This commit is contained in:
Marcus Bohessef 2025-12-22 21:12:29 -03:00
commit 939df51412

View file

@ -5,6 +5,7 @@ import (
"github.com/rede5/gohorsejobs/backend/internal/core/dto"
"github.com/rede5/gohorsejobs/backend/internal/core/ports"
apidto "github.com/rede5/gohorsejobs/backend/internal/dto"
)
type ListUsersUseCase struct {
@ -17,7 +18,7 @@ func NewListUsersUseCase(uRepo ports.UserRepository) *ListUsersUseCase {
}
}
func (uc *ListUsersUseCase) Execute(ctx context.Context, tenantID string, page, limit int) (*dto.PaginatedResponse, error) {
func (uc *ListUsersUseCase) Execute(ctx context.Context, tenantID string, page, limit int) (*apidto.PaginatedResponse, error) {
if page <= 0 {
page = 1
}
@ -54,9 +55,9 @@ func (uc *ListUsersUseCase) Execute(ctx context.Context, tenantID string, page,
})
}
return &dto.PaginatedResponse{
return &apidto.PaginatedResponse{
Data: response,
Pagination: dto.Pagination{
Pagination: apidto.Pagination{
Page: page,
Limit: limit,
Total: total,