WithTopK 限制返回数量
(k int)
| 142 | |
| 143 | // WithTopK 限制返回数量 |
| 144 | func WithTopK(k int) Filter { |
| 145 | return func(opts *FilterOptions) { |
| 146 | opts.MaxResults = k |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // WithOrderBy 指定排序方式 |
| 151 | func WithOrderBy(orderBy OrderBy) Filter { |
no outgoing calls