Simplify everything

This commit is contained in:
2024-07-14 14:59:12 +02:00
parent 4fd836c0b6
commit 468de9e401
4 changed files with 84 additions and 159 deletions

View File

@@ -1,25 +1,8 @@
package main
type APIResponse struct {
Page int `json:"page"`
PerPage int `json:"perPage"`
TotalItems int `json:"totalItems"`
TotalPages int `json:"totalPages"`
Items []APIItem `json:"items"`
}
type APIItem struct {
CollectionId string `json:"collectionId"`
CollectionName string `json:"collectionName"`
Created string `json:"created"`
Downloaded bool `json:"downloaded"`
Id string `json:"id"`
Link string `json:"link"`
Updated string `json:"updated"`
}
type PBEvent struct {
ClientId string `json:"clientId"`
Action string `json:"action"`
Record APIItem `json:"record"`
type DownloadTask struct {
Url string
}
type DownloadRequest struct {
Link string `json:"link"`
}