activity: route to show activity activity log

filterable by type, sortable by time, and paginated.
This commit is contained in:
Harvey Tindall
2023-10-19 22:10:42 +01:00
parent 9d1c7bba6f
commit df1581d48e
5 changed files with 171 additions and 0 deletions

View File

@@ -430,3 +430,25 @@ type GetMyReferralRespDTO struct {
type EnableDisableReferralDTO struct {
Users []string `json:"users"`
}
type ActivityDTO struct {
ID string `json:"id"`
Type string `json:"type"`
UserID string `json:"user_id"`
SourceType string `json:"source_type"`
Source string `json:"source"`
InviteCode string `json:"invite_code"`
Value string `json:"value"`
Time int64 `json:"time"`
}
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 GetActivitiesRespDTO struct {
Activities []ActivityDTO `json:"activities"`
}