feat: add settings schema
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
type AppSettingOption struct {
|
||||
Value string `json:"value"`
|
||||
Label string `json:"label"`
|
||||
}
|
||||
|
||||
type AppSettingDefinition struct {
|
||||
Key string `json:"key"`
|
||||
Category string `json:"category"`
|
||||
Label string `json:"label"`
|
||||
Type string `json:"type"`
|
||||
DefaultValue string `json:"defaultValue"`
|
||||
Value string `json:"value"`
|
||||
Description string `json:"description"`
|
||||
Options []AppSettingOption `json:"options"`
|
||||
ReadOnly bool `json:"readOnly"`
|
||||
}
|
||||
|
||||
type AppSettingGroup struct {
|
||||
Category string `json:"category"`
|
||||
Label string `json:"label"`
|
||||
Description string `json:"description"`
|
||||
Items []AppSettingDefinition `json:"items"`
|
||||
}
|
||||
Reference in New Issue
Block a user