add nextLogs and prevLogs suggestions to log.
This commit is contained in:
@@ -15,6 +15,14 @@ type Log struct {
|
||||
CharacterIDs []string `bson:"characterIds"`
|
||||
}
|
||||
|
||||
// A LogSuggestion is a suggestion for a log.
|
||||
type LogSuggestion struct {
|
||||
Log *Log
|
||||
Characters []*Character
|
||||
HasChannel bool
|
||||
HasEvent bool
|
||||
}
|
||||
|
||||
// IsChangeObject is an interface implementation to identify it as a valid
|
||||
// ChangeObject in GQL.
|
||||
func (*Log) IsChangeObject() {
|
||||
@@ -28,6 +36,8 @@ type LogFilter struct {
|
||||
Characters []string
|
||||
Channels []string
|
||||
Events []string
|
||||
MinDate *time.Time
|
||||
MaxDate *time.Time
|
||||
Limit int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user