-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold_struct_work.go
44 lines (32 loc) · 1.58 KB
/
old_struct_work.go
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
package sys
//###########################################################//
// WorkObj Information about the work
type WorkObj struct {
Work PersonalityObj `json:"work"` // Work pointer.
Language LanguageType `json:"language"` // Work language.
Timestamp HashType `json:"timestamp"` // Work timestamps.
Hash HashType `json:"hash"` // global checksum of the Work
Tags []TagType `json:"tags"` // теги
Fandoms []FandomType `json:"fandoms"` // фендомы
Personages []PersonType `json:"personages"` // персонажи
Status StatusTag `json:"status"` // status of the Work
Rating RatingTag `json:"rating"` // rating of the Work
Focus FocusTag `json:"focus"` // focus of the Work
Description NormalisedTextType `json:"description"` // description of the Work
}
// ChapterObj chapter content
type ChapterObj struct {
Chapter PersonalityObj `json:"chapter"` // Chapter pointer.
Timestamp TimesObj `json:"timestamp"` // Chapter timestamps.
Size SizesObj `json:"size"` // size of the Chapter
Hash HashType `json:"hash"` // checksum of the Chapter
Data NormalisedTextType `json:"data"` // text of the Chapter
}
//###########################################################//
type BookObj struct {
Domain DomainType `json:"domain"` // хост-имя домена
Author PersonalityObj `json:"author"` // Author pointer.
Work WorkObj `json:"work"` // information about the Work
Size SizesObj `json:"size"` // size of the Work
Chapters []ChapterObj `json:"chapters"` // chapters of the Work
}