Files
ProxmoxAAS-Dashboard/app/common/types.go
Arthur Lu 2b5c1bbf11 various code cleanup,
add required tag to select template
2025-05-12 20:59:48 +00:00

49 lines
789 B
Go

package common
type Config struct {
Port int `json:"listenPort"`
Organization string `json:"organization"`
DASH string `json:"dashurl"`
PVE string `json:"pveurl"`
API string `json:"apiurl"`
}
type StaticFile struct {
Data string
MimeType MimeType
}
// type used for templated <select>
type Select struct {
ID string
Required bool
Options []Option
}
// type used for templated <option>
type Option struct {
Selected bool
Value string
Display string
}
type RequestType int
type RequestContext struct {
Cookies map[string]string
Body map[string]any
}
type Auth struct {
Username string
Token string
CSRF string
}
type Icon struct {
ID string
Src string
Alt string
Clickable bool
}