package search

import "juwan-backend/app/search/api/internal/types"

func emptySearchResp(offset, limit int64) *types.SearchResp {
	if limit <= 0 {
		limit = 20
	}
	return &types.SearchResp{
		Items: make([]interface{}, 0),
		Meta: types.PageMeta{
			Total:  0,
			Offset: offset,
			Limit:  limit,
		},
	}
}
