upload all
This commit is contained in:
22
backend/providers/types.go
Normal file
22
backend/providers/types.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package providers
|
||||
|
||||
// SettingField beschreibt ein Konfigurationsfeld
|
||||
type SettingField struct {
|
||||
Name string `json:"name"`
|
||||
Label string `json:"label"`
|
||||
Type string `json:"type"` // text, password, number, email, url
|
||||
Required bool `json:"required"`
|
||||
Description string `json:"description"`
|
||||
Default string `json:"default,omitempty"`
|
||||
}
|
||||
|
||||
// ProviderInfo enthält Informationen über einen Provider
|
||||
type ProviderInfo struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
DisplayName string `json:"displayName"`
|
||||
Description string `json:"description"`
|
||||
Enabled bool `json:"enabled"`
|
||||
Settings []SettingField `json:"settings"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user