summaryrefslogtreecommitdiff
path: root/data/literature.go
blob: f984bd0c3b12b2bd9697819bc13dcfcdf533154a (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package data

import (
	"image"
	"time"
)

type Author struct {
	name        string
	description string
	photo       image.Image
}

type Category struct {
	name        string
	subCategory SubCategory
}

type SubCategory struct {
	name string
}

type Publisher struct {
	name string
	logo image.Image
}

type Book struct {
	title                  string
	author                 Author
	category               Category
	series                 string
	description            string
	cover                  image.Image
	publisher              Publisher
	year_published         uint16
	print_length           uint16
	language               string
	isbn_10                uint32
	isbn_13                uint32
	reviews                string
	rating                 float32
	hcPriceUS              map[string]uint16
	hcPriceCAN             map[string]uint16
	pbPriceUS              map[string]uint16
	pbPriceCAN             map[string]uint16
	ebPriceUS              map[string]uint16
	ebPriceCAN             map[string]uint16
	audioPriceUS           uint16
	audioPriceCAN          uint16
	priceLastModified      time.Time
	cheapestPrice          map[string]uint16
	cheapPriceLastModified time.Time
}