|
@ -12,7 +12,6 @@ type Filter struct { |
|
|
Names []string `json:"names"` |
|
|
Names []string `json:"names"` |
|
|
Author *string `json:"author"` |
|
|
Author *string `json:"author"` |
|
|
Search *string `json:"search"` |
|
|
Search *string `json:"search"` |
|
|
Logged *bool `json:"logged"` |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// List lists all characters
|
|
|
// List lists all characters
|
|
@ -44,10 +43,6 @@ func List(filter *Filter) ([]models.Character, error) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if filter.Logged != nil { |
|
|
|
|
|
query["logged"] = *filter.Logged |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if filter.Author != nil { |
|
|
if filter.Author != nil { |
|
|
query["author"] = *filter.Author |
|
|
query["author"] = *filter.Author |
|
|
} |
|
|
} |
|
|