32 lines
534 B
Go
32 lines
534 B
Go
package audiobooksearcher
|
|
|
|
import (
|
|
"91porn-server/app/service/searcher"
|
|
"91porn-server/models/v/audiobookmod"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type ObjectID = primitive.ObjectID
|
|
|
|
type Result struct {
|
|
dat []audiobookmod.AudioBookAppRes
|
|
hasNext bool
|
|
}
|
|
|
|
func (*Result) Types() searcher.ResultTypes {
|
|
return searcher.LouFengSearchResult
|
|
}
|
|
|
|
func (r *Result) Data() interface{} {
|
|
return r.dat
|
|
}
|
|
|
|
func (r *Result) Count() int64 {
|
|
return int64(len(r.dat))
|
|
}
|
|
|
|
func (r *Result) HasNext() bool {
|
|
return r.hasNext
|
|
}
|