blob: 275f617c7eecbd8481ed87f4c1c7e9b1300a0577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package admin
import (
"git.huntm.net/wedding/server/guest"
"github.com/golang-jwt/jwt/v5"
)
type Admin struct {
Id string `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
}
type Claims struct {
Admin Admin `json:"admin"`
jwt.RegisteredClaims
}
type Login struct {
Guests []guest.Guest `json:"guests"`
Token string `json:"token"`
}
|