mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-11 12:48:12 +08:00
rewrite
This commit is contained in:
24
core/events/search.go
Normal file
24
core/events/search.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package events
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/model"
|
||||
)
|
||||
|
||||
const SearchCmd = "cmd.search"
|
||||
|
||||
type SearchCmdEvent struct {
|
||||
Keyword string
|
||||
Provider string
|
||||
}
|
||||
|
||||
const SearchResultUpdate = "update.search_result"
|
||||
|
||||
type SearchResultUpdateEvent struct {
|
||||
Medias []model.Media
|
||||
}
|
||||
|
||||
const SearchProviderUpdate = "update.search.provider.update"
|
||||
|
||||
type SearchProviderUpdateEvent struct {
|
||||
Providers []string
|
||||
}
|
||||
Reference in New Issue
Block a user