mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-04-28 09:36:20 +02:00
61 lines
1.4 KiB
Go
61 lines
1.4 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type EditCalendar struct {
|
|
ID string `json:"id"`
|
|
Name *string `json:"name"`
|
|
Description *string `json:"description"`
|
|
}
|
|
|
|
type EditEvent struct {
|
|
ID string `json:"id"`
|
|
Title *string `json:"title"`
|
|
Location *SetLocation `json:"location"`
|
|
Description *string `json:"description"`
|
|
Start *time.Time `json:"start"`
|
|
End *time.Time `json:"end"`
|
|
Calendar *string `json:"calendar"`
|
|
}
|
|
|
|
type Location struct {
|
|
Lat *float64 `json:"lat"`
|
|
Lon *float64 `json:"lon"`
|
|
Name *string `json:"name"`
|
|
Address *string `json:"address"`
|
|
}
|
|
|
|
type Login struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type NewCalendar struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type NewEvent struct {
|
|
Title string `json:"title"`
|
|
Location *SetLocation `json:"location"`
|
|
Description string `json:"description"`
|
|
Start time.Time `json:"start"`
|
|
End time.Time `json:"end"`
|
|
Calendar string `json:"calendar"`
|
|
}
|
|
|
|
type SetLocation struct {
|
|
Lat *float64 `json:"lat"`
|
|
Lon *float64 `json:"lon"`
|
|
Name *string `json:"name"`
|
|
Address *string `json:"address"`
|
|
}
|
|
|
|
type User struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|