-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.go
39 lines (32 loc) · 981 Bytes
/
account.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
package hlcup
type MaritalStatus string
const (
StatusAvailable MaritalStatus = "свободны"
StatusInRelationship MaritalStatus = "заняты"
StatusComplicated MaritalStatus = "всё сложно"
)
type RawAccount struct {
ID int32 `json:"id"`
EMail string `json:"email"`
Firstname string `json:"fname"`
Surname string `json:"sname"`
Phone string `json:"phone"`
Sex string `json:"sex"`
BirthTimestamp int64 `json:"birth"`
Country string `json:"country"`
City string `json:"city"`
JoinedTimestamp int64 `json:"joined"`
Status MaritalStatus `json:"status"`
Interests []string `json:"interests"`
Premium struct {
StartTimestamp int64 `json:"start"`
FinishTimestamp int64 `json:"finish"`
}
Likes []struct {
ID int32 `json:"id"`
Timestamp int64 `json:"ts"`
}
}
type AccountSaver interface {
Save(account RawAccount) error
}