Refactor
This commit is contained in:
25
downloader/types.go
Normal file
25
downloader/types.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user