blob: 7e15eccc337d9459748f141cef9797399ba7a6a9 (
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
|
package types
import "time"
type ErrorResponse struct {
Error string `json:"error"`
}
type MessageResponse struct {
Message string `json:"message"`
}
type UserResponse struct {
ID uint `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
DisplayName string `json:"display_name"`
Bio string `json:"bio"`
Birthday *time.Time `json:"birthday"`
AvatarURL string `json:"avatar_url"`
BlinkieURL string `json:"blinkie_url"`
Website string `json:"website"`
Location string `json:"location"`
Pronouns string `json:"pronouns"`
Signature string `json:"signature"`
Role string `json:"role"`
CreatedAt time.Time `json:"created_at"`
}
type AuthResponse struct {
Token string `json:"token"`
User UserResponse `json:"user"`
}
|