-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.go
More file actions
36 lines (31 loc) · 833 Bytes
/
types.go
File metadata and controls
36 lines (31 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package bdds
import "time"
// Product represents a BDDS product
type Product struct {
ID int
Name string
Description string
}
// ProductWithDeliveries represents a product with its deliveries
type ProductWithDeliveries struct {
ID int
Name string
Description string
Deliveries []*Delivery
}
// Delivery represents a product delivery
type Delivery struct {
DeliveryID int
DeliveryName string
DeliveryPublicationDatetime time.Time
DeliveryExpiryDatetime *time.Time
Files []*DeliveryFile
}
// DeliveryFile represents a file in a delivery
type DeliveryFile struct {
FileID int
FileName string
FileSize string
FileChecksum string
FilePublicationDatetime time.Time
}