add nextLogs and prevLogs suggestions to log.

This commit is contained in:
2020-08-09 15:35:49 +02:00
parent 757b0bc616
commit 47b7877ab4
7 changed files with 146 additions and 0 deletions
+10
View File
@@ -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
}