reorganize app files

This commit is contained in:
2025-03-27 22:46:54 +00:00
parent b8ebbf6c3d
commit 79567ea58e
10 changed files with 371 additions and 325 deletions

35
app/common/types.go Normal file
View File

@@ -0,0 +1,35 @@
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
Name string
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
}