This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
/
models_gen.go
70 lines (57 loc) · 1.47 KB
/
models_gen.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package model
import (
"time"
)
type AddPostInput struct {
Content string `json:"content"`
}
type AuthOutput struct {
Token string `json:"token"`
User *User `json:"user"`
}
type DeletePostInput struct {
PostID string `json:"postId"`
}
type EditPostInput struct {
PostID string `json:"postId"`
Content string `json:"content"`
}
type GetPostInput struct {
PostID string `json:"postId"`
}
type GetPostsByUsernameInput struct {
Username string `json:"username"`
}
type GetUserByUsernameInput struct {
Username string `json:"username"`
}
type LoginInput struct {
Username string `json:"username"`
Password string `json:"password"`
}
type Post struct {
ID string `json:"id"`
Content string `json:"content"`
Link string `json:"link"`
User *User `json:"user"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type RegisterInput struct {
Fullname string `json:"fullname"`
Email string `json:"email"`
Password string `json:"password"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Fullname *string `json:"fullname"`
Bio *string `json:"bio"`
Admin bool `json:"admin"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}