aboutsummaryrefslogtreecommitdiff
path: root/tools/dbupload/db.go
blob: 5307d0425a2a4ab25cd43480f9de8e2111feaef1 (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
package main

type UploadImage struct {
	Image struct {
		SourceURL string `json:"source_url"`
		Tags      string `json:"tag_list"`
		ImageURL  string `json:"image_url"`
	} `json:"image"`
}

type Image struct {
	ID               string        `json:"id"`
	IDNumber         int           `json:"id_number"`
	CreatedAt        string        `json:"created_at"`
	UpdatedAt        string        `json:"updated_at"`
	DuplicateReports []interface{} `json:"duplicate_reports"`
	FileName         string        `json:"file_name"`
	Description      string        `json:"description"`
	Uploader         string        `json:"uploader"`
	Image            string        `json:"image"`
	Score            int           `json:"score"`
	Upvotes          int           `json:"upvotes"`
	Downvotes        int           `json:"downvotes"`
	Faves            int           `json:"faves"`
	CommentCount     int           `json:"comment_count"`
	Tags             string        `json:"tags"`
	TagIds           []string      `json:"tag_ids"`
	Width            int           `json:"width"`
	Height           int           `json:"height"`
	AspectRatio      float64       `json:"aspect_ratio"`
	OriginalFormat   string        `json:"original_format"`
	MimeType         string        `json:"mime_type"`
	Sha512Hash       string        `json:"sha512_hash"`
	OrigSha512Hash   string        `json:"orig_sha512_hash"`
	SourceURL        string        `json:"source_url"`
	License          string        `json:"license"`
	Representations  struct {
		ThumbTiny  string `json:"thumb_tiny"`
		ThumbSmall string `json:"thumb_small"`
		Thumb      string `json:"thumb"`
		Small      string `json:"small"`
		Medium     string `json:"medium"`
		Large      string `json:"large"`
		Tall       string `json:"tall"`
		Full       string `json:"full"`
	} `json:"representations"`
	IsRendered  bool `json:"is_rendered"`
	IsOptimized bool `json:"is_optimized"`
}