reorganize app files
This commit is contained in:
35
app/common/types.go
Normal file
35
app/common/types.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user