activity: allow multiple types in route filter

This commit is contained in:
Harvey Tindall
2023-10-19 22:44:27 +01:00
parent df1581d48e
commit 5a0677bac8
4 changed files with 99 additions and 7 deletions

View File

@@ -443,10 +443,10 @@ type ActivityDTO struct {
}
type GetActivitiesDTO struct {
Type string `json:"type"` // Type of activity to get. Leave blank for all.
Limit int `json:"limit"`
Page int `json:"page"` // zero-indexed
Ascending bool `json:"ascending"`
Type []string `json:"type"` // Types of activity to get. Leave blank for all.
Limit int `json:"limit"`
Page int `json:"page"` // zero-indexed
Ascending bool `json:"ascending"`
}
type GetActivitiesRespDTO struct {