Files
juwan-backend/app/search/api/internal/logic/search/helpers.go
T
2026-04-24 13:24:58 +08:00

18 lines
310 B
Go

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,
},
}
}