blob: 280ee976eca92620a6a99d8d24c4a2838f79ed61 (
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
|
package guest
import "github.com/golang-jwt/jwt/v5"
type Guest struct {
Id string `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Attendance string `json:"attendance"`
Email string `json:"email"`
Message string `json:"message"`
PartySize int `json:"partySize"`
PartyList []Name `json:"partyList"`
}
type Name struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
}
type Claims struct {
Name Name `json:"name"`
jwt.RegisteredClaims
}
type Login struct {
Guest Guest `json:"guest"`
Token string `json:"token"`
}
|