-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
23 lines (20 loc) · 842 Bytes
/
types.go
File metadata and controls
23 lines (20 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main
import "time"
type User struct {
ID int64 `json:"id"`
NotifyToken string `json:"notifyToken,omitempty"`
UserName string `json:"userName"`
Email string `json:"email"`
Password string `json:"password,,omitempty"`
NativeLanguage string `json:"nativeLanguage"`
LearningLanguage string `json:"learningLanguage"`
Friends []string `json:"friends"`
ReceivedFriendRequests []string `json:"receivedFriendRequests"`
CreatedAt time.Time `json:"createdAt,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
RefreshToken string `json:"refreshToken,omitempty"`
}
type Friend struct {
ID int64 `json:"id"`
UserName string `json:"userName"`
}