summaryrefslogtreecommitdiff
path: root/server/guest/models.go
blob: d93bd53402449d24cd0c0b39287ddc9feb4ed830 (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         int    `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"`
}