-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels_gen.go
64 lines (54 loc) · 1.84 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
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package golang_graphql_authentication
import (
"time"
)
type FieldErrors struct {
Field string `json:"field"`
Error string `json:"error"`
}
type LoginUserInput struct {
Email string `json:"email"`
Password string `json:"password"`
}
type LoginUserPayload struct {
User *User `json:"user"`
JwtToken *string `json:"jwtToken"`
StatusCode int `json:"statusCode"`
Message string `json:"message"`
FieldErrors []*FieldErrors `json:"fieldErrors"`
}
type RegisterUserInput struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
Password string `json:"password"`
EmailVerificationCallBackURL string `json:"emailVerificationCallBackURL"`
}
type RegisterUserPayload struct {
User *User `json:"user"`
JwtToken *string `json:"jwtToken"`
StatusCode int `json:"statusCode"`
Message string `json:"message"`
FieldErrors []*FieldErrors `json:"fieldErrors"`
}
type User struct {
ID string `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
IsEmailVerified bool `json:"isEmailVerified"`
IsPhoneVerified bool `json:"isPhoneVerified"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type VerifyEmailPayload struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
}
type VerifyPhonePayload struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
}